Browse Source

org-pcomplete: Add colons when completing abbrev links

* lisp/org-pcomplete.el (pcomplete/org-mode/todo): Add colons when
  completing abbrev links.
Nicolas Goaziou 6 years ago
parent
commit
961367bf6a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lisp/org-pcomplete.el

+ 3 - 2
lisp/org-pcomplete.el

@@ -302,8 +302,9 @@ When completing for #+STARTUP, for example, this function returns
   (pcomplete-here
    (pcomplete-uniquify-list
     (copy-sequence
-     (append (mapcar 'car org-link-abbrev-alist-local)
-	     (mapcar 'car org-link-abbrev-alist))))))
+     (mapcar (lambda (e) (concat (car e) ":"))
+	     (append org-link-abbrev-alist-local
+		     org-link-abbrev-alist))))))
 
 (defvar org-entities)
 (defun pcomplete/org-mode/tex ()