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.
This commit is contained in:
Bastien Guerry 2012-04-10 23:39:09 +02:00
parent dbd8745c29
commit 9586c880b7
1 changed files with 1 additions and 1 deletions

View File

@ -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)