org-goto: Fix wrong number of arguments error

* lisp/org-goto.el (org-goto-location): Fix
  `isearch-search-fun-function' binding.
This commit is contained in:
Nicolas Goaziou 2017-10-24 10:28:43 +02:00
parent 3a5b75d4ee
commit 048169d270
1 changed files with 2 additions and 1 deletions

View File

@ -227,7 +227,8 @@ position or nil."
(org-no-popups
(let ((isearch-mode-map org-goto-local-auto-isearch-map)
(isearch-hide-immediately nil)
(isearch-search-fun-function #'org-goto--local-search-headings)
(isearch-search-fun-function
(lambda () #'org-goto--local-search-headings))
(org-goto-selected-point org-goto-exit-command)
(help (or help org-goto-help)))
(save-excursion