unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22483: 25.1.50; Doc string of `isearch-lax-whitespace' does not show toggle key
@ 2016-01-28 15:55 Drew Adams
  2016-01-28 16:00 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Drew Adams @ 2016-01-28 15:55 UTC (permalink / raw)
  To: 22483

The doc string says you can toggle using command
`isearch-togggle-lax-whitespace'.  That's pretty useless, as it makes
sense only during Isearch.  It should say that you can use key `M-s SPC'
to do this.  IOW, there is a missing \\[...] envelope.

Not only that, but if you actually try `M-x
isearch-toggle-lax-whitespace' you may be in for a bit of a surprise.

The same doc-string problem holds for other Isearch doc strings that
mention this command - they should all use \\[...] and say that you can
use this _during Isearch_ to toggle the variable value.


In GNU Emacs 25.1.50.1 (i686-pc-mingw32)
 of 2015-12-10
Repository revision: 6148555ee5a3d0139ae517803718b3e0357933c7
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
Configured using:
 'configure --prefix=/c/Devel/emacs/snapshot/trunk --enable-checking=yes
 --enable-check-lisp-object-type --without-compress-install 'CFLAGS=-Og
 -ggdb3' LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
 -Ic:/Devel/emacs/include''





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

* bug#22483: 25.1.50; Doc string of `isearch-lax-whitespace' does not show toggle key
  2016-01-28 15:55 Drew Adams
@ 2016-01-28 16:00 ` Drew Adams
  2016-01-28 16:08   ` Drew Adams
  2016-01-28 16:46   ` Eli Zaretskii
  2016-01-28 16:45 ` Eli Zaretskii
  2021-09-25 16:12 ` Stefan Kangas
  2 siblings, 2 replies; 7+ messages in thread
From: Drew Adams @ 2016-01-28 16:00 UTC (permalink / raw)
  To: 22483

> Not only that, but if you actually try `M-x
> isearch-toggle-lax-whitespace' you may be in for a bit of a surprise.

Especially in Emacs 24.5 (i.e., before Emacs 25 builds), where the
resulting behavior includes highlighting the entire buffer with the
lazy-highlight face.





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

* bug#22483: 25.1.50; Doc string of `isearch-lax-whitespace' does not show toggle key
  2016-01-28 16:00 ` Drew Adams
@ 2016-01-28 16:08   ` Drew Adams
  2016-01-28 16:46   ` Eli Zaretskii
  1 sibling, 0 replies; 7+ messages in thread
From: Drew Adams @ 2016-01-28 16:08 UTC (permalink / raw)
  To: 22483

> > Not only that, but if you actually try `M-x
> > isearch-toggle-lax-whitespace' you may be in for a bit of a surprise.
> 
> Especially in Emacs 24.5 (i.e., before Emacs 25 builds), where the
> resulting behavior includes highlighting the entire buffer with the
> lazy-highlight face.

IOW, use \\<isearch-mode-map>`\\[isearch-toggle-lax-whitespace]' in the
doc strings of variables `isearch-lax-whitespace' and
`isearch-regexp-lax-whitespace', and function `isearch-forward-regexp'.





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

* bug#22483: 25.1.50; Doc string of `isearch-lax-whitespace' does not show toggle key
  2016-01-28 15:55 Drew Adams
  2016-01-28 16:00 ` Drew Adams
@ 2016-01-28 16:45 ` Eli Zaretskii
  2021-09-25 16:12 ` Stefan Kangas
  2 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2016-01-28 16:45 UTC (permalink / raw)
  To: Drew Adams; +Cc: 22483

> Date: Thu, 28 Jan 2016 07:55:45 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> 
> The doc string says you can toggle using command
> `isearch-togggle-lax-whitespace'.  That's pretty useless, as it makes
> sense only during Isearch.

Not true, it makes sense outside of Isearch as well (toggles the
default).





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

* bug#22483: 25.1.50; Doc string of `isearch-lax-whitespace' does not show toggle key
  2016-01-28 16:00 ` Drew Adams
  2016-01-28 16:08   ` Drew Adams
@ 2016-01-28 16:46   ` Eli Zaretskii
  1 sibling, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2016-01-28 16:46 UTC (permalink / raw)
  To: Drew Adams; +Cc: 22483

> Date: Thu, 28 Jan 2016 08:00:38 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> 
> > Not only that, but if you actually try `M-x
> > isearch-toggle-lax-whitespace' you may be in for a bit of a surprise.
> 
> Especially in Emacs 24.5 (i.e., before Emacs 25 builds), where the
> resulting behavior includes highlighting the entire buffer with the
> lazy-highlight face.

We cannot (yet) correct the past.





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

* bug#22483: 25.1.50; Doc string of `isearch-lax-whitespace' does not show toggle key
       [not found] ` <<838u39zm8f.fsf@gnu.org>
@ 2016-01-28 17:00   ` Drew Adams
  0 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2016-01-28 17:00 UTC (permalink / raw)
  To: Eli Zaretskii, Drew Adams; +Cc: 22483

> > The doc string says you can toggle using command
> > `isearch-togggle-lax-whitespace'.  That's pretty useless, as it makes
> > sense only during Isearch.
> 
> Not true, it makes sense outside of Isearch as well (toggles the
> default).

Interesting.  I thought this was a user option, but I see now that
it is not.  (I know that vanilla Emacs refuses to let users toggle
an option during Isearch, even though that lets them perform
subsequent searches also using the new value.)

So why does the toggle command initiate search as well?  And if
that is by design and not a bug, perhaps it should be documented
as part of the command behavior (it does not just toggle the
variable value).

`M-x isearch-lax-whitespace' starts searching backward, with this
message:

  Pending literal I-search backward:

Oh, and that happens each time I "toggle" the value.  The value
changes (correctly), but the search initiated always shows that
backward-literal-search message.





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

* bug#22483: 25.1.50; Doc string of `isearch-lax-whitespace' does not show toggle key
  2016-01-28 15:55 Drew Adams
  2016-01-28 16:00 ` Drew Adams
  2016-01-28 16:45 ` Eli Zaretskii
@ 2021-09-25 16:12 ` Stefan Kangas
  2 siblings, 0 replies; 7+ messages in thread
From: Stefan Kangas @ 2021-09-25 16:12 UTC (permalink / raw)
  To: Drew Adams; +Cc: 22483

tags 22483 fixed
close 22483 28.1
thanks

Drew Adams <drew.adams@oracle.com> writes:

> The doc string says you can toggle using command
> `isearch-togggle-lax-whitespace'.  That's pretty useless, as it makes
> sense only during Isearch.  It should say that you can use key `M-s SPC'
> to do this.  IOW, there is a missing \\[...] envelope.
>
> Not only that, but if you actually try `M-x
> isearch-toggle-lax-whitespace' you may be in for a bit of a surprise.
>
> The same doc-string problem holds for other Isearch doc strings that
> mention this command - they should all use \\[...] and say that you can
> use this _during Isearch_ to toggle the variable value.

All docstrings have been updated to mention the keybinding already,
except for one that I updated in commit 285f59cbe2.

I'm therefore closing this bug report.





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

end of thread, other threads:[~2021-09-25 16:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <<f3c5f45c-4ce2-49f9-96e6-f4c0fe0d9b7d@default>
     [not found] ` <<838u39zm8f.fsf@gnu.org>
2016-01-28 17:00   ` bug#22483: 25.1.50; Doc string of `isearch-lax-whitespace' does not show toggle key Drew Adams
2016-01-28 15:55 Drew Adams
2016-01-28 16:00 ` Drew Adams
2016-01-28 16:08   ` Drew Adams
2016-01-28 16:46   ` Eli Zaretskii
2016-01-28 16:45 ` Eli Zaretskii
2021-09-25 16:12 ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).