From 6bd6974f6666f786f0d431b0b632a0a92b897608 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 26 Apr 2025 20:04:43 +0800 Subject: [PATCH] ; comment-indent: Leave point where we used to. (cherry picked from commit 30b7318a8f6c593fc6553a45445e84e4e50cd119) --- lisp/newcomment.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 28ee4467589..4da3b55d2f0 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -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)) -- 2.39.5