Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
bb55b64d
Commit
bb55b64d
authored
May 22, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(shell-strip-ctrl-m): Strip multiple ^Ms.
parent
a07e7c4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lisp/shell.el
lisp/shell.el
+2
-3
No files found.
lisp/shell.el
View file @
bb55b64d
...
...
@@ -810,12 +810,11 @@ Returns t if successful."
This function could be in the list `comint-output-filter-functions' or bound to
a key."
(
interactive
)
(
let
((
pmark
(
process-mark
(
get-buffer-process
(
current-buffer
))))
(
ctrl-m
(
concat
(
char-to-string
13
)
"$"
)))
(
let
((
pmark
(
process-mark
(
get-buffer-process
(
current-buffer
)))))
(
save-excursion
(
goto-char
(
if
(
interactive-p
)
comint-last-input-end
comint-last-output-start
))
(
while
(
re-search-forward
ctrl-m
pmark
t
)
(
while
(
re-search-forward
"\r+$"
pmark
t
)
(
replace-match
""
t
t
)))))
(
provide
'shell
)
...
...
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