all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#51020: 28.0.60; [PATCH] Update documentation of search-whitespace-regexp
       [not found] <m1r1d01l2u.fsf.ref@yahoo.es>
@ 2021-10-04 22:28 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-05  7:38   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-04 22:28 UTC (permalink / raw)
  To: 51020

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]


The documentation of search-whitespace-regexp mentions that the default
value depends on the major mode (\s-), but in Emacs 28 it was updated to
only match tabs and spaces explicitly.  The attached patch corrects the
documentation.

Thanks.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Update-documentation-of-search-whitespace-regexp.patch --]
[-- Type: text/x-patch, Size: 1312 bytes --]

From 997f71fadefc6a5440b2e674caa5434f731b8bcd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
Date: Tue, 5 Oct 2021 00:20:16 +0200
Subject: [PATCH] Update documentation of search-whitespace-regexp

* doc/emacs/search.texi (Lax Search): Update the documentation about
the default value of search-whitespace-regexp, as it is now
independent of the major mode's syntax table.
---
 doc/emacs/search.texi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index 8a101f1150..761161be1c 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -1332,9 +1332,8 @@ Lax Search
 search string to a regular expression specified by the variable
 @code{search-whitespace-regexp}.  For example, to make spaces match
 sequences of newlines as well as spaces, set it to
-@samp{"[[:space:]\n]+"}.  The default value of this variable depends
-on the buffer's major mode; most major modes classify spaces, tabs,
-and formfeed characters as whitespace.
+@samp{"[[:space:]\n]+"}.  The default value of this variable considers
+any sequence of spaces and tab characters as whitespace.
 
   If you want whitespace characters to match exactly, you can turn lax
 space matching off by typing @kbd{M-s @key{SPC}}
-- 
2.31.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#51020: 28.0.60; [PATCH] Update documentation of search-whitespace-regexp
  2021-10-04 22:28 ` bug#51020: 28.0.60; [PATCH] Update documentation of search-whitespace-regexp Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-05  7:38   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-10-05  7:38 UTC (permalink / raw)
  To: Daniel Martín; +Cc: 51020

Daniel Martín <mardani29@yahoo.es> writes:

> The documentation of search-whitespace-regexp mentions that the default
> value depends on the major mode (\s-), but in Emacs 28 it was updated to
> only match tabs and spaces explicitly.  The attached patch corrects the
> documentation.

Thanks; pushed to emacs-28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-05  7:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <m1r1d01l2u.fsf.ref@yahoo.es>
2021-10-04 22:28 ` bug#51020: 28.0.60; [PATCH] Update documentation of search-whitespace-regexp Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-05  7:38   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.