Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
98faf1bb
Commit
98faf1bb
authored
Jul 18, 2002
by
Richard M. Stallman
Browse files
(keep-lines, flush-lines): Interactively report
read-only error before reading regexp argument.
parent
155133a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lisp/replace.el
lisp/replace.el
+6
-2
No files found.
lisp/replace.el
View file @
98faf1bb
...
...
@@ -332,7 +332,9 @@ on the contents of the region. Otherwise, operate from point to the
end of the buffer."
(
interactive
(
keep-lines-read-args
"Keep lines (containing match for regexp): "
))
(
progn
(
barf-if-buffer-read-only
)
(
keep-lines-read-args
"Keep lines (containing match for regexp): "
)))
(
if
rstart
(
progn
(
goto-char
(
min
rstart
rend
))
...
...
@@ -381,7 +383,9 @@ on the contents of the region. Otherwise, operate from point to the
end of the buffer."
(
interactive
(
keep-lines-read-args
"Flush lines (containing match for regexp): "
))
(
progn
(
barf-if-buffer-read-only
)
(
keep-lines-read-args
"Flush lines (containing match for regexp): "
)))
(
if
rstart
(
progn
(
goto-char
(
min
rstart
rend
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment