mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
(fill-newline): Don't leave markers before the prefix.
This commit is contained in:
parent
657059d02f
commit
29c1653c7a
@ -523,7 +523,7 @@ The break position will be always after LINEBEG and generally before point."
|
||||
;; We need one space at end of line so that
|
||||
;; further filling won't delete it. NOTE: We
|
||||
;; intentionally leave this one space to
|
||||
;; distingush the case that user wants to put
|
||||
;; distinguish the case that user wants to put
|
||||
;; space between \c| characters.
|
||||
(forward-char 1))
|
||||
(insert ?\n)
|
||||
@ -540,9 +540,10 @@ The break position will be always after LINEBEG and generally before point."
|
||||
(fill-indent-to-left-margin)
|
||||
(indent-according-to-mode))
|
||||
;; Insert the fill prefix after indentation.
|
||||
;; Set prefixcol so whitespace in the prefix won't get lost.
|
||||
(and fill-prefix (not (equal fill-prefix ""))
|
||||
(insert-and-inherit fill-prefix)))
|
||||
;; Markers that were after the whitespace are now at point: insert
|
||||
;; before them so they don't get stuck before the prefix.
|
||||
(insert-before-markers-and-inherit fill-prefix)))
|
||||
|
||||
(defun fill-indent-to-left-margin ()
|
||||
"Indent current line to the column given by `current-left-margin'."
|
||||
|
Loading…
Reference in New Issue
Block a user