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

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

[nongnu] elpa/toc-org a0e8ca05e8 066/128: Merge pull request #33 from iq


From: ELPA Syncer
Subject: [nongnu] elpa/toc-org a0e8ca05e8 066/128: Merge pull request #33 from iqbalansari/master
Date: Sun, 2 Jan 2022 09:59:10 -0500 (EST)

branch: elpa/toc-org
commit a0e8ca05e806e5074b8603985da7f18b92c15856
Merge: 4380d99113 01cb78ead6
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #33 from iqbalansari/master
    
    Use `delete-region` instead of kill-line while creating the TOC
---
 toc-org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toc-org.el b/toc-org.el
index f21f45d73e..fe071ed5d7 100644
--- a/toc-org.el
+++ b/toc-org.el
@@ -305,7 +305,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]