comparison lisp/gnus/gnus-util.el @ 87300:b968c7f9a8b4

Merge from gnus--devo--0 Revision: emacs@sv.gnu.org/emacs--devo--0--patch-955
author Miles Bader <miles@gnu.org>
date Sun, 16 Dec 2007 04:31:33 +0000
parents 4f3a531fad0a
children 107ccd98fa12 2fcaae6177a5
comparison
equal deleted inserted replaced
87299:a524d1739a14 87300:b968c7f9a8b4
335 default 335 default
336 answer))) 336 answer)))
337 337
338 ;; Two silly functions to ensure that all `y-or-n-p' questions clear 338 ;; Two silly functions to ensure that all `y-or-n-p' questions clear
339 ;; the echo area. 339 ;; the echo area.
340 (defun gnus-y-or-n-p (prompt) 340 ;;
341 (prog1 341 ;; Do we really need these aliases? Workarounds for bugs in the corresponding
342 (y-or-n-p prompt) 342 ;; Emacs functions? Maybe these bug are no longer present in any supported
343 (message ""))) 343 ;; (X)Emacs version? Alias them to the original functions and see if anyone
344 344 ;; reports a problem. If not, replace with original functions. --rsteib
345 (defun gnus-yes-or-no-p (prompt) 345 ;;
346 (prog1 346 ;; (defun gnus-y-or-n-p (prompt)
347 (yes-or-no-p prompt) 347 ;; (prog1
348 (message ""))) 348 ;; (y-or-n-p prompt)
349 ;; (message "")))
350 ;; (defun gnus-yes-or-no-p (prompt)
351 ;; (prog1
352 ;; (yes-or-no-p prompt)
353 ;; (message "")))
354
355 (defalias 'gnus-y-or-n-p 'y-or-n-p)
356 (defalias 'gnus-yes-or-no-p 'yes-or-no-p)
349 357
350 ;; By Frank Schmitt <ich@Frank-Schmitt.net>. Allows to have 358 ;; By Frank Schmitt <ich@Frank-Schmitt.net>. Allows to have
351 ;; age-depending date representations. (e.g. just the time if it's 359 ;; age-depending date representations. (e.g. just the time if it's
352 ;; from today, the day of the week if it's within the last 7 days and 360 ;; from today, the day of the week if it's within the last 7 days and
353 ;; the full date if it's older) 361 ;; the full date if it's older)