diff options
| author | Stefan Monnier | 2000-05-26 12:33:25 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-05-26 12:33:25 +0000 |
| commit | dc29aa6cbf0f461104e3891aff2e6b4509ac5414 (patch) | |
| tree | 21aa6158d961df109a9589a643e8f61a53cda37f | |
| parent | 4370a375b2f3dd2574c3c396cf9266dc706ff3a7 (diff) | |
| download | emacs-dc29aa6cbf0f461104e3891aff2e6b4509ac5414.tar.gz emacs-dc29aa6cbf0f461104e3891aff2e6b4509ac5414.zip | |
(add-change-log-entry): Merge the current entry with the
previous one if the previous one is empty.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/add-log.el | 15 |
2 files changed, 19 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 03ad3d30505..c0d5ce89ff3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-05-26 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * add-log.el (add-change-log-entry): Merge the current entry with the | ||
| 4 | previous one if the previous one is empty. | ||
| 5 | |||
| 1 | 2000-05-26 Dave Love <fx@gnu.org> | 6 | 2000-05-26 Dave Love <fx@gnu.org> |
| 2 | 7 | ||
| 3 | * loadhist.el (unload-feature): Fix interactive spec [from | 8 | * loadhist.el (unload-feature): Fix interactive spec [from |
diff --git a/lisp/add-log.el b/lisp/add-log.el index a89cbd49f6d..aeb9fb48e10 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -449,7 +449,20 @@ non-nil, otherwise in local time." | |||
| 449 | (beginning-of-line 1) | 449 | (beginning-of-line 1) |
| 450 | (looking-at "\\s *$")) | 450 | (looking-at "\\s *$")) |
| 451 | (insert ?\ )) | 451 | (insert ?\ )) |
| 452 | (insert "(" defun "): ") | 452 | ;; See if the prev function name has a message yet or not |
| 453 | ;; If not, merge the two entries. | ||
| 454 | (let ((pos (point-marker))) | ||
| 455 | (if (and (skip-syntax-backward " ") | ||
| 456 | (skip-chars-backward "):") | ||
| 457 | (looking-at "):") | ||
| 458 | (progn (delete-region (+ 1 (point)) (+ 2 (point))) t) | ||
| 459 | (> fill-column (+ (current-column) (length defun) 3))) | ||
| 460 | (progn (delete-region (point) pos) | ||
| 461 | (insert ", ")) | ||
| 462 | (goto-char pos) | ||
| 463 | (insert "(")) | ||
| 464 | (set-marker pos nil)) | ||
| 465 | (insert defun "): ") | ||
| 453 | (if version | 466 | (if version |
| 454 | (insert version ?\ ))) | 467 | (insert version ?\ ))) |
| 455 | ;; No function name, so put in a colon unless we have just a star. | 468 | ;; No function name, so put in a colon unless we have just a star. |