emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Unescape :help-echo in links


From: Florian Beck
Subject: [O] Unescape :help-echo in links
Date: Wed, 20 Mar 2013 20:27:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi,

I use a lot of custom links (for citations) and cannot stand the escaped
mess in the help-echo. So I've been using the patch below for quite some
time without any noticable slowdown.

diff --git a/lisp/org.el b/lisp/org.el
index bf74afd..470f93d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5806,10 +5806,7 @@ by a #."
   (if (and (re-search-forward org-bracket-link-regexp limit t)
           (not (org-in-src-block-p)))
       (let* ((hl (org-match-string-no-properties 1))
-            (help (concat "LINK: " hl))
-            ;; FIXME: Above we should remove the escapes.  But that
-            ;; requires another match, protecting match data, a lot
-            ;; of overhead for font-lock.
+             (help (concat "LINK: " (save-match-data (org-link-unescape hl))))
             (ip (org-maybe-intangible
                  (list 'invisible 'org-link
                        'keymap org-mouse-map 'mouse-face 'highlight

-- 
Florian Beck



reply via email to

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