From 536b728a07631b54c510a18d6977398c66919247 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 28 Dec 2002 21:23:23 +0000 Subject: [PATCH] (repeat-complex-command): Signal real error on failure. --- lisp/simple.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index 67f0edb2628..6331be18766 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -702,7 +702,9 @@ to get different commands to edit and resubmit." (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. -- 2.39.2