Mercurial > emacs
comparison lisp/add-log.el @ 1956:02bb7721b67c
(add-change-log-entry): Find end of first paragraph from after the header line.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 25 Feb 1993 20:23:59 +0000 |
parents | 63af9f715bd3 |
children | ced6a5b2519d |
comparison
equal
deleted
inserted
replaced
1955:8ac912d2d369 | 1956:02bb7721b67c |
---|---|
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 |
8 ;; GNU Emacs is free software; you can redistribute it and/or modify | 7 ;; GNU Emacs is free software; you can redistribute it and/or modify |
9 ;; it under the terms of the GNU General Public License as published by | 8 ;; it under the terms of the GNU General Public License as published by |
102 (if (and other-window (not (equal file-name buffer-file-name))) | 101 (if (and other-window (not (equal file-name buffer-file-name))) |
103 (find-file-other-window file-name) | 102 (find-file-other-window file-name) |
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) |
117 (setq paragraph-end (point)) | 117 (setq paragraph-end (point)) |
118 (goto-char (point-min)) | 118 (goto-char (point-min)) |