From 9586c880b7dcb5b042d63e61f6460fb5b5bbb78b Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 10 Apr 2012 23:39:09 +0200 Subject: [PATCH] org-pcomplete.el: Fix bug in `pcomplete/org-mode/file-option'. * org-pcomplete.el (pcomplete/org-mode/file-option): Fix bug in `pcomplete/org-mode/file-option'. Before this fix, completing #+ATTR worked only once, as `org-additional-option-like-keywords' was modified. --- lisp/org-pcomplete.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-pcomplete.el b/lisp/org-pcomplete.el index f04beffd5..5950d8e26 100644 --- a/lisp/org-pcomplete.el +++ b/lisp/org-pcomplete.el @@ -144,7 +144,7 @@ When completing for #+STARTUP, for example, this function returns (if (string-match "^#\\+\\([A-Z_]+:?\\)" x) (match-string 1 x))) (org-split-string (org-get-current-options) "\n")) - org-additional-option-like-keywords))))) + (copy-sequence org-additional-option-like-keywords)))))) (substring pcomplete-stub 2))) (defvar org-startup-options)