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

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

[nongnu] elpa/toc-org a0fd8ffb8a 047/128: make internal linking work wit


From: ELPA Syncer
Subject: [nongnu] elpa/toc-org a0fd8ffb8a 047/128: make internal linking work with Org 8.3
Date: Sun, 2 Jan 2022 09:59:08 -0500 (EST)

branch: elpa/toc-org
commit a0fd8ffb8ae63ea20e204d0b0934945fc118d235
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: Sergei Nosov <sergei.nosov@gmail.com>

    make internal linking work with Org 8.3
---
 toc-org.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/toc-org.el b/toc-org.el
index a9ffa1b9b2..e4ad80d903 100644
--- a/toc-org.el
+++ b/toc-org.el
@@ -177,7 +177,13 @@ rules."
   (let ((ret-path path))
     (when (and toc-org-enable-links-opening
                (not (eq toc-org-hrefify-hash nil))
-               (equal type "thisfile"))
+               ;; Org 8.2 and below provides type as "thisfile"
+               (or (equal type "thisfile")
+                   ;; Org 8.3 and above provides type as "custom-id" and strips
+                   ;; the leading hash symbol
+                   (and (equal type "custom-id")
+                        (setq type "fuzzy")
+                        (setq path (concat "#" path)))))
       (setq ret-path
             (or
              (gethash



reply via email to

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