emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lispref/searching.texi


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lispref/searching.texi
Date: Sat, 04 May 2002 02:33:47 -0400

Index: emacs/lispref/searching.texi
diff -c emacs/lispref/searching.texi:1.38 emacs/lispref/searching.texi:1.39
*** emacs/lispref/searching.texi:1.38   Tue Dec 11 01:11:38 2001
--- emacs/lispref/searching.texi        Sat May  4 02:33:47 2002
***************
*** 1209,1223 ****
  Then @code{replace-match} does the replacement by constructing and
  returning a new string.
  
! If @var{fixedcase} is address@hidden, then the case of the replacement
! text is not changed; otherwise, the replacement text is converted to a
! different case depending upon the capitalization of the text to be
! replaced.  If the original text is all upper case, the replacement text
! is converted to upper case.  If the first word of the original text is
! capitalized, then the first word of the replacement text is capitalized.
! If the original text contains just one word, and that word is a capital
! letter, @code{replace-match} considers this a capitalized first word
! rather than all upper case.
  
  If @var{literal} is address@hidden, then @var{replacement} is inserted
  exactly as it is, the only alterations being case changes as needed.
--- 1209,1223 ----
  Then @code{replace-match} does the replacement by constructing and
  returning a new string.
  
! If @var{fixedcase} is address@hidden, then @code{replace-match} uses
! the replacement text without case conversion; otherwise, it converts
! the replacement text depending upon the capitalization of the text to
! be replaced.  If the original text is all upper case, this converts
! the replacement text to upper case.  If all words of the original text
! are capitalized, this capitalizes all the words of the replacement
! text.  If all the words are one-letter and they are all upper case,
! they are treated as capitalized words rather than all-upper-case
! words.
  
  If @var{literal} is address@hidden, then @var{replacement} is inserted
  exactly as it is, the only alterations being case changes as needed.
***************
*** 1240,1245 ****
--- 1240,1248 ----
  @cindex @samp{\} in replacement
  @samp{\\} stands for a single @samp{\} in the replacement text.
  @end table
+ 
+ These substitutions occur after case conversion, if any,
+ so the strings they substitute are never case-converted.
  
  If @var{subexp} is address@hidden, that says to replace just
  subexpression number @var{subexp} of the regexp that was matched, not



reply via email to

[Prev in Thread] Current Thread [Next in Thread]