diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-08-23 09:34:29 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-08-23 09:34:29 +0200 |
commit | 112463cbffb8bec7ec318c27d3b862e9ddcf76f3 (patch) | |
tree | 30656250fac78d43b853d852abb1b4a311b0a267 | |
parent | 596f585a7d5a39e8878c49fa24dc11c0182e8959 (diff) | |
download | org-mode-112463cbffb8bec7ec318c27d3b862e9ddcf76f3.tar.gz |
Handle tooltips on abbreviated links
* lisp/org.el (org-activate-bracket-links): Expand abbreviations before
adding :help-echo property.
Reported-by: mc <mc@aiguphonie.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108785>
-rw-r--r-- | lisp/org.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index ae0e86b..d8fd510 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6176,7 +6176,8 @@ by a #." "Add text properties for bracketed links." (when (and (re-search-forward org-bracket-link-regexp limit t) (not (org-in-src-block-p))) - (let* ((hl (match-string-no-properties 1)) + (let* ((hl (save-match-data + (org-link-expand-abbrev (match-string-no-properties 1)))) (type (save-match-data (and (string-match org-plain-link-re hl) (match-string-no-properties 1 hl)))) |