[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
- [nongnu] elpa/toc-org 37f3bf2733 112/128: Add tests for the case-sensitive COMMENT regexp, (continued)
- [nongnu] elpa/toc-org 37f3bf2733 112/128: Add tests for the case-sensitive COMMENT regexp, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 4d259c9cea 086/128: Merge pull request #51 from snosov1/work-in-derived-modes, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org cd1868787c 087/128: Fix Emacs 26 warning, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 3315ef6c96 106/128: Merge pull request #66 from snosov1/enable-toc-org-for-markdown, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 9fefa63d42 119/128: Merge pull request #75 from Alexander-Miller/local-offset, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 7ff7abb015 029/128: update documentation on org-toc-2 in the source, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org df4ad6ff15 121/128: Merge pull request #76 from snosov1/revert-75-local-offset, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org c4c61c5a38 117/128: Merge pull request #73 from syohex/correct-sample, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org acca680bc5 098/128: Add somewhat working TOC generation for markdown files, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 0b759818ee 025/128: fix byte-compilation warning, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org a0fd8ffb8a 047/128: make internal linking work with Org 8.3,
ELPA Syncer <=
- [nongnu] elpa/toc-org 7fae24baa9 030/128: revert org-toc-2 documentation changes, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org af1ffb17c2 050/128: Better toc-org-special-chars-regexp, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 158934fefd 064/128: Merge pull request #31 from azizyemloul/delete-heading-trailing-spaces, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org a0e8ca05e8 066/128: Merge pull request #33 from iqbalansari/master, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 39fbbda8df 081/128: handle custom keywords specified in the files, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 8dbb3df422 125/128: Fix byte-compiler warning in Emacs 28, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org a3d953a5fa 076/128: Update and clarify primary docstring to explain :noexport:, etc., ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 5a2d7e58dd 028/128: add org-toc-2 alias, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org da99c5d801 023/128: require ert, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 63a0144afa 031/128: fix documentation, ELPA Syncer, 2022/01/02