Skip to content

Commit 4fe321a

Browse files
authored
Clarify docstring for meow-visit #431 (#433)
Default behavior now is you either select one candidate (word or symbol in buffer), or search for raw string. The regexp quote will prevent it to be treated as regexp. Docstring should not give an impression that `meow-visit` searches for regexps. The dual function of `meow-visit-sanitize-completion` is also explained in better detail.
1 parent 2437a95 commit 4fe321a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

meow-command.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,14 +1344,15 @@ Argument REVERSE if selection is reversed."
13441344
(funcall func-2 text nil t 1)))))
13451345

13461346
(defun meow-visit (arg)
1347-
"Read a regexp from minibuffer, then search and select it.
1347+
"Read a string from minibuffer, then find and select it.
13481348
13491349
The input will be pushed into `regexp-search-ring'. So
13501350
\\[meow-search] can be used for further searching with the same condition.
13511351
1352-
A list of occurred regexps will be provided for completion, the regexps will
1353-
be sanitized by default. To display them in raw format, set
1354-
`meow-visit-sanitize-completion' to nil.
1352+
A list of words and symbols in the current buffer will be provided for completion.
1353+
To search for regexp instead, set `meow-visit-sanitize-completion' to nil.
1354+
In that case, completions will be provided in regexp form, but also covering
1355+
the words and symbols in the current buffer.
13551356
13561357
To search backward, use \\[negative-argument]."
13571358
(interactive "P")

0 commit comments

Comments
 (0)