changeset 76102:47b27cdb3ec2

(comint-read-input-ring): Use comint-input-ring-size from the comint buffer instead of the temporary one.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 23 Feb 2007 19:21:25 +0000
parents 4a7eb3370da0
children eb3920a6798d
files lisp/comint.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/comint.el	Fri Feb 23 19:13:40 2007 +0000
+++ b/lisp/comint.el	Fri Feb 23 19:21:25 2007 +0000
@@ -896,7 +896,7 @@
 		 ;; Watch for those date stamps in history files!
 		 (goto-char (point-max))
 		 (let (start end history)
-		   (while (and (< count comint-input-ring-size)
+		   (while (and (< count size)
 			       (re-search-backward comint-input-ring-separator nil t)
 			       (setq end (match-beginning 0)))
 		     (if (re-search-backward comint-input-ring-separator nil t)