changeset 23472:d75fa19c5fc0

(next-history-element): Special error message if no default.
author Richard M. Stallman <rms@gnu.org>
date Fri, 16 Oct 1998 19:15:04 +0000
parents b6dbbd2cc3ac
children 4c242b09e413
files lisp/simple.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Fri Oct 16 18:07:03 1998 +0000
+++ b/lisp/simple.el	Fri Oct 16 19:15:04 1998 +0000
@@ -783,7 +783,9 @@
 		 (null minibuffer-text-before-history))
 	    (setq minibuffer-text-before-history (buffer-string)))
 	(if (< narg minimum)
-	    (error "End of history; no next item"))
+	    (if minibuffer-default
+		(error "End of history; no next item")
+	      (error "End of history; no default available")))
 	(if (> narg (length (symbol-value minibuffer-history-variable)))
 	    (error "Beginning of history; no preceding item"))
 	(erase-buffer)