# HG changeset patch # User Mathias Dahl # Date 1139700683 0 # Node ID 268f839373eeed353d030e735c06d36b64247ea1 # Parent 0e986f2bd386dbb3b5d1698edfa92d78310a7767 Some small fixes. diff -r 0e986f2bd386 -r 268f839373ee lisp/tumme.el --- a/lisp/tumme.el Sat Feb 11 22:39:48 2006 +0000 +++ b/lisp/tumme.el Sat Feb 11 23:31:23 2006 +0000 @@ -2308,12 +2308,11 @@ (defun tumme-write-comment (file comment) "For FILE, write comment COMMENT in database." (save-excursion - (let (end buf comment-beg - (base-name (file-name-nondirectory file))) + (let (end buf comment-beg) (setq buf (find-file tumme-db-file)) (goto-char (point-min)) (if (search-forward-regexp - (format "^%s" base-name) nil t) + (format "^%s" file) nil t) (progn (end-of-line) (setq end (point)) @@ -2336,7 +2335,7 @@ (insert (format "comment:%s;" comment))) ;; File does not exist in databse - add it. (goto-char (point-max)) - (insert (format "\n%s;comment:%s" base-name comment))) + (insert (format "\n%s;comment:%s" file comment))) (save-buffer) (kill-buffer buf)))) @@ -2417,7 +2416,7 @@ (goto-char (point-min)) ;; Collect matches (while (search-forward-regexp - (concat "\\(^[^;]+\\);.*" tag ".*$") nil t) + (concat "\\(^[^;\n]+\\);.*" tag ".*$") nil t) (setq files (append (list (match-string 1)) files))) (kill-buffer buf) ;; Mark files