comparison lisp/gnus/gnus-util.el @ 90361:a7364c1a561e

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-40 Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 135-143) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 49-55) - Merge from emacs--devo--0 - Update from CVS - Update from CVS: Makefile.in (release-*): New targets.
author Miles Bader <miles@gnu.org>
date Thu, 09 Mar 2006 07:15:37 +0000
parents c5406394f567 55665aaac72b
children e3bacb89536a
comparison
equal deleted inserted replaced
90360:23b7c43b24ce 90361:a7364c1a561e
1457 ;; Exclude invalid display names. 1457 ;; Exclude invalid display names.
1458 (string-match "\\`[^:]*:[0-9]+\\(\\.[0-9]+\\)?\\'" 1458 (string-match "\\`[^:]*:[0-9]+\\(\\.[0-9]+\\)?\\'"
1459 display)) 1459 display))
1460 display))))) 1460 display)))))
1461 1461
1462 (defun gnus-tool-bar-update (&rest ignore)
1463 "Update the tool bar."
1464 (when (and (boundp 'tool-bar-mode)
1465 tool-bar-mode)
1466 (let* ((args nil)
1467 (func (cond ((featurep 'xemacs)
1468 'ignore)
1469 ((fboundp 'tool-bar-update)
1470 'tool-bar-update)
1471 ((fboundp 'force-window-update)
1472 'force-window-update)
1473 ((fboundp 'redraw-frame)
1474 (setq args (list (selected-frame)))
1475 'redraw-frame)
1476 (t 'ignore))))
1477 (apply func args))))
1478
1462 ;; Fixme: This has only one use (in gnus-agent), which isn't worthwhile. 1479 ;; Fixme: This has only one use (in gnus-agent), which isn't worthwhile.
1463 (defmacro gnus-mapcar (function seq1 &rest seqs2_n) 1480 (defmacro gnus-mapcar (function seq1 &rest seqs2_n)
1464 "Apply FUNCTION to each element of the sequences, and make a list of the results. 1481 "Apply FUNCTION to each element of the sequences, and make a list of the results.
1465 If there are several sequences, FUNCTION is called with that many arguments, 1482 If there are several sequences, FUNCTION is called with that many arguments,
1466 and mapping stops as soon as the shortest sequence runs out. With just one 1483 and mapping stops as soon as the shortest sequence runs out. With just one