434 |
This manual describes regular expression features that users |
This manual describes regular expression features that users |
435 |
typically want to use. There are additional features that are |
typically want to use. There are additional features that are |
436 |
mainly used in Lisp programs; see @ref{Regular Expressions,,, |
mainly used in Lisp programs; see @ref{Regular Expressions,,, |
437 |
elisp, the same manual}. |
elisp, The Emacs Lisp Reference Manual}. |
438 |
|
|
439 |
Regular expressions have a syntax in which a few characters are |
Regular expressions have a syntax in which a few characters are |
440 |
special constructs and the rest are @dfn{ordinary}. An ordinary |
special constructs and the rest are @dfn{ordinary}. An ordinary |
921 |
@item |
@item |
922 |
The selected window and selected frame. |
The selected window and selected frame. |
923 |
@item |
@item |
924 |
The current match-data @xref{Match Data,,,elisp}. |
The current match-data. @xref{Match Data,,, elisp, The Emacs Lisp |
925 |
|
Reference Manual}. |
926 |
@end enumerate |
@end enumerate |
927 |
|
|
928 |
Additionally, the command must not delete the current window and must |
Additionally, the command must not delete the current window and must |
931 |
|
|
932 |
Note that an attempt by a command to scroll the text |
Note that an attempt by a command to scroll the text |
933 |
@emph{horizontally} won't work, although it will do no harm---any such |
@emph{horizontally} won't work, although it will do no harm---any such |
934 |
scrolling will be overriden and nullified by the display code. |
scrolling will be overridden and nullified by the display code. |
935 |
|
|
936 |
@node Replace, Other Repeating Search, Configuring Scrolling, Search |
@node Replace, Other Repeating Search, Configuring Scrolling, Search |
937 |
@section Replacement Commands |
@section Replacement Commands |
1064 |
@end example |
@end example |
1065 |
|
|
1066 |
For computing replacement strings for @samp{\,}, the @code{format} |
For computing replacement strings for @samp{\,}, the @code{format} |
1067 |
function is often useful (@pxref{Formatting Strings,,,elisp, GNU Emacs |
function is often useful (@pxref{Formatting Strings,,, elisp, The Emacs |
1068 |
Lisp Reference Manual}). For example, to add consecutively numbered |
Lisp Reference Manual}). For example, to add consecutively numbered |
1069 |
strings like @samp{ABC00042} to columns 73 @w{to 80} (unless they are |
strings like @samp{ABC00042} to columns 73 @w{to 80} (unless they are |
1070 |
already occupied), you can use |
already occupied), you can use |
1085 |
@end example |
@end example |
1086 |
|
|
1087 |
@noindent |
@noindent |
1088 |
will add labels starting with @samp{\label@{fn:0@}} to occurences of |
will add labels starting with @samp{\label@{fn:0@}} to occurrences of |
1089 |
@samp{\footnote@{}, but letting you edit each replacement before |
@samp{\footnote@{}, but letting you edit each replacement before |
1090 |
performing it. To number the labels starting at 1, use @samp{\,(1+ |
performing it. To number the labels starting at 1, use @samp{\,(1+ |
1091 |
\#)} instead of @samp{\#}. |
\#)} instead of @samp{\#}. |