(cperl-fill-paragraph): Call fill-paragraph
with point inside rather than after the paragraph.
This commit is contained in:
parent
da75761f2f
commit
cff301beed
1 changed files with 6 additions and 5 deletions
|
|
@ -4313,11 +4313,12 @@ indentation and initial hashes. Behaves usually outside of comment."
|
|||
(looking-at "^[ \t]*#+[ \t]*[^ \t\n#]")))
|
||||
(point)))
|
||||
;; Remove existing hashes
|
||||
(goto-char (point-min))
|
||||
(while (progn (forward-line 1) (< (point) (point-max)))
|
||||
(skip-chars-forward " \t")
|
||||
(and (looking-at "#+")
|
||||
(delete-char (- (match-end 0) (match-beginning 0)))))
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
(while (progn (forward-line 1) (< (point) (point-max)))
|
||||
(skip-chars-forward " \t")
|
||||
(and (looking-at "#+")
|
||||
(delete-char (- (match-end 0) (match-beginning 0))))))
|
||||
|
||||
;; Lines with only hashes on them can be paragraph boundaries.
|
||||
(let ((paragraph-start (concat paragraph-start "\\|^[ \t#]*$"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue