From f071341124811e21e94592137e4b1c8f0f5fd1f5 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Mon, 20 Sep 2010 02:52:17 +0200 Subject: [PATCH] * subr.el (y-or-n-p): Remove leftover code from 2010-09-17T13:30:30Z!monnier@iro.umontreal.ca. --- lisp/ChangeLog | 2 ++ lisp/subr.el | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3dee5fb16be..c2b7c23ea19 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2010-09-20 Juanma Barranquero + * subr.el (y-or-n-p): Remove leftover code from 2010-09-17T13:30:30Z!monnier@iro.umontreal.ca. + * emacs-lisp/smie.el (smie-indent--hanging-p): Use `smie-indent--bolp'. 2010-09-19 Stefan Monnier diff --git a/lisp/subr.el b/lisp/subr.el index e76a78cdda4..b213ab759b2 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -3403,10 +3403,7 @@ is nil and `use-dialog-box' is non-nil." ((memq answer '(exit-prefix quit)) (signal 'quit nil) t) (t t))) (ding) - (discard-input) - (setq xprompt - (if (eq answer 'recenter) prompt - (concat "Please answer y or n. " prompt))))) + (discard-input))) (let ((ret (eq answer 'act))) (unless noninteractive (message "%s %s" prompt (if ret "y" "n"))) -- 2.39.2