[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 74e715cb729 2/6: ; Go back to original point when filling comme
From: |
Yuan Fu |
Subject: |
emacs-29 74e715cb729 2/6: ; Go back to original point when filling comments in c-ts-mode |
Date: |
Thu, 2 Feb 2023 21:46:21 -0500 (EST) |
branch: emacs-29
commit 74e715cb72900143cd9c2f8c58edb88431941d85
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
; Go back to original point when filling comments in c-ts-mode
* lisp/progmodes/c-ts-common.el:
(c-ts-common--fill-block-comment): Go to original point.
---
lisp/progmodes/c-ts-common.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el
index fd16c9713a5..05997e8bd20 100644
--- a/lisp/progmodes/c-ts-common.el
+++ b/lisp/progmodes/c-ts-common.el
@@ -194,7 +194,8 @@ comment."
(when end-marker
(goto-char end-marker)
(delete-region (point) (+ end-len (point)))
- (insert (make-string end-len ?\s))))))
+ (insert (make-string end-len ?\s)))
+ (goto-char orig-point))))
(defun c-ts-common-comment-setup ()
"Set up local variables for C-like comment.
- emacs-29 updated (88ccf78b206 -> 96ea27278b4), Yuan Fu, 2023/02/02
- emacs-29 b8009bbf2d8 1/6: ; Fix error where we pass t to treesit-node-type in c-ts-common.el, Yuan Fu, 2023/02/02
- emacs-29 8a6bdf88b4b 4/6: Call treesit_record_change in insert_from_gap_1, Yuan Fu, 2023/02/02
- emacs-29 a2b77c79dcc 3/6: Use c-ts-common-statement-offset for closing brackets too, Yuan Fu, 2023/02/02
- emacs-29 74e715cb729 2/6: ; Go back to original point when filling comments in c-ts-mode,
Yuan Fu <=
- emacs-29 d963a8f1355 5/6: Make c-ts-mode indent tests side-effect-free, Yuan Fu, 2023/02/02
- emacs-29 96ea27278b4 6/6: ; Fix c-ts-mode indent test, Yuan Fu, 2023/02/02