]> git.eshelyaron.com Git - emacs.git/commitdiff
Mention that Emacs is usually case-insensitive in a couple of places
authordalanicolai <dalanicolai@gmail.com>
Sat, 8 May 2021 11:59:03 +0000 (13:59 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 8 May 2021 11:59:03 +0000 (13:59 +0200)
* 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
lisp/emacs-lisp/re-builder.el

index 16a8e56e90a0536cb4bc0040bae155d1c34dce02..99451d0bc66d43cd36fe0b9ef168159924e9d0f2 100644 (file)
@@ -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.
index 455fcac701f47e1bdf2f09babd4183d90110b532..b695dff55a487359041e588a05cb3635c0767cd7 100644 (file)
@@ -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))