changeset 45285:dc0eece6818b

(shell-mode): Use (ring-empty-p rather than (zerop (ring-length.
author Francesco Potortì <pot@gnu.org>
date Tue, 14 May 2002 08:46:00 +0000
parents 723fdd614e34
children 6373f485f3c2
files lisp/shell.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/shell.el	Tue May 14 08:42:48 2002 +0000
+++ b/lisp/shell.el	Tue May 14 08:46:00 2002 +0000
@@ -415,7 +415,7 @@
   (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