Mention read-regexp in doc of functions that use it

* lisp/dired.el (dired-read-regexp):
* lisp/faces.el (list-faces-display):
* lisp/misearch.el (multi-isearch-read-matching-buffers)
(multi-isearch-read-matching-files):
* lisp/play/cookie1.el (cookie-apropos):
* lisp/progmodes/grep.el (grep-read-regexp): Doc fixes.
This commit is contained in:
Glenn Morris 2014-02-13 22:59:24 -08:00
parent 48c4f9b124
commit b2bf2a254f
6 changed files with 16 additions and 4 deletions

View file

@ -1,5 +1,12 @@
2014-02-14 Glenn Morris <rgm@gnu.org>
* dired.el (dired-read-regexp):
* faces.el (list-faces-display):
* misearch.el (multi-isearch-read-matching-buffers)
(multi-isearch-read-matching-files):
* play/cookie1.el (cookie-apropos):
* progmodes/grep.el (grep-read-regexp): Doc fixes.
* textmodes/remember.el (remember): Use frameset-to-register
rather than frame-configuration-to-register.

View file

@ -3284,6 +3284,7 @@ As always, hidden subdirs are not affected."
"History list of regular expressions used in Dired commands.")
(defun dired-read-regexp (prompt &optional default history)
"Read a regexp using `read-regexp'."
(read-regexp prompt default (or history 'dired-regexp-history)))
(defun dired-mark-files-regexp (regexp &optional marker-char)

View file

@ -1260,7 +1260,7 @@ The sample text is a string that comes from the variable
If REGEXP is non-nil, list only those faces with names matching
this regular expression. When called interactively with a prefix
arg, prompt for a regular expression."
argument, prompt for a regular expression using `read-regexp'."
(interactive (list (and current-prefix-arg
(read-regexp "List faces matching regexp"))))
(let ((all-faces (zerop (length regexp)))

View file

@ -239,7 +239,8 @@ set in `multi-isearch-buffers' or `multi-isearch-buffers-regexp'."
(nreverse bufs)))
(defun multi-isearch-read-matching-buffers ()
"Return a list of buffers whose names match specified regexp."
"Return a list of buffers whose names match specified regexp.
Uses `read-regexp' to read the regexp."
;; Most code from `multi-occur-in-matching-buffers'
;; and `kill-matching-buffers'.
(let ((bufregexp
@ -322,8 +323,10 @@ Every next/previous file in the defined sequence is visited by
(add-to-list 'files file))
(nreverse files)))
;; A regexp is not the same thing as a file glob - does this matter?
(defun multi-isearch-read-matching-files ()
"Return a list of files whose names match specified wildcard."
"Return a list of files whose names match specified wildcard.
Uses `read-regexp' to read the wildcard."
;; Most wildcard code from `find-file-noselect'.
(let ((filename (read-regexp "Search in files whose names match wildcard")))
(when (and filename

View file

@ -187,6 +187,7 @@ Argument REQUIRE-MATCH non-nil forces a matching cookie."
(defun cookie-apropos (regexp phrase-file &optional display)
"Return a list of all entries matching REGEXP from PHRASE-FILE.
Interactively, uses `read-regexp' to read REGEXP.
Interactively, PHRASE-FILE defaults to `cookie-file', unless that
is nil or a prefix argument is used.
If called interactively, or if DISPLAY is non-nil, display a list of matches."

View file

@ -819,7 +819,7 @@ substitution string. Note dynamic scoping of variables.")
t t command))))))
(defun grep-read-regexp ()
"Read regexp arg for interactive grep."
"Read regexp arg for interactive grep using `read-regexp'."
(read-regexp "Search for" 'grep-tag-default 'grep-regexp-history))
(defun grep-read-files (regexp)