Fix 'Wrong type argument: commandp, +default/search-project'
Regression from #3656
This commit is contained in:
parent
85974d381e
commit
f82775fead
1 changed files with 9 additions and 6 deletions
|
@ -21,13 +21,16 @@ If prefix ARG is set, prompt for a directory to search from."
|
||||||
(+default/search-cwd 'other))
|
(+default/search-cwd 'other))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +default/search-buffer (&optional arg)
|
(defun +default/search-buffer ()
|
||||||
(interactive "P")
|
"Conduct a text search on the current buffer.
|
||||||
(if (region-active-p)
|
If a selection is active, pre-fill the prompt with it."
|
||||||
(call-interactively #'swiper-isearch-thing-at-point)
|
(interactive)
|
||||||
(call-interactively #'swiper-isearch)))
|
(call-interactively
|
||||||
|
(if (region-active-p)
|
||||||
|
#'swiper-isearch-thing-at-point
|
||||||
|
#'swiper-isearch)))
|
||||||
|
|
||||||
;;;autoload
|
;;;###autoload
|
||||||
(defun +default/search-project (&optional arg)
|
(defun +default/search-project (&optional arg)
|
||||||
"Conduct a text search in the current project root.
|
"Conduct a text search in the current project root.
|
||||||
If prefix ARG is set, prompt for a known project to search from."
|
If prefix ARG is set, prompt for a known project to search from."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue