summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-10-03 01:10:57 +0000
committerRichard M. Stallman <rms@gnu.org>1994-10-03 01:10:57 +0000
commitb6980871aa95e9f49df7cf1164986c4a846e9958 (patch)
treea644c0b7de5a04a1c91a0b295e339a195e17e8e4 /lisp/shell.el
parent0e642f34986816b3e5842aa2f241553dce4fd627 (diff)
downloademacs-b6980871aa95e9f49df7cf1164986c4a846e9958.tar.gz
(shell-strip-ctrl-m): Function moved to comint.el and renamed.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el14
1 files changed, 0 insertions, 14 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 6571c0d4d58..becd26f65b0 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -94,7 +94,6 @@
;;; m-c-b shell-backward-command Backward a shell command
;;; dirs Resync the buffer's dir stack
;;; dirtrack-toggle Turn dir tracking on/off
-;;; shell-strip-ctrl-m Remove trailing ^Ms from output
;;;
;;; The shell mode hook is shell-mode-hook
;;; comint-prompt-regexp is initialised to shell-prompt-pattern, for backwards
@@ -809,19 +808,6 @@ Returns t if successful."
(message "Directory item: %d" index)
t))))))
-(defun shell-strip-ctrl-m (&optional string)
- "Strip trailing `^M' characters from the current output group.
-
-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)))))
- (save-excursion
- (goto-char
- (if (interactive-p) comint-last-input-end comint-last-output-start))
- (while (re-search-forward "\r+$" pmark t)
- (replace-match "" t t)))))
-
(provide 'shell)
;;; shell.el ends here