emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/toc-org 01cb78ead6 063/128: Use `delete-region` instead of


From: ELPA Syncer
Subject: [nongnu] elpa/toc-org 01cb78ead6 063/128: Use `delete-region` instead of kill-line while creating the TOC
Date: Sun, 2 Jan 2022 09:59:10 -0500 (EST)

branch: elpa/toc-org
commit 01cb78ead6e2176e2fe23a685cdb73d4f9d733ef
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Commit: Iqbal Ansari <iqbalansari02@yahoo.com>

    Use `delete-region` instead of kill-line while creating the TOC
    
    This avoids polluting the kill-ring
---
 toc-org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toc-org.el b/toc-org.el
index 8a049ad068..f64f52164b 100644
--- a/toc-org.el
+++ b/toc-org.el
@@ -302,7 +302,7 @@ each heading into a link."
                (toc-org-format-visible-link
                 (buffer-substring-no-properties
                  (point) (line-end-position))))
-              (kill-line)
+              (delete-region (point) (line-end-position))
               (insert "]]")
 
               ;; maintain the hash table, if provided



reply via email to

[Prev in Thread] Current Thread [Next in Thread]