From: dalanicolai Date: Sat, 8 May 2021 11:59:03 +0000 (+0200) Subject: Mention that Emacs is usually case-insensitive in a couple of places X-Git-Tag: emacs-28.0.90~2553 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fdeb1a3dc77ccac28e6cf91b9cc4aa43f3060e7a;p=emacs.git 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 --- diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index 16a8e56e90a..99451d0bc66 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 455fcac701f..b695dff55a4 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))