diff options
| author | Sean Whitton | 2025-04-26 20:04:43 +0800 |
|---|---|---|
| committer | Sean Whitton | 2025-04-26 20:04:43 +0800 |
| commit | 30b7318a8f6c593fc6553a45445e84e4e50cd119 (patch) | |
| tree | a6e773c7e65dbc2315b5ac3618276b3cbfc18168 | |
| parent | 5b635d8bd6b7b3353e103b2a20c502d700597082 (diff) | |
| download | emacs-30b7318a8f6c593fc6553a45445e84e4e50cd119.tar.gz emacs-30b7318a8f6c593fc6553a45445e84e4e50cd119.zip | |
; comment-indent: Leave point where we used to.
| -rw-r--r-- | lisp/newcomment.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." | |||
| 726 | ;; are already within a multiline comment at BOL (bug#78003). | 726 | ;; are already within a multiline comment at BOL (bug#78003). |
| 727 | ((and (not begpos) (not continue) | 727 | ((and (not begpos) (not continue) |
| 728 | comment-use-syntax comment-use-global-state | 728 | comment-use-syntax comment-use-global-state |
| 729 | (nth 4 (syntax-ppss (line-beginning-position)))) | 729 | (save-excursion (nth 4 (syntax-ppss (line-beginning-position))))) |
| 730 | ;; We don't know anything about the nature of the multiline | 730 | ;; We don't know anything about the nature of the multiline |
| 731 | ;; construct, so immediately delegate to the mode. | 731 | ;; construct, so immediately delegate to the mode. |
| 732 | (indent-according-to-mode)) | 732 | (indent-according-to-mode)) |