Commit 3ee9a09c authored by Martin Rudalics's avatar Martin Rudalics
Browse files

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

avoid that filling introduces lines with a single asterisk.
parent 59f63e9a
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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment