(gnus-y-or-n-p, gnus-yes-or-no-p): Alias to y-or-n-p and yes-or-no-p.
authorReiner Steib <Reiner.Steib@gmx.de>
Fri, 14 Dec 2007 21:12:40 +0000 (21:12 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Fri, 14 Dec 2007 21:12:40 +0000 (21:12 +0000)
lisp/ChangeLog
lisp/gnus-util.el

index 2e38cf8..b8a2574 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-14  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * gnus-util.el (gnus-y-or-n-p, gnus-yes-or-no-p): Alias to y-or-n-p and
+       yes-or-no-p.
+
 2007-12-11  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mm-decode.el (mm-add-meta-html-tag): New function.
index 8a6e8fa..ea9512d 100644 (file)
@@ -330,15 +330,23 @@ Symbols are also allowed; their print names are used instead."
 
 ;; Two silly functions to ensure that all `y-or-n-p' questions clear
 ;; the echo area.
-(defun gnus-y-or-n-p (prompt)
-  (prog1
-      (y-or-n-p prompt)
-    (message "")))
-
-(defun gnus-yes-or-no-p (prompt)
-  (prog1
-      (yes-or-no-p prompt)
-    (message "")))
+;;
+;; Do we really need these aliases?  Workarounds for bugs in the corresponding
+;; Emacs functions?  Maybe these bug are no longer present in any supported
+;; (X)Emacs version?  Alias them to the original functions and see if anyone
+;; reports a problem.  If not, replace with original functions.  --rsteib
+;;
+;; (defun gnus-y-or-n-p (prompt)
+;;   (prog1
+;;       (y-or-n-p prompt)
+;;     (message "")))
+;; (defun gnus-yes-or-no-p (prompt)
+;;   (prog1
+;;       (yes-or-no-p prompt)
+;;     (message "")))
+
+(defalias 'gnus-y-or-n-p 'y-or-n-p)
+(defalias 'gnus-yes-or-no-p 'yes-or-no-p)
 
 ;; By Frank Schmitt <ich@Frank-Schmitt.net>. Allows to have
 ;; age-depending date representations. (e.g. just the time if it's