Browse Source

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>
Nicolas Goaziou 8 years ago
parent
commit
112463cbff
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org.el

+ 2 - 1
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))))