unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: Can one use `occur' (M-s o) with case-fold-search disabled, somehow?
Date: Sun, 2 Jan 2022 12:26:52 +0000	[thread overview]
Message-ID: <YdGaDHEKAu5lEojD@ACM> (raw)

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).



             reply	other threads:[~2022-01-02 12:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-02 12:26 Alan Mackenzie [this message]
2022-01-02 12:57 ` Can one use `occur' (M-s o) with case-fold-search disabled, somehow? LdBeth
2022-01-02 14:24   ` xenodasein--- via Emacs development discussions.
2022-01-02 14:54     ` Eli Zaretskii
2022-01-03  3:12       ` LdBeth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YdGaDHEKAu5lEojD@ACM \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).