diff options
| author | Sam Steingold | 2001-10-25 17:49:13 +0000 |
|---|---|---|
| committer | Sam Steingold | 2001-10-25 17:49:13 +0000 |
| commit | 598f34fa52fc7c57cbc74a478c4c3e53a35950bd (patch) | |
| tree | a466330f1dc993914fae83b2e113f71d71b9a54b | |
| parent | 75700ff269c43abe152919d6d611a0585967b802 (diff) | |
| download | emacs-598f34fa52fc7c57cbc74a478c4c3e53a35950bd.tar.gz emacs-598f34fa52fc7c57cbc74a478c4c3e53a35950bd.zip | |
(add-log-always-start-new-record): New user option.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/add-log.el | 15 |
2 files changed, 18 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b5c2b99c03e..f9f6d35650a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-10-25 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * add-log.el (add-log-always-start-new-record): New user option. | ||
| 4 | (add-change-log-entry): Use it. | ||
| 5 | |||
| 1 | 2001-10-25 Richard M. Stallman <rms@gnu.org> | 6 | 2001-10-25 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * progmodes/etags.el (tags-query-replace): Make tags-loop-scan | 8 | * progmodes/etags.el (tags-query-replace): Make tags-loop-scan |
diff --git a/lisp/add-log.el b/lisp/add-log.el index 1d175ffe4a3..029c1797988 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -117,6 +117,12 @@ this variable." | |||
| 117 | :type 'boolean | 117 | :type 'boolean |
| 118 | :group 'change-log) | 118 | :group 'change-log) |
| 119 | 119 | ||
| 120 | (defcustom add-log-always-start-new-record nil | ||
| 121 | "*If non-nil, `add-change-log-entry' will always start a new record." | ||
| 122 | :version "21.2" | ||
| 123 | :type 'boolean | ||
| 124 | :group 'change-log) | ||
| 125 | |||
| 120 | (defcustom add-log-buffer-file-name-function nil | 126 | (defcustom add-log-buffer-file-name-function nil |
| 121 | "*If non-nil, function to call to identify the full filename of a buffer. | 127 | "*If non-nil, function to call to identify the full filename of a buffer. |
| 122 | This function is called with no argument. If this is nil, the default is to | 128 | This function is called with no argument. If this is nil, the default is to |
| @@ -182,7 +188,7 @@ Note: The search is conducted only within 10%, at the beginning of the file." | |||
| 182 | "Face for highlighting parenthesized lists of functions or variables." | 188 | "Face for highlighting parenthesized lists of functions or variables." |
| 183 | :version "21.1" | 189 | :version "21.1" |
| 184 | :group 'change-log) | 190 | :group 'change-log) |
| 185 | 191 | ||
| 186 | (defface change-log-conditionals-face | 192 | (defface change-log-conditionals-face |
| 187 | '((t (:inherit font-lock-variable-name-face))) | 193 | '((t (:inherit font-lock-variable-name-face))) |
| 188 | "Face for highlighting conditionals of the form `[...]'." | 194 | "Face for highlighting conditionals of the form `[...]'." |
| @@ -415,6 +421,10 @@ Fourth arg NEW-ENTRY non-nil means always create a new entry at the front; | |||
| 415 | never append to an existing entry. Option `add-log-keep-changes-together' | 421 | never append to an existing entry. Option `add-log-keep-changes-together' |
| 416 | otherwise affects whether a new entry is created. | 422 | otherwise affects whether a new entry is created. |
| 417 | 423 | ||
| 424 | Option `add-log-always-start-new-record' non-nil means always create a | ||
| 425 | new record, even when the last record was made on the same date and by | ||
| 426 | the same person. | ||
| 427 | |||
| 418 | The change log file can start with a copyright notice and a copying | 428 | The change log file can start with a copyright notice and a copying |
| 419 | permission notice. The first blank line indicates the end of these | 429 | permission notice. The first blank line indicates the end of these |
| 420 | notices. | 430 | notices. |
| @@ -469,7 +479,8 @@ non-nil, otherwise in local time." | |||
| 469 | (let ((new-entry (concat (funcall add-log-time-format) | 479 | (let ((new-entry (concat (funcall add-log-time-format) |
| 470 | " " add-log-full-name | 480 | " " add-log-full-name |
| 471 | " <" add-log-mailing-address ">"))) | 481 | " <" add-log-mailing-address ">"))) |
| 472 | (if (looking-at (regexp-quote new-entry)) | 482 | (if (and (not add-log-always-start-new-record) |
| 483 | (looking-at (regexp-quote new-entry))) | ||
| 473 | (forward-line 1) | 484 | (forward-line 1) |
| 474 | (insert new-entry "\n\n") | 485 | (insert new-entry "\n\n") |
| 475 | (forward-line -1))) | 486 | (forward-line -1))) |