]> code.delx.au - gnu-emacs/commitdiff
(add-change-log-entry): Merge the current entry with the
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 May 2000 12:33:25 +0000 (12:33 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 May 2000 12:33:25 +0000 (12:33 +0000)
previous one if the previous one is empty.

lisp/ChangeLog
lisp/add-log.el

index 03ad3d30505cc2b2492f966b2f181655588072a1..c0d5ce89ff36f950d730dc2ea2a9c6e0e016d1e8 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-26  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * add-log.el (add-change-log-entry): Merge the current entry with the
+       previous one if the previous one is empty.
+
 2000-05-26  Dave Love  <fx@gnu.org>
 
        * loadhist.el (unload-feature): Fix interactive spec [from
index a89cbd49f6d5667ab29086daa14df1a9ef55cf2f..aeb9fb48e10cdfb728bcea7694981ecee53501ac 100644 (file)
@@ -449,7 +449,20 @@ non-nil, otherwise in local time."
                    (beginning-of-line 1)
                    (looking-at "\\s *$"))
            (insert ?\ ))
-         (insert "(" defun "): ")
+         ;; See if the prev function name has a message yet or not
+         ;; If not, merge the two entries.
+         (let ((pos (point-marker)))
+           (if (and (skip-syntax-backward " ")
+                    (skip-chars-backward "):")
+                    (looking-at "):")
+                    (progn (delete-region (+ 1 (point)) (+ 2 (point))) t)
+                    (> fill-column (+ (current-column) (length defun) 3)))
+               (progn (delete-region (point) pos)
+                      (insert ", "))
+             (goto-char pos)
+             (insert "("))
+           (set-marker pos nil))
+         (insert defun "): ")
          (if version
              (insert version ?\ )))
       ;; No function name, so put in a colon unless we have just a star.