diff options
| author | Martin Rudalics | 2007-07-18 08:55:20 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2007-07-18 08:55:20 +0000 |
| commit | 3ee9a09c482ff1ee2280534643c970ecc25676c1 (patch) | |
| tree | 635fb67f28c68e4e4f6041a648ee106ef83fdd01 | |
| parent | 59f63e9aa5e8dd069f5fa60e04c540af1f6f50a8 (diff) | |
| download | emacs-3ee9a09c482ff1ee2280534643c970ecc25676c1.tar.gz emacs-3ee9a09c482ff1ee2280534643c970ecc25676c1.zip | |
(change-log-mode): Use fill-nobreak-predicate to
avoid that filling introduces lines with a single asterisk.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/add-log.el | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index be77e72e924..ba1fb92aaab 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2007-07-18 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * add-log.el (change-log-mode): Use fill-nobreak-predicate to | ||
| 4 | avoid that filling introduces lines with a single asterisk. | ||
| 5 | |||
| 6 | * kmacro.el (kmacro-end-macro): When ignoring empty macro | ||
| 7 | avoid incorrect kmacro-ring-empty-p messages. | ||
| 8 | Reported by Michael Schierl <schierlm@gmx.de> | ||
| 9 | |||
| 1 | 2007-07-17 Michael Albinus <michael.albinus@gmx.de> | 10 | 2007-07-17 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 11 | ||
| 3 | * files.el (file-remote-p): Introduce optional parameter | 12 | * files.el (file-remote-p): Introduce optional parameter |
diff --git a/lisp/add-log.el b/lisp/add-log.el index 3ec00b81b35..0ff82bba2f5 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -699,6 +699,11 @@ Runs `change-log-mode-hook'. | |||
| 699 | show-trailing-whitespace t) | 699 | show-trailing-whitespace t) |
| 700 | (set (make-local-variable 'fill-paragraph-function) | 700 | (set (make-local-variable 'fill-paragraph-function) |
| 701 | 'change-log-fill-paragraph) | 701 | 'change-log-fill-paragraph) |
| 702 | ;; Avoid that filling leaves behind a single "*" on a line. | ||
| 703 | (add-hook 'fill-nobreak-predicate | ||
| 704 | '(lambda () | ||
| 705 | (looking-back "^\\s *\\*\\s *" (line-beginning-position))) | ||
| 706 | nil t) | ||
| 702 | (set (make-local-variable 'indent-line-function) 'change-log-indent) | 707 | (set (make-local-variable 'indent-line-function) 'change-log-indent) |
| 703 | (set (make-local-variable 'tab-always-indent) nil) | 708 | (set (make-local-variable 'tab-always-indent) nil) |
| 704 | ;; We really do want "^" in paragraph-start below: it is only the | 709 | ;; We really do want "^" in paragraph-start below: it is only the |