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

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

[nongnu] elpa/hyperdrive 22c95b82a4 068/102: Fix: Complete rename of org


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 22c95b82a4 068/102: Fix: Complete rename of org link functions
Date: Wed, 29 Nov 2023 04:00:54 -0500 (EST)

branch: elpa/hyperdrive
commit 22c95b82a4e17ec41317ba08fd448cfba7b16152
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Fix: Complete rename of org link functions
    
    These functions were renamed in [1: 2678c1d] but some callers outside
    of "hyperdrive-org.el" were not updated.
    
    1: 2023-11-17 2678c1d7ca025dbfe83ae7797ed26aca3bef281b
       Change: Replace hyperdrive--org- prefix with hyperdrive-org--
---
 hyperdrive-lib.el | 4 ++--
 hyperdrive.el     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index b2f9fbc4e6..8d590aaa0b 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -1244,7 +1244,7 @@ Otherwise, return nil.  SLOT may be one of
 
 ;;;; Handlers
 
-(declare-function hyperdrive--org-link-goto "hyperdrive-org")
+(declare-function hyperdrive-org--link-goto "hyperdrive-org")
 (cl-defun hyperdrive-handler-default (entry &key then)
   "Load ENTRY's file into an Emacs buffer.
 If then, then call THEN with no arguments.  Default handler."
@@ -1271,7 +1271,7 @@ If then, then call THEN with no arguments.  Default 
handler."
                 (pcase major-mode
                   ('org-mode
                    (require 'hyperdrive-org)
-                   (hyperdrive--org-link-goto target))
+                   (hyperdrive-org--link-goto target))
                   ('markdown-mode
                    ;; TODO: Handle markdown link
                    )))
diff --git a/hyperdrive.el b/hyperdrive.el
index deb406781b..0cc21ce246 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -303,12 +303,12 @@ Intended to be passed to `buffer-local-restore-state'.")
         (add-hook 'after-change-major-mode-hook
                   #'hyperdrive--hack-write-contents-functions nil 'local)
         ;; TODO: Consider checking for existing advice before adding our own.
-        (advice-add #'org-insert-link :after 
#'hyperdrive--org-insert-link-after-advice))
+        (advice-add #'org-insert-link :after 
#'hyperdrive-org--insert-link-after-advice))
     (buffer-local-restore-state hyperdrive-mode--state)
     (remove-hook 'after-change-major-mode-hook
                  #'hyperdrive--hack-write-contents-functions 'local)
     ;; FIXME: Only remove advice when all hyperdrive-mode buffers are killed.
-    ;; (advice-remove #'org-insert-link #'hyperdrive--org-insert-link)
+    ;; (advice-remove #'org-insert-link #'hyperdrive-org--insert-link)
     ))
 ;; Making it permanent-local keeps the minor mode active even if the
 ;; user changes the major mode, so the buffer can still be saved back



reply via email to

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