diff options
| author | Chong Yidong | 2012-09-22 23:24:26 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-09-22 23:24:26 +0800 |
| commit | c88b867fecbd50140b0b41f05599811a8f0e3dfe (patch) | |
| tree | 945c6c88a7ce2029d13af7007239e8253e1e6a44 /doc | |
| parent | bb4d86b40c61443608280df3d0668d44845177a5 (diff) | |
| download | emacs-c88b867fecbd50140b0b41f05599811a8f0e3dfe.tar.gz emacs-c88b867fecbd50140b0b41f05599811a8f0e3dfe.zip | |
Misc doc fixes.
* searching.texi (Replacing Match): Minor clarification.
* lisp/repeat.el (repeat): Doc fix.
* lisp/simple.el (shell-command-on-region): Doc fix.
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
* cmds.c (Fforward_char, Fbackward_char): Doc fix.
* editfns.c (Fline_beginning_position): Doc fix.
(Fline_end_position): Doc fix.
* minibuf.c (Finternal_complete_buffer): Doc fix.
* search.c (Freplace_match): Doc fix.
Fixes: debbugs:12325 debbugs:12391 debbugs:12416 debbugs:12414 debbugs:10909 debbugs:12348
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/searching.texi | 26 |
2 files changed, 16 insertions, 14 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index db545f8ec91..b813ac6bb1c 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-09-22 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * searching.texi (Replacing Match): Minor clarification. | ||
| 4 | |||
| 1 | 2012-09-22 Eli Zaretskii <eliz@gnu.org> | 5 | 2012-09-22 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * edebug.texi (Instrumenting): Improve indexing. | 7 | * edebug.texi (Instrumenting): Improve indexing. |
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index edd1d30e28d..56c96363e81 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi | |||
| @@ -1278,20 +1278,18 @@ search. It works by means of the match data. | |||
| 1278 | 1278 | ||
| 1279 | @cindex case in replacements | 1279 | @cindex case in replacements |
| 1280 | @defun replace-match replacement &optional fixedcase literal string subexp | 1280 | @defun replace-match replacement &optional fixedcase literal string subexp |
| 1281 | This function replaces the text in the buffer (or in @var{string}) that | 1281 | This function performs a replacement operation on a buffer or string. |
| 1282 | was matched by the last search. It replaces that text with | 1282 | |
| 1283 | @var{replacement}. | 1283 | If you did the last search in a buffer, you should omit the |
| 1284 | 1284 | @var{string} argument or specify @code{nil} for it, and make sure that | |
| 1285 | If you did the last search in a buffer, you should specify @code{nil} | 1285 | the current buffer is the one in which you performed the last search. |
| 1286 | for @var{string} and make sure that the current buffer when you call | 1286 | Then this function edits the buffer, replacing the matched text with |
| 1287 | @code{replace-match} is the one in which you did the searching or | 1287 | @var{replacement}. It leaves point at the end of the replacement |
| 1288 | matching. Then @code{replace-match} does the replacement by editing | 1288 | text, and returns @code{t}. |
| 1289 | the buffer; it leaves point at the end of the replacement text, and | 1289 | |
| 1290 | returns @code{t}. | 1290 | If you performed the last search on a string, pass the same string as |
| 1291 | 1291 | @var{string}. Then this function returns a new string, in which the | |
| 1292 | If you did the search in a string, pass the same string as @var{string}. | 1292 | matched text is replaced by @var{replacement}. |
| 1293 | Then @code{replace-match} does the replacement by constructing and | ||
| 1294 | returning a new string. | ||
| 1295 | 1293 | ||
| 1296 | If @var{fixedcase} is non-@code{nil}, then @code{replace-match} uses | 1294 | If @var{fixedcase} is non-@code{nil}, then @code{replace-match} uses |
| 1297 | the replacement text without case conversion; otherwise, it converts | 1295 | the replacement text without case conversion; otherwise, it converts |