[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master fdeb1a3: Mention that Emacs is usually case-insensitive in a coup
From: |
Lars Ingebrigtsen |
Subject: |
master fdeb1a3: Mention that Emacs is usually case-insensitive in a couple of places |
Date: |
Sat, 8 May 2021 07:59:58 -0400 (EDT) |
branch: master
commit fdeb1a3dc77ccac28e6cf91b9cc4aa43f3060e7a
Author: dalanicolai <dalanicolai@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Mention that Emacs is usually case-insensitive in a couple of places
* doc/lispref/searching.texi (Regular Expressions): Mention
`case-fold-search'.
* lisp/emacs-lisp/re-builder.el (re-builder): Mention case
sensitivity toggles (bug#47534).
Copyright-paperwork-exempt: yes
---
doc/lispref/searching.texi | 5 +++++
lisp/emacs-lisp/re-builder.el | 7 ++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi
index 16a8e56..99451d0 100644
--- a/doc/lispref/searching.texi
+++ b/doc/lispref/searching.texi
@@ -251,6 +251,11 @@ matches in the target buffer are highlighted. Each
parenthesized
sub-expression of the regexp is shown in a distinct face, which makes
it easier to verify even very complex regexps.
+ Note that by default Emacs search ignores case (@xref{Searching and
+Case}). To enable case-sensitive regexp search and match, bind
+@code{case-fold-search} to @code{nil} around the code you want to be
+case-sensitive.
+
@menu
* Syntax of Regexps:: Rules for writing regular expressions.
* Regexp Example:: Illustrates regular expression syntax.
diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el
index 455fcac..b695dff 100644
--- a/lisp/emacs-lisp/re-builder.el
+++ b/lisp/emacs-lisp/re-builder.el
@@ -341,7 +341,12 @@ the regexp builder. It displays a buffer named
\"*RE-Builder*\"
in another window, initially containing an empty regexp.
As you edit the regexp in the \"*RE-Builder*\" buffer, the
-matching parts of the target buffer will be highlighted."
+matching parts of the target buffer will be highlighted.
+
+Case-sensitivity can be toggled with \\[reb-toggle-case]. The
+regexp builder supports three different forms of input which can
+be set with \\[reb-change-syntax]. More options and details are
+provided in the initial comment of`re-builder.el'."
(interactive)
(if (and (string= (buffer-name) reb-buffer)
(reb-mode-buffer-p))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master fdeb1a3: Mention that Emacs is usually case-insensitive in a couple of places,
Lars Ingebrigtsen <=