diff options
| author | Jakob L. Kreuze | 2020-07-23 20:23:25 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2020-07-23 20:23:43 -0400 |
| commit | 9be2d246e1f95b374e138ad9ad347e2b537d21ee (patch) | |
| tree | 6a518a8f5dfdeffb85633f7f0efc093f76f1f33a /lisp/shell.el | |
| parent | deccbd18160254dbab4d23da7c9f0ca355f913e0 (diff) | |
Deal with uninteresting byte-compilation errors.
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index 0449be2..fa1ee72 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -113,7 +113,7 @@ (comint-send-input) ; and send it. (save-excursion ;; Then, we copy the input to the previous line, - (previous-line) + (forward-line -1) (end-of-visual-line) (yank) ;; And finish by cleaning the kill ring. @@ -178,13 +178,15 @@ "Called when the shell process is stopped. Kills the buffer when the shell program quits." + (ignore event) (comint-write-input-ring) (let ((buf (process-buffer process))) (when (buffer-live-p buf) (with-current-buffer buf (kill-buffer))))) (defun add-shell-sentinel (&rest args) + (ignore args) (set-process-sentinel (get-buffer-process (current-buffer)) - #'shell-test-sentinel)) + #'shell-kill-buffer-on-quit)) (add-hook 'shell-mode-hook #'add-shell-sentinel) |