-;;; wl-e21.el -- Wanderlust modules for Emacs 21.
+;;; wl-e21.el --- Wanderlust modules for Emacs 21.
;; Copyright (C) 2000,2001 Katsumi Yamaoka <yamaoka@jpl.org>
;; Copyright (C) 2000,2001 Yuuichi Teranishi <teranisi@gohome.org>
;;(let (image icon from to overlay)
;; ;; The function `find-image' will look for an image first on `load-path'
;; ;; and then in `data-directory'.
-;; (let ((load-path (cons wl-icon-dir load-path)))
+;; (let ((load-path (cons wl-icon-directory load-path)))
;; (setq image (find-image (list (list :type 'xpm :file wl-nntp-folder-icon
;; :ascent 'center)))))
;; ;; `propertize' is a convenient function in such a case.
(defvar-maybe wl-folder-mode-map (make-sparse-keymap))
(defvar-maybe wl-draft-mode-map (make-sparse-keymap)))
-;; For Emacs 21.0.104 or earlier
-(defun-maybe make-mode-line-mouse-map (mouse function) "\
-Return a keymap with single entry for mouse key MOUSE on the mode line.
-MOUSE is defined to run function FUNCTION with no args in the buffer
-corresponding to the mode line clicked."
- (let ((map (make-sparse-keymap)))
- (define-key map (vector 'mode-line mouse) function)
- map))
-
-;; `display-images-p' has not been available prior to Emacs 21.0.105.
-(defalias-maybe 'display-images-p 'display-graphic-p)
-
(add-hook 'wl-folder-mode-hook 'wl-setup-folder)
(add-hook 'wl-folder-mode-hook 'wl-folder-init-icons)
wl-folder-prev-entity t "Previous Folder"]
[wl-folder-check-current-entity
wl-folder-check-current-entity t "Check Current Folder"]
- ;;[wl-draft
- ;; wl-draft t "Write a New Message"]
[wl-folder-sync-current-entity
wl-folder-sync-current-entity t "Sync Current Folder"]
[wl-draft
wl-draft t "Write a New Message"]
+ [wl-write-current-folder
+ wl-folder-write-current-folder t "Write for Current Folder"]
[wl-folder-empty-trash
wl-folder-empty-trash t "Empty Trash"]
[wl-exit
wl-summary-mark-as-important t "Mark Current Message as Important"]
[wl-draft
wl-draft t "Write a New Message"]
+ [wl-write-current-folder
+ wl-summary-write-current-folder t "Write for Current Folder"]
[wl-summary-reply
wl-summary-reply t "Reply to Current Message" ]
[wl-summary-reply-with-citation
(defun wl-e21-setup-toolbar (bar)
(when (and wl-use-toolbar
(wl-e21-display-image-p))
- (let ((load-path (cons wl-icon-dir load-path))
+ (let ((load-path (cons wl-icon-directory load-path))
(props '(:type xpm :ascent center
:color-symbols (("backgroundToolBarColor" . "None"))
:file))
success)))
(defvar wl-e21-toolbar-configurations
- '((auto-resize-tool-bar . t)
+ '((auto-resize-tool-bars . t)
(auto-raise-tool-bar-buttons . t)
(tool-bar-button-margin . 0)
(tool-bar-button-relief . 2)))
(unless image
(let ((name (symbol-value
(cdr (assq icon wl-folder-toggle-icon-list))))
- (load-path (cons wl-icon-dir load-path)))
+ (load-path (cons wl-icon-directory load-path)))
(when (setq image (find-image `((:type xpm :file ,name
:ascent center))))
(setq image (put icon 'image (propertize name
(defun wl-folder-init-icons ()
(when (wl-e21-display-image-p)
- (let ((load-path (cons wl-icon-dir load-path))
+ (let ((load-path (cons wl-icon-directory load-path))
(icons wl-folder-internal-icon-list)
icon name image)
(while (setq icon (pop icons))
(if (wl-e21-display-image-p)
(progn
(unless wl-plugged-image
- (let ((load-path (cons wl-icon-dir load-path)))
+ (let ((load-path (cons wl-icon-directory load-path)))
(setq wl-plugged-image (find-image
`((:type xpm
:file ,wl-plugged-icon
(if (wl-e21-display-image-p)
(progn
(unless wl-biff-mail-image
- (let ((load-path (cons wl-icon-dir load-path)))
+ (let ((load-path (cons wl-icon-directory load-path)))
(setq wl-biff-mail-image (find-image
`((:type xpm
:file ,wl-biff-mail-icon
(defalias 'wl-setup-summary 'wl-e21-setup-summary-toolbar)
-(defvar widget-keymap)
(defun wl-message-define-keymap ()
(let ((keymap (make-sparse-keymap)))
(define-key keymap "l" 'wl-message-toggle-disp-summary)
(define-key keymap [mouse-5] 'wl-message-wheel-up)
(define-key keymap [S-mouse-4] 'wl-message-wheel-down)
(define-key keymap [S-mouse-5] 'wl-message-wheel-up)
- (when (and (get 'mime-button 'widget-type) ; mime-button is defined.
- (boundp 'widget-keymap))
- (set-keymap-parent keymap widget-keymap))
(set-keymap-parent wl-message-button-map keymap)
(define-key wl-message-button-map
[mouse-2] 'wl-message-button-dispatcher)
(define-key wl-draft-mode-map "\C-c\C-j" 'wl-template-select)
(define-key wl-draft-mode-map "\C-c\C-p" 'wl-draft-preview-message)
(define-key wl-draft-mode-map "\C-c\C-a" 'wl-addrmgr)
- (define-key wl-draft-mode-map "\C-x\C-s" 'wl-draft-save)
- (define-key wl-draft-mode-map "\C-xk" 'wl-draft-mimic-kill-buffer))
+;; (define-key wl-draft-mode-map "\C-x\C-s" 'wl-draft-save)
+ (define-key wl-draft-mode-map "\C-xk" 'wl-draft-mimic-kill-buffer)
+ (define-key wl-draft-mode-map "\C-c\C-d" 'wl-draft-elide-region))
(defun wl-draft-overload-functions ()
(wl-mode-line-buffer-identification)