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))