Mercurial > hg > xemacs-beta
diff lisp/x-toolbar.el @ 239:41f2f0e326e9 r20-5b18
Import from CVS: tag r20-5b18
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:15:48 +0200 |
parents | 2c611d1463a6 |
children | ca9a9ec9c1c1 |
line wrap: on
line diff
--- a/lisp/x-toolbar.el Mon Aug 13 10:15:04 2007 +0200 +++ b/lisp/x-toolbar.el Mon Aug 13 10:15:48 2007 +0200 @@ -154,9 +154,11 @@ (defun toolbar-ispell-internal () (interactive) - (if (region-active-p) - (ispell-region (region-beginning) (region-end)) - (ispell-buffer))) + (cond + ((region-active-p) (ispell-region (region-beginning) (region-end))) + ((eq major-mode 'mail-mode) (ispell-message)) + ((eq major-mode 'message-mode) (ispell-message)) + (t (ispell-buffer)))) (defcustom toolbar-ispell-function 'toolbar-ispell-internal "*Function to call when the ispell icon is selected." @@ -190,7 +192,8 @@ (elm . (toolbar-external "xterm" "-e" "elm")) (mutt . (toolbar-external "xterm" "-e" "mutt")) (exmh . (toolbar-external "exmh")) - (netscape . (toolbar-external "netscape" "mailbox:"))) + (netscape . (toolbar-external "netscape" "mailbox:")) + (send . mail)) "*Alist of mail readers and their commands. The car of each alist element is the mail reader, and the cdr is the form used to start it." @@ -203,11 +206,12 @@ The legal values are the keys from `toolbar-mail-command-alist', which should be used to add new mail readers. Mail readers known by default are vm, gnus, rmail, mh, pine, elm, - mutt, exmh and netscape." + mutt, exmh, netscape and send." :type '(choice (const :tag "Not Configured" not-configured) (const vm) (const gnus) (const rmail) (const mh) (const pine) (const elm) (const mutt) (const exmh) (const netscape) + (const send) (symbol :tag "Other" :validate (lambda (wid) (if (assq (widget-value wid)