New feature: toggle visibility of MIME buttons.
authorvitaly <vitaly>
Tue, 19 Jan 2010 13:39:31 +0000 (13:39 +0000)
committervitaly <vitaly>
Tue, 19 Jan 2010 13:39:31 +0000 (13:39 +0000)
wl/ChangeLog
wl/wl-summary.el

index bfe120d..9f0b64a 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-19  Vitaly Mayatskikh  <v.mayatskih@gmail.com>
+       * wl-summary.el (toplevel): New function
+       `wl-summary-toggle-mime-buttons' and keybinding to toggle
+       visibility of MIME buttons in message view mode.
+
 2010-01-15  Vitaly Mayatskikh  <v.mayatskih@gmail.com>
 
        * Version number is increased to 2.15.9.
index 83998c4..72811d5 100644 (file)
@@ -430,6 +430,7 @@ See also variable `wl-use-petname'."
   (define-key wl-summary-mode-map "\C-c\C-n" 'wl-summary-next-buffer)
   (define-key wl-summary-mode-map "H"    'wl-summary-toggle-all-header)
   (define-key wl-summary-mode-map "M"    'wl-summary-toggle-mime)
+  (define-key wl-summary-mode-map "\C-cm" 'wl-summary-toggle-mime-buttons)
   (define-key wl-summary-mode-map "B"    'wl-summary-burst)
   (define-key wl-summary-mode-map "Z"    'wl-status-update)
   (define-key wl-summary-mode-map "#"    'wl-summary-print-message)
@@ -5102,6 +5103,13 @@ If ARG is numeric number, decode message as following:
          (wl-message-header-narrowing-toggle)
          (and wpos (set-window-start mwin wpos)))))))
 
+(defun wl-summary-toggle-mime-buttons ()
+  "Toggle visibility of mime buttons."
+  (interactive)
+  (customize-set-value 'mime-view-buttons-visible (not mime-view-buttons-visible))
+  (wl-message-buffer-cache-clean-up)
+  (wl-summary-redisplay))
+
 (require 'product)
 (product-provide (provide 'wl-summary) (require 'wl-version))