(eval-when-compile
(defmacro wl-e21-display-image-p ()
- '(image-type-available-p 'xpm)))
+ '(and wl-highlight-folder-with-icon
+ (image-type-available-p 'xpm))))
(defun wl-e21-setup-toolbar (bar)
(when (and wl-use-toolbar
(eval-when-compile
(defsubst wl-e21-highlight-folder-group-line (start end icon numbers)
- (when (wl-e21-display-image-p)
- (let (overlay)
- (let ((overlays (overlays-in start end)))
- (while (and (setq overlay (pop overlays))
- (not (overlay-get overlay 'wl-e21-icon)))))
- (unless overlay
- (setq overlay (make-overlay start end))
- (overlay-put overlay 'wl-e21-icon t)
- (overlay-put overlay 'evaporate t))
- (let ((image (get icon 'image)))
+ (let (image)
+ (when (wl-e21-display-image-p)
+ (let (overlay)
+ (let ((overlays (overlays-in start end)))
+ (while (and (setq overlay (pop overlays))
+ (not (overlay-get overlay 'wl-e21-icon)))))
+ (unless overlay
+ (setq overlay (make-overlay start end))
+ (overlay-put overlay 'wl-e21-icon t)
+ (overlay-put overlay 'evaporate t))
+ (setq image (get icon 'image))
(unless image
(let ((name (symbol-value
(cdr (assq icon wl-folder-toggle-icon-list))))
(load-path (cons wl-icon-directory load-path)))
(setq image (find-image `((:type xpm :file ,name
:ascent center))))))
- (overlay-put overlay 'display image)
- (when (and wl-use-highlight-mouse-line (display-mouse-p))
- (let ((inhibit-read-only t))
- (put-text-property (if image
- (max (1- start) (line-beginning-position))
- start)
- (line-end-position)
- 'mouse-face 'highlight)))))))
+ (overlay-put overlay 'display image)))
+ (when (and wl-use-highlight-mouse-line (display-mouse-p))
+ (let ((inhibit-read-only t))
+ (put-text-property (if image
+ (max (1- start) (line-beginning-position))
+ start)
+ (line-end-position)
+ 'mouse-face 'highlight)))))
(defsubst wl-e21-highlight-folder-by-numbers (start end text-face numbers)
(when (display-color-p)
(overlay-put overlay 'display image))))))))
(defun wl-plugged-set-folder-icon (folder string)
- (if (wl-e21-display-image-p)
- (let (type)
- (cond ((string= folder wl-queue-folder)
- (concat (get 'wl-folder-queue-image 'image)
- string))
- ((setq type (elmo-folder-type folder))
- (concat (get (intern (format "wl-folder-%s-image"
- type))
- 'image)
- string))
- (t
- string)))
- string))
+ (let (image type)
+ (when (wl-e21-display-image-p)
+ (setq image
+ (cond ((string= folder wl-queue-folder)
+ (get 'wl-folder-queue-image 'image))
+ ((setq type (or (elmo-folder-type folder)
+ (elmo-folder-type-internal
+ (elmo-make-folder folder))))
+ (get (intern (format "wl-folder-%s-image" type))
+ 'image)))))
+ (if image
+ (concat (propertize " " 'display image 'invisible t) string)
+ string)))
(defvar wl-folder-internal-icon-list
;; alist of (image . icon-file)
(define-key keymap "l" 'wl-message-toggle-disp-summary)
(define-key keymap "\C-c:d" 'wl-message-decrypt-pgp-nonmime)
(define-key keymap "\C-c:v" 'wl-message-verify-pgp-nonmime)
+ (define-key keymap "w" 'wl-draft)
(define-key keymap [mouse-4] 'wl-message-wheel-down)
(define-key keymap [mouse-5] 'wl-message-wheel-up)
(define-key keymap [S-mouse-4] 'wl-message-wheel-down)
See info under Wanderlust for full documentation.
Special commands:
-\\{wl-draft-mode-map}"))
+\\{wl-draft-mode-map}"
+ (setq font-lock-defaults nil)))
(defun wl-draft-key-setup ()
(define-key wl-draft-mode-map "\C-c\C-y" 'wl-draft-yank-original)