diff lisp/simple.el @ 48984:13c2502ecdc8

(repeat-complex-command): Signal real error on failure.
author Richard M. Stallman <rms@gnu.org>
date Sat, 28 Dec 2002 21:23:23 +0000
parents 113fc3ea0bfb
children 5dbb47300a5b
line wrap: on
line diff
--- a/lisp/simple.el	Sat Dec 28 21:22:23 2002 +0000
+++ b/lisp/simple.el	Sat Dec 28 21:23:23 2002 +0000
@@ -702,7 +702,9 @@
 	  (or (equal newcmd (car command-history))
 	      (setq command-history (cons newcmd command-history)))
 	  (eval newcmd))
-      (ding))))
+      (if command-history
+	  (error "Argument %d is beyond length of command history" arg)
+	(error "There are no previous complex commands to repeat")))))
 
 (defvar minibuffer-history nil
   "Default minibuffer history list.