From 9be2d246e1f95b374e138ad9ad347e2b537d21ee Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Thu, 23 Jul 2020 20:23:25 -0400 Subject: Deal with uninteresting byte-compilation errors. --- lisp/shell.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lisp/shell.el') 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) -- cgit v1.3