1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(change-log-mode): Use fill-nobreak-predicate to

avoid that filling introduces lines with a single asterisk.
This commit is contained in:
Martin Rudalics 2007-07-18 08:55:20 +00:00
parent 59f63e9aa5
commit 3ee9a09c48
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,12 @@
2007-07-18 Martin Rudalics <rudalics@gmx.at>
* add-log.el (change-log-mode): Use fill-nobreak-predicate to
avoid that filling introduces lines with a single asterisk.
* kmacro.el (kmacro-end-macro): When ignoring empty macro
avoid incorrect kmacro-ring-empty-p messages.
Reported by Michael Schierl <schierlm@gmx.de>
2007-07-17 Michael Albinus <michael.albinus@gmx.de>
* files.el (file-remote-p): Introduce optional parameter

View file

@ -699,6 +699,11 @@ Runs `change-log-mode-hook'.
show-trailing-whitespace t)
(set (make-local-variable 'fill-paragraph-function)
'change-log-fill-paragraph)
;; Avoid that filling leaves behind a single "*" on a line.
(add-hook 'fill-nobreak-predicate
'(lambda ()
(looking-back "^\\s *\\*\\s *" (line-beginning-position)))
nil t)
(set (make-local-variable 'indent-line-function) 'change-log-indent)
(set (make-local-variable 'tab-always-indent) nil)
;; We really do want "^" in paragraph-start below: it is only the