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
This commit is contained in:
parent
a6757d10e8
commit
fdeb1a3dc7
2 changed files with 11 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue