From 17a89a2e1612f82fcfe2b2fd292f1973f885b3a0 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 28 Apr 2025 09:22:19 +1000 Subject: [emacs] Some small fixes with editing --- emacs/.emacs.d/lisp/my/my-editing.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emacs/.emacs.d/lisp') diff --git a/emacs/.emacs.d/lisp/my/my-editing.el b/emacs/.emacs.d/lisp/my/my-editing.el index 13d80f8..e6499ff 100644 --- a/emacs/.emacs.d/lisp/my/my-editing.el +++ b/emacs/.emacs.d/lisp/my/my-editing.el @@ -528,7 +528,7 @@ With an prefix-arg, copy the file name relative to project root." (interactive) (let ((old-max (point-max)) (old-point (point))) - (comment-kill (or n 1)) + (when comment-start (comment-kill (or n 1))) (when (= old-max (point-max)) (goto-char old-point) (kill-sexp n)))) -- cgit v1.2.3