summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2013-09-02 08:08:58 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2013-09-02 08:08:58 +0200
commit36bd97865917a878e36409c47109ff3825cee823 (patch)
tree1acf551a9808f72a488ea56e14c0b3de3095d706
parenta6986494a0c4fc5d3363c2bebe48215e7138e4f1 (diff)
downloadorg-mode-36bd97865917a878e36409c47109ff3825cee823.tar.gz
Fix completion of headline names after *
* lisp/org-pcomplete.el (org-make-org-heading-search-string): Fix function declaration. (pcomplete/org-mode/searchhead): Remove incorrect second arguments to `org-make-org-heading-search-string'.
-rw-r--r--lisp/org-pcomplete.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-pcomplete.el b/lisp/org-pcomplete.el
index 4e8ba0e..77f68f4 100644
--- a/lisp/org-pcomplete.el
+++ b/lisp/org-pcomplete.el
@@ -36,7 +36,7 @@
(declare-function org-split-string "org" (string &optional separators))
(declare-function org-make-org-heading-search-string "org"
- (&optional string heading))
+ (&optional string))
(declare-function org-get-buffer-tags "org" ())
(declare-function org-get-tags "org" ())
(declare-function org-buffer-property-keys "org"
@@ -326,7 +326,7 @@ This needs more work, to handle headings with lots of spaces in them."
(let (tbl)
(while (re-search-forward org-todo-line-regexp nil t)
(push (org-make-org-heading-search-string
- (match-string-no-properties 3) t)
+ (match-string-no-properties 3))
tbl))
(pcomplete-uniqify-list tbl)))
(substring pcomplete-stub 1))))