mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-14 16:50:58 +00:00
(shell-mode): Use (ring-empty-p rather than (zerop (ring-length.
This commit is contained in:
parent
f19be16338
commit
6ba0fd3eb9
@ -415,7 +415,7 @@ buffer."
|
||||
(make-local-variable 'list-buffers-directory)
|
||||
(setq list-buffers-directory (expand-file-name default-directory))
|
||||
;; shell-dependent assignments.
|
||||
(when (zerop (ring-length comint-input-ring))
|
||||
(when (ring-empty-p comint-input-ring)
|
||||
(let ((shell (file-name-nondirectory (car
|
||||
(process-command (get-buffer-process (current-buffer)))))))
|
||||
(setq comint-input-ring-file-name
|
||||
|
Loading…
Reference in New Issue
Block a user