emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/search.c


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/src/search.c
Date: Thu, 09 May 2002 21:01:31 -0400

Index: emacs/src/search.c
diff -c emacs/src/search.c:1.162 emacs/src/search.c:1.163
*** emacs/src/search.c:1.162    Fri Nov 23 02:13:49 2001
--- emacs/src/search.c  Thu May  9 21:01:30 2002
***************
*** 2158,2170 ****
  
  DEFUN ("replace-match", Freplace_match, Sreplace_match, 1, 5, 0,
         doc: /* Replace text matched by last search with NEWTEXT.
  If second arg FIXEDCASE is non-nil, do not alter case of replacement text.
  Otherwise maybe capitalize the whole text, or maybe just word initials,
  based on the replaced text.
  If the replaced text has only capital letters
  and has at least one multiletter word, convert NEWTEXT to all caps.
! If the replaced text has at least one word starting with a capital letter,
! then capitalize each word in NEWTEXT.
  
  If third arg LITERAL is non-nil, insert NEWTEXT literally.
  Otherwise treat `\\' as special:
--- 2158,2172 ----
  
  DEFUN ("replace-match", Freplace_match, Sreplace_match, 1, 5, 0,
         doc: /* Replace text matched by last search with NEWTEXT.
+ Leave point at the end of the replacement text.
+ 
  If second arg FIXEDCASE is non-nil, do not alter case of replacement text.
  Otherwise maybe capitalize the whole text, or maybe just word initials,
  based on the replaced text.
  If the replaced text has only capital letters
  and has at least one multiletter word, convert NEWTEXT to all caps.
! Otherwise if all words are capitalized in the replaced text,
! capitalize each word in NEWTEXT.
  
  If third arg LITERAL is non-nil, insert NEWTEXT literally.
  Otherwise treat `\\' as special:
***************
*** 2172,2179 ****
    `\\N' means substitute what matched the Nth `\\(...\\)'.
         If Nth parens didn't match, substitute nothing.
    `\\\\' means insert one `\\'.
  FIXEDCASE and LITERAL are optional arguments.
- Leaves point at end of replacement text.
  
  The optional fourth argument STRING can be a string to modify.
  This is meaningful when the previous match was done against STRING,
--- 2174,2182 ----
    `\\N' means substitute what matched the Nth `\\(...\\)'.
         If Nth parens didn't match, substitute nothing.
    `\\\\' means insert one `\\'.
+ Case conversion does not apply to these substitutions.
+ 
  FIXEDCASE and LITERAL are optional arguments.
  
  The optional fourth argument STRING can be a string to modify.
  This is meaningful when the previous match was done against STRING,



reply via email to

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