| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
| |
(perform-replace): If that variable is non-nil, ignore matches
that have a read-only property.
|
| |
|
|
| |
to the end of the argument list and make them optional.
|
| |
|
|
| |
correct order.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Provide nil for the region args.
(keep-lines, flush-lines, how-many):
Calculate the defaults for the region here, when args are nil.
|
| |
|
|
|
| |
(query-replace-to-history-variable, keep-lines-read-args)
(occur-revert-function, query-replace-help): Dox fix.
|
| |
|
|
|
|
| |
(how-many): Save excursion properly.
(occur-mode): Use define-derived-mode.
(perform-replace): Use with-current-buffer.
|
| | |
|
| | |
|
| |
|
|
|
| |
to a non-empty match when computing the next match before the
replacement is performed.
|
| |
|
|
| |
colon following the line number.
|
| |
|
|
|
|
| |
(keep-lines, flush-lines, how-many): Use keep-lines-read-args to
read arguments interactively. Add parameters RSTART and REND.
Operate on the active region in Transient Mark mode.
|
| |
|
|
|
|
| |
value of tab-width in the original buffer. Choose a line number
format that's a multiple of the original buffer's tab width, so
that lines appear right.
|
| | |
|
| |
|
|
|
| |
Instead, move backward 1 character At the end of the loop when
necessary.
|
| |
|
|
| |
(replace-highlight): Use facep, not internal-find-face.
|
| |
|
|
|
| |
(query-replace-help): Extend help text.
(perform-replace): Allow editing the replacement string.
|
| |
|
|
|
|
|
|
|
|
| |
them instead of the check for a region in Transient Mark mode.
(query-replace-read-args): Return two more list elements for the
start and end of the region in Transient Mark mode.
(query-replace, query-replace-regexp, query-replace-regexp-eval)
(map-query-replace-regexp, replace-string, replace-regexp): Add
optional last arguments START and END and pass them to
perform-replace.
|
| |
|
|
|
|
| |
when MATCH-AGAIN is nil, and REGEXP-FLAG is t. We don't want
to do that because it leaves point 1 position after the last
replacement, after everything has been replaced.
|
| |
|
|
|
| |
(map-query-replace-regexp, query-replace-regexp-eval): Likewise.
(query-replace-regexp): Likewise.
|
| |
|
|
|
|
|
| |
(replace-eval-replacement, replace-loop-through-replacements)
(replace-match-string-symbols): New functions.
(perform-replace): Allow REPLACEMENTS to be (FUNCTION . DATA).
Use replace-loop-through-replacements.
|
| |
|
|
| |
if FROM-STRING argument has uppercase in it.
|
| |
|
|
| |
Don't ignore case if arg has upper case letters.
|
| |
|
|
| |
before and after the recursive edit of C-r.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
get the match data as markers, and set real-match-data.
|
| | |
|
| |
|
|
|
|
| |
No need to clear text props from the result.
(query-replace-read-args, map-query-replace-regexp):
Offer the FROM arg as the default for the TO arg.
|
| |
|
|
|
| |
(query-replace-to-history-variable): New variable.
(query-replace-read-args): Use them.
|
| |
|
|
| |
insert one anyway. Compensate for that when inserting line nums.
|
| |
|
|
| |
M-n can insert default value into minibuffer.
|
| |
|
|
|
| |
region is active, only search the region.
(query-replace, etc.): Doc fixes.
|
| | |
|
| |
|
|
|
|
|
| |
minibuffer-inherit-input-method to t to make a minibuffer inherit
the current input method.
(map-query-replace-regexp, keep-lines, flush-lines): Likewise.
(how-many, occur): Likewise.
|
| |
|
|
| |
`occur-marker' extends to the end of the line rather than one char before end.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
marker for the occurrence in the source buffer. This replaces the
list `occur-pos-list', and fixes the bug for multi-line matches.
Set up `occur-point' text property for occur-next and occur-prev.
(occur): occur-num-matches stores the number of matches found.
(occur-mode-find-occurrence): Use `occur' text property to find
marker for locus of the occurrence.
(occur-next, occur-prev): New commands.
(occur): Fixed bug preventing line number being displayed if line
number is less than the number of lines of context.
|
| |
|
|
| |
integers, since a replacement may invalidate integers.
|
| |
|
|
|
|
| |
adjacent to this one, record the next match before replacing this one.
This fixes a bug where (replace-regexp "\\ba " "c") replaced "a a a "
with "ca c" instead of "ccc".
|
| | |
|
| | |
|
| |
|
|
| |
(occur): Doc fix.
|
| | |
|
| | |
|