aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2000-05-21 02:14:07 +0000
committerStefan Monnier2000-05-21 02:14:07 +0000
commitffe7dc64f577e2495e51c27cb944a8093cad6a97 (patch)
treec8cfa8244caf8c0062ed7ae1f9b0f1846e451b2c
parente57a1038edd503ad302f9fd5668bb6dcdce8fa3f (diff)
downloademacs-ffe7dc64f577e2495e51c27cb944a8093cad6a97.tar.gz
emacs-ffe7dc64f577e2495e51c27cb944a8093cad6a97.zip
(log-edit-done): Cleanup trailing empty lines.
(log-edit-insert-changelog): Drop `:' as well.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/log-edit.el9
2 files changed, 17 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b1d31a94638..e614d1f3245 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,14 @@
12000-05-20 Stefan Monnier <monnier@cs.yale.edu> 12000-05-20 Stefan Monnier <monnier@cs.yale.edu>
2 2
3 * log-edit.el (log-edit-done): Cleanup trailing empty lines.
4 (log-edit-insert-changelog): Drop `:' as well.
5
6 * log-view.el: Fix file description.
7 (log-view-mode-map): Unsatisfying fix for when cvs-mode-map is not
8 available.
9 (log-view-font-lock-keywords): Only use cvs-filename-face if present.
10 (log-view-current-file): Only use cvs-pcl-cvs-dirchange-re if present.
11
3 * emacs-lisp/easy-mmode.el: Update copyright and commentary. 12 * emacs-lisp/easy-mmode.el: Update copyright and commentary.
4 (easy-mmode-define-toggle): Deprecate the use of *-(on|off)-hook. 13 (easy-mmode-define-toggle): Deprecate the use of *-(on|off)-hook.
5 Print a status message if the toggle is called interactively. 14 Print a status message if the toggle is called interactively.
diff --git a/lisp/log-edit.el b/lisp/log-edit.el
index 37fe7068f9a..baba75e08c5 100644
--- a/lisp/log-edit.el
+++ b/lisp/log-edit.el
@@ -5,7 +5,7 @@
5;; Author: Stefan Monnier <monnier@cs.yale.edu> 5;; Author: Stefan Monnier <monnier@cs.yale.edu>
6;; Keywords: pcl-cvs cvs commit log 6;; Keywords: pcl-cvs cvs commit log
7;; Version: $Name: $ 7;; Version: $Name: $
8;; Revision: $Id: log-edit.el,v 1.3 2000/03/26 23:05:12 monnier Exp $ 8;; Revision: $Id: log-edit.el,v 1.4 2000/05/10 22:20:51 monnier Exp $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -189,6 +189,12 @@ commands (under C-x v for VC, for example).
189 "Finish editing the log message and commit the files. 189 "Finish editing the log message and commit the files.
190If you want to abort the commit, simply delete the buffer." 190If you want to abort the commit, simply delete the buffer."
191 (interactive) 191 (interactive)
192 ;; Get rid of trailing empty lines
193 (goto-char (point-max))
194 (skip-syntax-backward " ")
195 (when (equal (char-after) ?\n) (forward-char 1))
196 (delete-region (point) (point-max))
197 ;; Check for final newline
192 (if (and (> (point-max) 1) 198 (if (and (> (point-max) 1)
193 (/= (char-after (1- (point-max))) ?\n) 199 (/= (char-after (1- (point-max))) ?\n)
194 (or (eq log-edit-require-final-newline t) 200 (or (eq log-edit-require-final-newline t)
@@ -242,6 +248,7 @@ To select default log text, we:
242 (when (not (re-search-forward "^\\*\\s-+" nil t)) 248 (when (not (re-search-forward "^\\*\\s-+" nil t))
243 (goto-char (point-min)) 249 (goto-char (point-min))
244 (skip-chars-forward "^():") 250 (skip-chars-forward "^():")
251 (skip-chars-forward ": ")
245 (delete-region (point-min) (point))))) 252 (delete-region (point-min) (point)))))
246 253
247(defun log-edit-mode-help () 254(defun log-edit-mode-help ()