diff options
| author | Stefan Kangas | 2022-11-04 06:31:49 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2022-11-04 06:31:49 +0100 |
| commit | 96436a125dad5cbae888e8385be2a79ef48d5d03 (patch) | |
| tree | d50d883f72a792c36d1e0aac3fcfe471747eaa49 | |
| parent | 5e7d08ae1378771f44f1e3a6840bd81a3bbb7fa7 (diff) | |
| parent | 8cae9d8bd843398010c41b1bf6d96c20937ab38f (diff) | |
| download | emacs-96436a125dad5cbae888e8385be2a79ef48d5d03.tar.gz emacs-96436a125dad5cbae888e8385be2a79ef48d5d03.zip | |
Merge from origin/emacs-28
8cae9d8bd8 ; * doc/emacs/search.texi (Lax Search): Improve wording. ...
e01e8a8f84 ; * lisp/dired-aux.el (dired-show-file-type): Doc fix.
| -rw-r--r-- | doc/emacs/search.texi | 25 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 6 |
2 files changed, 16 insertions, 15 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 582e764c55f..0090bc34005 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi | |||
| @@ -1348,18 +1348,19 @@ tailor them to your needs. | |||
| 1348 | @kindex SPC @r{(Incremental search)} | 1348 | @kindex SPC @r{(Incremental search)} |
| 1349 | @findex isearch-toggle-lax-whitespace | 1349 | @findex isearch-toggle-lax-whitespace |
| 1350 | @vindex search-whitespace-regexp | 1350 | @vindex search-whitespace-regexp |
| 1351 | By default, search commands perform @dfn{lax space matching}: | 1351 | By default, search commands perform @dfn{lax space matching}: each |
| 1352 | each space, or sequence of spaces, matches any sequence of one or more | 1352 | space, or sequence of spaces, matches any sequence of one or more |
| 1353 | whitespace characters in the text. (Incremental regexp search has a | 1353 | whitespace characters in the text. More precisely, Emacs matches each |
| 1354 | separate default; see @ref{Regexp Search}.) Hence, @w{@samp{foo bar}} | 1354 | sequence of space characters in the search string to a regular |
| 1355 | matches @w{@samp{foo bar}}, @w{@samp{foo@ @ bar}}, | 1355 | expression specified by the user option |
| 1356 | @w{@samp{foo@ @ @ bar}}, and so on (but not @samp{foobar}). More | 1356 | @code{search-whitespace-regexp}. The default value of this option |
| 1357 | precisely, Emacs matches each sequence of space characters in the | 1357 | considers any sequence of spaces and tab characters as whitespace. |
| 1358 | search string to a regular expression specified by the variable | 1358 | Hence, @w{@samp{foo bar}} matches @w{@samp{foo bar}}, @w{@samp{foo@ @ |
| 1359 | @code{search-whitespace-regexp}. For example, to make spaces match | 1359 | bar}}, @w{@samp{foo@ @ @ bar}}, and so on (but not @samp{foobar}). If |
| 1360 | sequences of newlines as well as spaces, set it to the regular expression | 1360 | you want to make spaces match sequences of newlines as well as spaces |
| 1361 | @samp{[[:space:]\n]+}. The default value of this variable considers | 1361 | and tabs, customize the option to make its value be the regular |
| 1362 | any sequence of spaces and tab characters as whitespace. | 1362 | expression @samp{[[:space:]\n]+}. (The default behavior of the |
| 1363 | incremental regexp search is different; see @ref{Regexp Search}.) | ||
| 1363 | 1364 | ||
| 1364 | If you want whitespace characters to match exactly, you can turn lax | 1365 | If you want whitespace characters to match exactly, you can turn lax |
| 1365 | space matching off by typing @kbd{M-s @key{SPC}} | 1366 | space matching off by typing @kbd{M-s @key{SPC}} |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 327a4f038b2..29f973e506a 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -3718,9 +3718,9 @@ function works." | |||
| 3718 | ;;;###autoload | 3718 | ;;;###autoload |
| 3719 | (defun dired-show-file-type (file &optional deref-symlinks) | 3719 | (defun dired-show-file-type (file &optional deref-symlinks) |
| 3720 | "Print the type of FILE, according to the `file' command. | 3720 | "Print the type of FILE, according to the `file' command. |
| 3721 | If you give a prefix to this command, and FILE is a symbolic | 3721 | If you give a prefix argument \\[universal-argument] to this command, and |
| 3722 | link, then the type of the file linked to by FILE is printed | 3722 | FILE is a symbolic link, then the command will print the type |
| 3723 | instead." | 3723 | of the target of the link instead." |
| 3724 | (interactive (list (dired-get-filename t) current-prefix-arg)) | 3724 | (interactive (list (dired-get-filename t) current-prefix-arg)) |
| 3725 | (let (process-file-side-effects) | 3725 | (let (process-file-side-effects) |
| 3726 | (with-temp-buffer | 3726 | (with-temp-buffer |