浏览代码

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.
Bastien Guerry 13 年之前
父节点
当前提交
9586c880b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org-pcomplete.el

+ 1 - 1
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)