From fdace895fa15ca6cf461a4b4a22a01747c80b33b Mon Sep 17 00:00:00 2001 From: Bastien Guerry <bzg@altern.org> Date: Mon, 23 Apr 2012 22:29:54 +0200 Subject: [PATCH] Fix bug in `org-insert-link'. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 66bc74ee5..0c45fecec 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9200,7 +9200,7 @@ Use TAB to complete link prefixes, then RET for type-specific completion support (org-fit-window-to-buffer)) (and (window-live-p cw) (select-window cw))) ;; Fake a link history, containing the stored links. - (setq tmphist (append (mapcar 'org-link-prettify org-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) (mapcar 'car org-link-abbrev-alist)