bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22043: 25.0.50; search-forward and char folding


From: Eli Zaretskii
Subject: bug#22043: 25.0.50; search-forward and char folding
Date: Sun, 29 Nov 2015 18:32:41 +0200

> From: Mike Kupfer <m.kupfer@acm.org>
> Date: Sat, 28 Nov 2015 14:11:42 -0800
> 
> The "Lax Search" Info node says
> 
>     Searches in Emacs by default perform character folding
> 
> But I don't see search-forward or search-backward doing that.  For
> example, in the scratch buffer of "emacs -Q" if I do
> 
>   ä C-p
>   M-x search-forward RET a RET
> 
> Emacs complains that the search failed.

I did test it before I wrote that text.  Try this recipe instead:

   ä C-p
   C-s RET a RET

The Emacs manual doesn't advertise search-forward and search-backward,
it advertises "C-s RET" and "C-r RET" instead, which do (by default)
perform character folding (and also obey the rest of the features
described in that node).

So yes, it's an inaccuracy in the manual, but not in that sentence.
The inaccuracy is where the manual says (or was saying):

     When you type ‘C-s <RET>’, the ‘C-s’ invokes incremental search as
  usual.  That command is specially programmed to invoke the command for
  nonincremental search, ‘search-forward’, if the string you specify is
  empty.  (Such an empty argument would otherwise be useless.)  ‘C-r
  <RET>’ does likewise, invoking the command ‘search-backward’.

"C-s RET" doesn't invoke search-forward, at least not by default,
haven't been doing that for quite some time.  I fixed that inaccuracy
now, thanks for pointing it out.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]