+2007-04-27 Didier Verna <didier@xemacs.org>
+
+ * gnus-util.el (gnus-orify-regexp): Moved and renamed to ...
+ * gmm-utils.el (gmm-regexp-concat): here.
+ * message.el: Don't require 'gnus-util.
+ (message-dont-reply-to-names): Handle name change above.
+ * gnus-sum.el (gnus-ignored-from-addresses): Ditto.
+
2007-04-26 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-util.el (mm-charset-synonym-alist): Don't make it a user option
:type 'integer
:group 'gmm)
+;;;###autoload
+(defun gmm-regexp-concat (regexp)
+ "Potentially concat a list of regexps into a single one.
+The concatenation is done with logical ORs."
+ (cond ((null regexp)
+ nil)
+ ((stringp regexp)
+ regexp)
+ ((listp regexp)
+ (mapconcat (lambda (elt) (concat "\\(" elt "\\)"))
+ regexp
+ "\\|"))))
+
;;;###autoload
(defun gmm-message (level &rest args)
"If LEVEL is lower than `gmm-verbose' print ARGS using `message'.
(repeat :tag "Regexp List" regexp)))
(defsubst gnus-ignored-from-addresses ()
- (gnus-orify-regexp gnus-ignored-from-addresses))
+ (gmm-regexp-concat gnus-ignored-from-addresses))
(defcustom gnus-summary-to-prefix "-> "
"*String prefixed to the To field in the summary line when
((fboundp 'replace-in-string)
(defalias 'gnus-replace-in-string 'replace-in-string))))
-(defun gnus-orify-regexp (regexp)
- "Potentially convert a list of regexps into a single one."
- (cond ((null regexp)
- nil)
- ((stringp regexp)
- regexp)
- ((listp regexp)
- (mapconcat (lambda (elt) (concat "\\(" elt "\\)"))
- regexp
- "\\|"))))
-
(defun gnus-boundp (variable)
"Return non-nil if VARIABLE is bound and non-nil."
(and (boundp variable)
(require 'mml)
(require 'rfc822)
(require 'ecomplete)
-(require 'gnus-util)
+
(defgroup message '((user-mail-address custom-variable)
(user-full-name custom-variable))
(repeat :tag "Regexp List" regexp)))
(defsubst message-dont-reply-to-names ()
- (gnus-orify-regexp message-dont-reply-to-names))
+ (gmm-regexp-concat message-dont-reply-to-names))
(defvar message-shoot-gnksa-feet nil
"*A list of GNKSA feet you are allowed to shoot.