diff options
| author | Mathias Dahl | 2006-02-11 23:31:23 +0000 |
|---|---|---|
| committer | Mathias Dahl | 2006-02-11 23:31:23 +0000 |
| commit | b27d732011eeca24655d0dcb2f39e0c6f3d53fef (patch) | |
| tree | d99978ba58a58da9ee02692900d2f92fd0021d62 | |
| parent | 388bf06a6e31d71b27f6d233d73f6cb6388aa7d2 (diff) | |
| download | emacs-b27d732011eeca24655d0dcb2f39e0c6f3d53fef.tar.gz emacs-b27d732011eeca24655d0dcb2f39e0c6f3d53fef.zip | |
Some small fixes.
| -rw-r--r-- | lisp/tumme.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/tumme.el b/lisp/tumme.el index 8f75da24ca2..9f29f71d289 100644 --- a/lisp/tumme.el +++ b/lisp/tumme.el | |||
| @@ -2308,12 +2308,11 @@ function. The result is a couple of new files in | |||
| 2308 | (defun tumme-write-comment (file comment) | 2308 | (defun tumme-write-comment (file comment) |
| 2309 | "For FILE, write comment COMMENT in database." | 2309 | "For FILE, write comment COMMENT in database." |
| 2310 | (save-excursion | 2310 | (save-excursion |
| 2311 | (let (end buf comment-beg | 2311 | (let (end buf comment-beg) |
| 2312 | (base-name (file-name-nondirectory file))) | ||
| 2313 | (setq buf (find-file tumme-db-file)) | 2312 | (setq buf (find-file tumme-db-file)) |
| 2314 | (goto-char (point-min)) | 2313 | (goto-char (point-min)) |
| 2315 | (if (search-forward-regexp | 2314 | (if (search-forward-regexp |
| 2316 | (format "^%s" base-name) nil t) | 2315 | (format "^%s" file) nil t) |
| 2317 | (progn | 2316 | (progn |
| 2318 | (end-of-line) | 2317 | (end-of-line) |
| 2319 | (setq end (point)) | 2318 | (setq end (point)) |
| @@ -2336,7 +2335,7 @@ function. The result is a couple of new files in | |||
| 2336 | (insert (format "comment:%s;" comment))) | 2335 | (insert (format "comment:%s;" comment))) |
| 2337 | ;; File does not exist in databse - add it. | 2336 | ;; File does not exist in databse - add it. |
| 2338 | (goto-char (point-max)) | 2337 | (goto-char (point-max)) |
| 2339 | (insert (format "\n%s;comment:%s" base-name comment))) | 2338 | (insert (format "\n%s;comment:%s" file comment))) |
| 2340 | (save-buffer) | 2339 | (save-buffer) |
| 2341 | (kill-buffer buf)))) | 2340 | (kill-buffer buf)))) |
| 2342 | 2341 | ||
| @@ -2417,7 +2416,7 @@ matching tags will be marked in the dired buffer." | |||
| 2417 | (goto-char (point-min)) | 2416 | (goto-char (point-min)) |
| 2418 | ;; Collect matches | 2417 | ;; Collect matches |
| 2419 | (while (search-forward-regexp | 2418 | (while (search-forward-regexp |
| 2420 | (concat "\\(^[^;]+\\);.*" tag ".*$") nil t) | 2419 | (concat "\\(^[^;\n]+\\);.*" tag ".*$") nil t) |
| 2421 | (setq files (append (list (match-string 1)) files))) | 2420 | (setq files (append (list (match-string 1)) files))) |
| 2422 | (kill-buffer buf) | 2421 | (kill-buffer buf) |
| 2423 | ;; Mark files | 2422 | ;; Mark files |