* Can one use `occur' (M-s o) with case-fold-search disabled, somehow?
@ 2022-01-02 12:26 Alan Mackenzie
2022-01-02 12:57 ` LdBeth
0 siblings, 1 reply; 5+ messages in thread
From: Alan Mackenzie @ 2022-01-02 12:26 UTC (permalink / raw
To: emacs-devel
Hello, Emacs.
It seems that increasingly I want to do M-s o on a buffer for some
regexp such as "\\_<eq\\_>", looking for occurrences of "eq", but my
results are swamped by unwanted occurrences of "EQ". This is not good.
I've looked at the Emacs manual (but not the Lisp code), and there
doesn't seem to be a way to get case sensitive matches. Is this in fact
the case?
If so, this is also not good. Why don't we use the key sequence M-s O
for this? The command could be called `occur-with-case', or something
like that.
Comments?
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can one use `occur' (M-s o) with case-fold-search disabled, somehow?
2022-01-02 12:26 Can one use `occur' (M-s o) with case-fold-search disabled, somehow? Alan Mackenzie
@ 2022-01-02 12:57 ` LdBeth
2022-01-02 14:24 ` xenodasein--- via Emacs development discussions.
0 siblings, 1 reply; 5+ messages in thread
From: LdBeth @ 2022-01-02 12:57 UTC (permalink / raw
To: Alan Mackenzie; +Cc: emacs-devel
>>>>> In <YdGaDHEKAu5lEojD@ACM>
>>>>> Alan Mackenzie <acm@muc.de> wrote:
> I've looked at the Emacs manual (but not the Lisp code), and there
> doesn't seem to be a way to get case sensitive matches. Is this in fact
> the case?
You might want `M-x toggle-case-fold-search',or you can proabably
define a keyboard macro if you want case sensitive search frequently.
--
LDB
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can one use `occur' (M-s o) with case-fold-search disabled, somehow?
2022-01-02 12:57 ` LdBeth
@ 2022-01-02 14:24 ` xenodasein--- via Emacs development discussions.
2022-01-02 14:54 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: xenodasein--- via Emacs development discussions. @ 2022-01-02 14:24 UTC (permalink / raw
To: emacs-devel
Jan 2, 2022, 15:26 by acm@muc.de:
> ...
> Why don't we use the key sequence M-s O for this?
> ...
> --
> Alan Mackenzie (Nuremberg, Germany).
>
Default bindings seem to avoid having shifted letter keys, does
anyone know why? I don't remember reading about this in key
bindings section. Using only two modifiers seems like a good
reason. Vim also uses two modifiers constantly, but we don't
hear about a Vim pinkie. Boo, talk about marketing...
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can one use `occur' (M-s o) with case-fold-search disabled, somehow?
2022-01-02 14:24 ` xenodasein--- via Emacs development discussions.
@ 2022-01-02 14:54 ` Eli Zaretskii
2022-01-03 3:12 ` LdBeth
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2022-01-02 14:54 UTC (permalink / raw
To: xenodasein; +Cc: emacs-devel
> Date: Sun, 2 Jan 2022 15:24:09 +0100 (CET)
> From: xenodasein--- via "Emacs development discussions." <emacs-devel@gnu.org>
> > Why don't we use the key sequence M-s O for this?
> > ...
> > --
> > Alan Mackenzie (Nuremberg, Germany).
> >
>
> Default bindings seem to avoid having shifted letter keys, does
> anyone know why?
Because it's easy to accidentally leave the Shift key pressed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can one use `occur' (M-s o) with case-fold-search disabled, somehow?
2022-01-02 14:54 ` Eli Zaretskii
@ 2022-01-03 3:12 ` LdBeth
0 siblings, 0 replies; 5+ messages in thread
From: LdBeth @ 2022-01-03 3:12 UTC (permalink / raw
To: Eli Zaretskii; +Cc: emacs-devel
>>>>> In <837dbidw8g.fsf@gnu.org>
>>>>> Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Sun, 2 Jan 2022 15:24:09 +0100 (CET)
>> From: xenodasein--- via "Emacs development discussions." <emacs-devel@gnu.org>
>> Default bindings seem to avoid having shifted letter keys, does
>> anyone know why?
Eli> Because it's easy to accidentally leave the Shift key pressed.
AND Because it's easy to accidentally left CapsLocks on.
--
LDB
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-01-03 3:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-02 12:26 Can one use `occur' (M-s o) with case-fold-search disabled, somehow? Alan Mackenzie
2022-01-02 12:57 ` LdBeth
2022-01-02 14:24 ` xenodasein--- via Emacs development discussions.
2022-01-02 14:54 ` Eli Zaretskii
2022-01-03 3:12 ` LdBeth
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).