(gnus-summary-make-menu-bar): Add message-cite-function toggle.
authorReiner Steib <Reiner.Steib@gmx.de>
Mon, 24 Mar 2008 18:50:18 +0000 (18:50 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Mon, 24 Mar 2008 18:50:18 +0000 (18:50 +0000)
lisp/ChangeLog
lisp/gnus-sum.el

index 7d56cbe..5728168 100644 (file)
@@ -1,5 +1,8 @@
 2008-03-24  Reiner Steib  <Reiner.Steib@gmx.de>
 
+       * gnus-sum.el (gnus-summary-make-menu-bar): Add message-cite-function
+       toggle.
+
        * message.el (message-check-news-body-syntax): Fix signature check.
        (message-setup-1): Mark buffer as unmodified _after_ running
        message-setup-hook and handling message-alternative-emails.
index 8c7eea7..f9bf075 100644 (file)
@@ -2549,6 +2549,29 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
        ["Followup via news" gnus-summary-followup-to-mail t]
        ["Followup via news and yank"
         gnus-summary-followup-to-mail-with-original t]
+       ["Strip signature on reply"
+        (lambda ()
+          (interactive)
+          (if (not (memq message-cite-function
+                         '(message-cite-original-without-signature
+                           message-cite-original)))
+              ;; Stupid workaround for XEmacs not honoring :visible.
+              (message "Can't toggle this value of `message-cite-function'")
+            (setq message-cite-function
+                  (if (eq message-cite-function
+                          'message-cite-original-without-signature)
+                      'message-cite-original
+                    'message-cite-original-without-signature))))
+        ;; XEmacs barfs on :visible.
+        ,@(if (featurep 'xemacs) nil
+            '(:visible (memq message-cite-function
+                             '(message-cite-original-without-signature
+                               message-cite-original))))
+        :style toggle
+        :selected (eq message-cite-function
+                      'message-cite-original-without-signature)
+        ,@(if (featurep 'xemacs) nil
+            '(:help "Strip signature from cited article when replying."))]
        ;;("Draft"
        ;;["Send" gnus-summary-send-draft t]
        ;;["Send bounced" gnus-resend-bounced-mail t])