summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorFrancesco Potortì <pot@gnu.org>2002-05-14 08:46:00 +0000
committerFrancesco Potortì <pot@gnu.org>2002-05-14 08:46:00 +0000
commit6ba0fd3eb934e5063db7621cb052339abfdb278b (patch)
treec56ab8c68435e4810aa1aa4b70721bced5ebc3d0 /lisp/shell.el
parentf19be1633866a52c0e139887b81d51056a8d5236 (diff)
downloademacs-6ba0fd3eb934e5063db7621cb052339abfdb278b.tar.gz
(shell-mode): Use (ring-empty-p rather than (zerop (ring-length.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index c93cc77b673..ec52a2f3624 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -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