+2006-12-31 Steve Youngs <steve@sxemacs.org>
+
+ * gnus-cite.el: Load easy-mmode at compile time for (S)XEmacs to get
+ `define-minor-mode' macro definition expanded properly.
+ (gnus-message-citation-mode): This is now OK for (S)XEmacs so don't
+ exclude it there.
+
+ * gnus-msg.el (gnus-message-highlight-citation): Revert Reiner's patch
+ of 2006-12-30. The default is nil on (S)XEmacs already because of the
+ `fboundp' test.
+ (gnus-message-citation-mode): Revert Reiner's patch of 2006-12-30.
+ This is OK to autoload in (S)XEmacs now.
+
2006-12-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-sum.el (gnus-summary-limit-to-singletons): New command and
;;; Code:
(eval-when-compile (require 'cl))
+(eval-when-compile
+ (when (featurep 'xemacs)
+ (require 'easy-mmode))) ; for `define-minor-mode'
(require 'gnus)
(require 'gnus-range)
(font-lock-remove-keywords nil gnus-message-citation-keywords)
(gnus-message 1 "`font-lock-remove-keywords' not supported.")))
-(unless (featurep 'xemacs)
- (define-minor-mode gnus-message-citation-mode
- "Toggle `gnus-message-citation-mode' in current buffer.
+(define-minor-mode gnus-message-citation-mode
+ "Toggle `gnus-message-citation-mode' in current buffer.
This buffer local minor mode provides additional font-lock support for
nested citations.
With prefix ARG, turn `gnus-message-citation-mode' on if and only if ARG is
positive."
- nil ;; init-value
- "" ;; lighter
- nil ;; keymap
- (if gnus-message-citation-mode
- (gnus-message-add-citation-keywords)
- (gnus-message-remove-citation-keywords))
- (font-lock-fontify-buffer)))
+ nil ;; init-value
+ "" ;; lighter
+ nil ;; keymap
+ (if gnus-message-citation-mode
+ (gnus-message-add-citation-keywords)
+ (gnus-message-remove-citation-keywords))
+ (font-lock-fontify-buffer))
(defun turn-on-gnus-message-citation-mode ()
"Turn on `gnus-message-citation-mode'."
:type 'boolean)
(defcustom gnus-message-highlight-citation
- (and (not (featurep 'xemacs))
- ;; gnus-treat-highlight-citation ;; gnus-cite dependency
+ (and t ;; gnus-treat-highlight-citation ;; gnus-cite dependency
(fboundp 'font-lock-add-keywords))
"Enable highlighting of different citation levels in message-mode."
:version "23.0" ;; No Gnus
:group 'gnus-message
:type 'boolean)
-(unless (featurep 'xemacs)
- (autoload 'gnus-message-citation-mode "gnus-cite" nil t))
+(autoload 'gnus-message-citation-mode "gnus-cite" nil t)
;;; Internal variables.