1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

; comment-indent: Leave point where we used to.

This commit is contained in:
Sean Whitton 2025-04-26 20:04:43 +08:00
parent 5b635d8bd6
commit 30b7318a8f

View file

@ -726,7 +726,7 @@ If CONTINUE is non-nil, use the `comment-continue' markers if any."
;; are already within a multiline comment at BOL (bug#78003).
((and (not begpos) (not continue)
comment-use-syntax comment-use-global-state
(nth 4 (syntax-ppss (line-beginning-position))))
(save-excursion (nth 4 (syntax-ppss (line-beginning-position)))))
;; We don't know anything about the nature of the multiline
;; construct, so immediately delegate to the mode.
(indent-according-to-mode))