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

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

[elpa] externals/embark 80ff7d105a: Fix bug with "copy inner"


From: ELPA Syncer
Subject: [elpa] externals/embark 80ff7d105a: Fix bug with "copy inner"
Date: Thu, 5 May 2022 09:57:29 -0400 (EDT)

branch: externals/embark
commit 80ff7d105afc090817c4162ec021758e586272f2
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>

    Fix bug with "copy inner"
    
    I forgot to declare embark-org-copy-link-inner-target as a multitarget
    action, but there is no point really, so I'm redefining it to be kill-new.
---
 embark-org.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/embark-org.el b/embark-org.el
index 30d76364af..135a2f3e34 100644
--- a/embark-org.el
+++ b/embark-org.el
@@ -180,7 +180,7 @@ what part or in what format the link is copied."
 (embark-org-define-link-copier
  as-markdown (format "[%s](%s)" description target) "as Markdown")
 
-(fset 'embark-org-copy-link-inner-target 'embark-copy-as-kill)
+(fset 'embark-org-copy-link-inner-target 'kill-new)
 (put 'embark-org-copy-link-inner-target 'function-documentation
       "Copy 'inner part' of the Org link at point's target.
 For mailto and elisp links, the inner part is the portion of the
@@ -191,7 +191,8 @@ For file links the inner part is the file name, without the
 IDs or search terms).
 
 For URLs the inner part is the whole target including the 'http:'
-or 'https:' prefix.")
+or 'https:' prefix.  For any other type of link the inner part is
+also the whole target.")
 
 (embark-define-keymap embark-org-copy-map
   "Keymap for different ways to copy Org links to the kill-ring."



reply via email to

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