diff options
| author | Richard M. Stallman | 1993-02-25 20:23:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-02-25 20:23:59 +0000 |
| commit | ec367ad6e6a4196f9fa431b799e855c57f8896ec (patch) | |
| tree | 6bcbfb85ce5b35ca08a949d521e95639ff781571 | |
| parent | a8a6776b57f88d10c59f4d44ff73051d0ee92d25 (diff) | |
| download | emacs-ec367ad6e6a4196f9fa431b799e855c57f8896ec.tar.gz emacs-ec367ad6e6a4196f9fa431b799e855c57f8896ec.zip | |
(add-change-log-entry): Find end of first paragraph from after the header line.
| -rw-r--r-- | lisp/add-log.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el index 0348c0bd4b6..0c62c403131 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | ;;; add-log.el --- change log maintenance commands for Emacs | 1 | ;;; add-log.el --- change log maintenance commands for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 86, 87, 88, 89, 90, 91, 1992, 1993 | 3 | ;; Copyright (C) 1985, 1986, 1988, 1993 Free Software Foundation, Inc. |
| 4 | ;; Free Software Foundation, Inc. | ||
| 5 | 4 | ||
| 6 | ;; This file is part of GNU Emacs. | 5 | ;; This file is part of GNU Emacs. |
| 7 | 6 | ||
| @@ -104,13 +103,14 @@ Third arg OTHER-WINDOW non-nil means visit in other window." | |||
| 104 | (find-file file-name)) | 103 | (find-file file-name)) |
| 105 | (undo-boundary) | 104 | (undo-boundary) |
| 106 | (goto-char (point-min)) | 105 | (goto-char (point-min)) |
| 107 | (or (looking-at (concat (regexp-quote (substring (current-time-string) | 106 | (if (looking-at (concat (regexp-quote (substring (current-time-string) |
| 108 | 0 10)) | 107 | 0 10)) |
| 109 | ".* " (regexp-quote full-name) | 108 | ".* " (regexp-quote full-name) |
| 110 | " (" (regexp-quote login-name) "@")) | 109 | " (" (regexp-quote login-name) "@")) |
| 111 | (insert (current-time-string) | 110 | (forward-line 1) |
| 112 | " " full-name | 111 | (insert (current-time-string) |
| 113 | " (" login-name "@" site-name ")\n\n")) | 112 | " " full-name |
| 113 | " (" login-name "@" site-name ")\n\n")) | ||
| 114 | 114 | ||
| 115 | ;; Search only within the first paragraph. | 115 | ;; Search only within the first paragraph. |
| 116 | (forward-paragraph 1) | 116 | (forward-paragraph 1) |