mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-20 18:17:20 +00:00
(fill-comment-paragraph): Don't try to do comment-paragraph filling
if the commark doesn't match comment-start-skip.
This commit is contained in:
parent
42b4ee207b
commit
dacce83104
@ -1,5 +1,9 @@
|
||||
2008-02-28 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* textmodes/fill.el (fill-comment-paragraph): Don't try to do
|
||||
comment-paragraph filling if the commark doesn't match
|
||||
comment-start-skip.
|
||||
|
||||
* uniquify.el (uniquify-buffer-base-name): Undo last change.
|
||||
|
||||
2008-02-28 Daiki Ueno <ueno@unixuser.org>
|
||||
|
@ -837,7 +837,13 @@ can take care of filling. JUSTIFY is used as in `fill-paragraph'."
|
||||
(goto-char comstart) (skip-chars-backward " \t")
|
||||
(setq has-code-and-comment (not (bolp)))))
|
||||
|
||||
(if (not comstart)
|
||||
(if (not (and comstart
|
||||
;; Make sure the comment-start mark we found is accepted by
|
||||
;; comment-start-skip. If not, all bets are off, and
|
||||
;; we'd better not mess with it.
|
||||
(string-match comment-start-skip
|
||||
(buffer-substring comstart comin))))
|
||||
|
||||
;; Return nil, so the normal filling will take place.
|
||||
nil
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user