Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a9594ce3
Commit
a9594ce3
authored
Sep 24, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(shell-command, shell-command-on-region):
Make "*Shell Command Output*" non-read-only.
parent
11bcd7d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lisp/simple.el
lisp/simple.el
+4
-1
No files found.
lisp/simple.el
View file @
a9594ce3
...
...
@@ -701,6 +701,7 @@ This cannot be done asynchronously."
(error "
Shell
command
in
progress
")))
(save-excursion
(set-buffer buffer)
(setq buffer-read-only nil)
(erase-buffer)
(display-buffer buffer)
(setq default-directory directory)
...
...
@@ -788,7 +789,8 @@ deleted."
;; If the input is the same buffer as the output,
;; delete everything but the specified region,
;; then replace that region with the output.
(progn (delete-region end (point-max))
(progn (setq buffer-read-only nil)
(delete-region end (point-max))
(delete-region (point-min) start)
(call-process-region (point-min) (point-max)
shell-file-name t t nil
...
...
@@ -797,6 +799,7 @@ deleted."
;; Clear the output buffer, then run the command with output there.
(save-excursion
(set-buffer buffer)
(setq buffer-read-only nil)
(erase-buffer))
(call-process-region start end shell-file-name
nil buffer nil
...
...
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