[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive dafc7f1b93 72/82: Fix: (hyperdrive--org-link-go
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive dafc7f1b93 72/82: Fix: (hyperdrive--org-link-goto) Use org-link-search |
Date: |
Mon, 25 Sep 2023 19:00:56 -0400 (EDT) |
branch: elpa/hyperdrive
commit dafc7f1b933ffc1e1df02a0660c364a2d88d4c43
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Fix: (hyperdrive--org-link-goto) Use org-link-search
---
hyperdrive-org.el | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/hyperdrive-org.el b/hyperdrive-org.el
index 0a1965e077..47dff61750 100644
--- a/hyperdrive-org.el
+++ b/hyperdrive-org.el
@@ -118,11 +118,8 @@ raw URL, not an Org link."
"Go to TARGET in current Org buffer.
TARGET may be a CUSTOM_ID or a headline."
(cl-assert (eq 'org-mode major-mode))
- ;; We do not ensure that a target only exists once in the file, but
- ;; neither does Org always do so.
- (goto-char (or (org-find-property "CUSTOM_ID" target)
- (org-find-exact-headline-in-buffer target)
- (hyperdrive-error "Unable to find entry in file: %S"
target))))
+ ;; Remove leading "::" from target.
+ (org-link-search (substring target (length "::"))))
(defun hyperdrive-org-link-complete ()
"Create a hyperdrive org link."
- [nongnu] elpa/hyperdrive 0b5adb547f 60/82: Test: Insert full "hyper://" links, (continued)
- [nongnu] elpa/hyperdrive 0b5adb547f 60/82: Test: Insert full "hyper://" links, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive dd795f5f2a 53/82: Test: Add tests for storing links, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 990d23ab55 57/82: Test: Rename org-mode/* to org-mode-*, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive dc8af9b72c 59/82: Test: Remove roundtrip tests, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive d704c5a181 64/82: Meta: Update changelog, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive f1bb94bb83 66/82: Change: (hyperdrive-org-link-follow) Don't jump to ID target, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 6293463834 67/82: Comment: Add TODO, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 43f50f2ae7 69/82: Change/Fix: (hyperdrive--org-open-at-point) Don't handle fuzzy links, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 27d352dda2 70/82: Comment: Remove TODO, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 5588fb4e1d 71/82: Change/Fix: (hyperdrive--org-link-goto) Don't URI-decode target, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive dafc7f1b93 72/82: Fix: (hyperdrive--org-link-goto) Use org-link-search,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive c1932fb6fd 74/82: Change: (hyperdrive--org-open-at-point) Include target, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 20dd9efc70 76/82: Tidy, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 0a875bef41 78/82: Fix: Docstring, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive fe3c0c374a 79/82: Tests: Add relative/absolute link parsing tests, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 7d06ffd037 80/82: Meta: Update .gitignore, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 7826c10faa 81/82: Merge branch 'wip/org-heading-links', ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 903847d50e 82/82: Tidy: Docstrings, comments, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 670ae8050f 03/82: WIP: Add link tests, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 9b3b215444 04/82: WIP, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 62c487448f 06/82: WIP, ELPA Syncer, 2023/09/25