From 53c230a9f612294360b606a50c0e974f54152e75 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Wed, 22 Aug 2012 12:24:14 +0200 Subject: [PATCH] org.el: Fix bug: include links abbreviations when completing * org.el (org-insert-link): Fix bug: include links abbreviations when completing. --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 9af3a7f60..1e2947ef1 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9324,6 +9324,7 @@ be used as the default description." (desc region) tmphist ; byte-compile incorrectly complains about this (link link-location) + (abbrevs org-link-abbrev-alist-local) entry file all-prefixes auto-desc) (cond (link-location) ; specified by arg, just use it. @@ -9365,7 +9366,7 @@ Use TAB to complete link prefixes, then RET for type-specific completion support ;; Fake a link history, containing the stored links. (setq tmphist (append (mapcar 'car org-stored-links) org-insert-link-history)) - (setq all-prefixes (append (mapcar 'car org-link-abbrev-alist-local) + (setq all-prefixes (append (mapcar 'car abbrevs) (mapcar 'car org-link-abbrev-alist) org-link-types)) (unwind-protect -- 2.11.4.GIT