From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Can one use `occur' (M-s o) with case-fold-search disabled, somehow? Date: Sun, 2 Jan 2022 12:26:52 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14556"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 02 13:28:12 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n3zy8-0003a4-GY for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Jan 2022 13:28:12 +0100 Original-Received: from localhost ([::1]:32862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3zy6-00062L-Pk for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Jan 2022 07:28:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3zww-0004Ec-T6 for emacs-devel@gnu.org; Sun, 02 Jan 2022 07:26:59 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:36882 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1n3zwu-0003MS-09 for emacs-devel@gnu.org; Sun, 02 Jan 2022 07:26:58 -0500 Original-Received: (qmail 23690 invoked by uid 3782); 2 Jan 2022 12:26:52 -0000 Original-Received: from acm.muc.de (p4fe15593.dip0.t-ipconnect.de [79.225.85.147]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 02 Jan 2022 13:26:52 +0100 Original-Received: (qmail 6150 invoked by uid 1000); 2 Jan 2022 12:26:52 -0000 Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:283900 Archived-At: Hello, Emacs. It seems that increasingly I want to do M-s o on a buffer for some regexp such as "\\_", 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).