diff options
| author | Bill Wohler | 2005-12-19 05:37:02 +0000 |
|---|---|---|
| committer | Bill Wohler | 2005-12-19 05:37:02 +0000 |
| commit | fa4075e33c5a06a20d73b4ba1afa63f7011d78d2 (patch) | |
| tree | a1c617e77bddc2c97dd3ff6810da715b08b38742 | |
| parent | d78e9711abc6f0c9323a16ea6090cbe839cfd0fd (diff) | |
| download | emacs-fa4075e33c5a06a20d73b4ba1afa63f7011d78d2.tar.gz emacs-fa4075e33c5a06a20d73b4ba1afa63f7011d78d2.zip | |
* mh-customize.el (mh-toolbar): Rename to mh-tool-bar.
(mh-tool-bar-search-function): Sync docstrings with manual.
(mh-tool-bar-customize): Replace toolbar with tool bar in docstring.
(mh-tool-bar-letter-help): Fix manual reference.
(mh-xemacs-use-toolbar-flag): Rename to mh-xemacs-use-tool-bar-flag.
Initialize to mh-xemacs-has-tool-bar-flag. Sync docstrings with
manual.
(mh-xemacs-toolbar-position): Rename to mh-xemacs-tool-bar-position.
Initialize to nil. Drop "no tool bar" option (redundant) and change
"Same As Default Tool Bar" setting to nil. Sync docstrings with
manual.
(mh-tool-bar-define): Replace toolbar with tool-bar or tool bar
depending on context.
(mh-toolbar-init): Rename to mh-tool-bar-init. Simplified condition
for calling set-specifier. Only look at the value of
mh-xemacs-use-tool-bar-flag.
(mh-tool-bar-folder-buttons, mh-tool-bar-letter-buttons): Sync
docstrings with manual.
* mh-comp.el (mh-letter-mode): Use mh-tool-bar-init instead of
mh-toolbar-init.
* mh-e.el (mh-folder-mode): Ditto.
* mh-utils.el (mh-show-mode): Ditto.
| -rw-r--r-- | lisp/mh-e/ChangeLog | 29 | ||||
| -rw-r--r-- | lisp/mh-e/mh-comp.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-customize.el | 167 | ||||
| -rw-r--r-- | lisp/mh-e/mh-e.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-utils.el | 2 |
5 files changed, 111 insertions, 91 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 33f016bb2f9..25e102c117d 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,32 @@ | |||
| 1 | 2005-12-18 Bill Wohler <wohler@newt.com> | ||
| 2 | |||
| 3 | * mh-customize.el (mh-toolbar): Rename to mh-tool-bar. | ||
| 4 | (mh-tool-bar-search-function): Sync docstrings with manual. | ||
| 5 | (mh-tool-bar-customize): Replace toolbar with tool bar in | ||
| 6 | docstring. | ||
| 7 | (mh-tool-bar-letter-help): Fix manual reference. | ||
| 8 | (mh-xemacs-use-toolbar-flag): Rename to | ||
| 9 | mh-xemacs-use-tool-bar-flag. Initialize to | ||
| 10 | mh-xemacs-has-tool-bar-flag. Sync docstrings with manual. | ||
| 11 | (mh-xemacs-toolbar-position): Rename to | ||
| 12 | mh-xemacs-tool-bar-position. Initialize to nil. Drop "no tool bar" | ||
| 13 | option (redundant) and change "Same As Default Tool Bar" setting | ||
| 14 | to nil. Sync docstrings with manual. | ||
| 15 | (mh-tool-bar-define): Replace toolbar with tool-bar or tool bar | ||
| 16 | depending on context. | ||
| 17 | (mh-toolbar-init): Rename to mh-tool-bar-init. Simplified | ||
| 18 | condition for calling set-specifier. Only look at the value of | ||
| 19 | mh-xemacs-use-tool-bar-flag. | ||
| 20 | (mh-tool-bar-folder-buttons, mh-tool-bar-letter-buttons): Sync | ||
| 21 | docstrings with manual. | ||
| 22 | |||
| 23 | * mh-comp.el (mh-letter-mode): Use mh-tool-bar-init instead of | ||
| 24 | mh-toolbar-init. | ||
| 25 | |||
| 26 | * mh-e.el (mh-folder-mode): Ditto. | ||
| 27 | |||
| 28 | * mh-utils.el (mh-show-mode): Ditto. | ||
| 29 | |||
| 1 | 2005-12-15 Bill Wohler <wohler@newt.com> | 30 | 2005-12-15 Bill Wohler <wohler@newt.com> |
| 2 | 31 | ||
| 3 | * mh-e.el (mh-delete-msg): Sync docstrings with manual. | 32 | * mh-e.el (mh-delete-msg): Sync docstrings with manual. |
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index 5cac13d265b..a13fb102034 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el | |||
| @@ -994,7 +994,7 @@ When a message is composed, the hooks `text-mode-hook' and | |||
| 994 | ;; Enable undo since a show-mode buffer might have been reused. | 994 | ;; Enable undo since a show-mode buffer might have been reused. |
| 995 | (buffer-enable-undo) | 995 | (buffer-enable-undo) |
| 996 | (set (make-local-variable 'tool-bar-map) mh-letter-tool-bar-map) | 996 | (set (make-local-variable 'tool-bar-map) mh-letter-tool-bar-map) |
| 997 | (mh-funcall-if-exists mh-toolbar-init :letter) | 997 | (mh-funcall-if-exists mh-tool-bar-init :letter) |
| 998 | (make-local-variable 'font-lock-defaults) | 998 | (make-local-variable 'font-lock-defaults) |
| 999 | (cond | 999 | (cond |
| 1000 | ((or (equal mh-highlight-citation-style 'font-lock) | 1000 | ((or (equal mh-highlight-citation-style 'font-lock) |
diff --git a/lisp/mh-e/mh-customize.el b/lisp/mh-e/mh-customize.el index e07603f69ba..e898022a6b6 100644 --- a/lisp/mh-e/mh-customize.el +++ b/lisp/mh-e/mh-customize.el | |||
| @@ -198,9 +198,9 @@ mailutils." | |||
| 198 | :link '(custom-manual "(mh-e)Threading") | 198 | :link '(custom-manual "(mh-e)Threading") |
| 199 | :group 'mh-e) | 199 | :group 'mh-e) |
| 200 | 200 | ||
| 201 | (defgroup mh-toolbar nil | 201 | (defgroup mh-tool-bar nil |
| 202 | "The toolbar" | 202 | "The tool bar" |
| 203 | :link '(custom-manual "(mh-e)Toolbar") | 203 | :link '(custom-manual "(mh-e)Tool Bar") |
| 204 | :prefix "mh-" | 204 | :prefix "mh-" |
| 205 | :group 'mh-e) | 205 | :group 'mh-e) |
| 206 | 206 | ||
| @@ -1801,15 +1801,18 @@ only if the number of messages being threaded is less than `mh-large-folder'." | |||
| 1801 | 1801 | ||
| 1802 | 1802 | ||
| 1803 | 1803 | ||
| 1804 | ;;; The Toolbar (:group 'mh-toolbar) | 1804 | ;;; The Tool Bar (:group 'mh-tool-bar) |
| 1805 | 1805 | ||
| 1806 | (defcustom mh-tool-bar-search-function 'mh-search-folder | 1806 | (defcustom mh-tool-bar-search-function 'mh-search-folder |
| 1807 | "*Function called by the tool-bar search button. | 1807 | "*Function called by the tool bar search button. |
| 1808 | See `mh-search-folder' and `mh-index-search' for details." | 1808 | |
| 1809 | Available functions include `mh-search-folder', the default, and | ||
| 1810 | `mh-index-search'. You can also choose \"Other Function\" from the \"Value | ||
| 1811 | Menu\" and enter a function of your own choosing." | ||
| 1809 | :type '(choice (const mh-search-folder) | 1812 | :type '(choice (const mh-search-folder) |
| 1810 | (const mh-index-search) | 1813 | (const mh-index-search) |
| 1811 | (function :tag "Other function")) | 1814 | (function :tag "Other Function")) |
| 1812 | :group 'mh-toolbar) | 1815 | :group 'mh-tool-bar) |
| 1813 | 1816 | ||
| 1814 | ;; Functions called from the tool bar | 1817 | ;; Functions called from the tool bar |
| 1815 | (defun mh-tool-bar-search (&optional arg) | 1818 | (defun mh-tool-bar-search (&optional arg) |
| @@ -1819,7 +1822,7 @@ Optional argument ARG is not used." | |||
| 1819 | (call-interactively mh-tool-bar-search-function)) | 1822 | (call-interactively mh-tool-bar-search-function)) |
| 1820 | 1823 | ||
| 1821 | (defun mh-tool-bar-customize () | 1824 | (defun mh-tool-bar-customize () |
| 1822 | "Call `mh-customize' from the toolbar." | 1825 | "Call `mh-customize' from the tool bar." |
| 1823 | (interactive) | 1826 | (interactive) |
| 1824 | (mh-customize t)) | 1827 | (mh-customize t)) |
| 1825 | 1828 | ||
| @@ -1830,9 +1833,9 @@ Optional argument ARG is not used." | |||
| 1830 | (delete-other-windows)) | 1833 | (delete-other-windows)) |
| 1831 | 1834 | ||
| 1832 | (defun mh-tool-bar-letter-help () | 1835 | (defun mh-tool-bar-letter-help () |
| 1833 | "Visit \"(mh-e)Draft Editing\"." | 1836 | "Visit \"(mh-e)Editing Drafts\"." |
| 1834 | (interactive) | 1837 | (interactive) |
| 1835 | (info "(mh-e)Draft Editing") | 1838 | (info "(mh-e)Editing Drafts") |
| 1836 | (delete-other-windows)) | 1839 | (delete-other-windows)) |
| 1837 | 1840 | ||
| 1838 | (defmacro mh-tool-bar-reply-generator (function recipient folder-buffer-flag) | 1841 | (defmacro mh-tool-bar-reply-generator (function recipient folder-buffer-flag) |
| @@ -1855,45 +1858,35 @@ When INCLUDE-FLAG is non-nil, include message body being replied to." | |||
| 1855 | 1858 | ||
| 1856 | ;; XEmacs has a couple of extra customizations... | 1859 | ;; XEmacs has a couple of extra customizations... |
| 1857 | (mh-do-in-xemacs | 1860 | (mh-do-in-xemacs |
| 1858 | (defcustom mh-xemacs-use-toolbar-flag (if (and (featurep 'toolbar) | 1861 | (defcustom mh-xemacs-use-tool-bar-flag mh-xemacs-has-tool-bar-flag |
| 1859 | (featurep 'xpm) | 1862 | "*If non-nil, use tool bar. |
| 1860 | (device-on-window-system-p)) | 1863 | |
| 1861 | t | 1864 | This option controls whether to show the MH-E icons at all. By default, this |
| 1862 | nil) | 1865 | option is turned on if the window system supports tool bars. If your system |
| 1863 | "*If non-nil, use toolbar. | 1866 | doesn't support tool bars, then you won't be able to turn on this option." |
| 1864 | |||
| 1865 | This will default to t if you are in an environment that supports | ||
| 1866 | toolbars and xpm." | ||
| 1867 | :type 'boolean | 1867 | :type 'boolean |
| 1868 | :group 'mh-toolbar) | 1868 | :group 'mh-tool-bar |
| 1869 | 1869 | :set (lambda (symbol value) | |
| 1870 | (defcustom mh-xemacs-toolbar-position (if mh-xemacs-use-toolbar-flag | 1870 | (if (and (eq value t) |
| 1871 | 'default | 1871 | (not mh-xemacs-has-tool-bar-flag)) |
| 1872 | nil) | 1872 | (error "Tool bar not supported")) |
| 1873 | "*Where to put the toolbar. | 1873 | (set-default symbol value))) |
| 1874 | 1874 | ||
| 1875 | Valid non-nil values are \"default\", \"top\", \"bottom\", \"left\", | 1875 | (defcustom mh-xemacs-tool-bar-position nil |
| 1876 | \"right\". These match the four edges of the frame, with \"default\" | 1876 | "*Tool bar location. |
| 1877 | meaning \"use the same position as the default-toolbar\". | 1877 | |
| 1878 | 1878 | This option controls the placement of the tool bar along the four edges of the | |
| 1879 | A nil value means do not use a toolbar. | 1879 | frame. You can choose from one of \"Same As Default Tool Bar\", \"Top\", |
| 1880 | 1880 | \"Bottom\", \"Left\", or \"Right\". If this variable is set to anything other | |
| 1881 | If this variable is set to anything other than \"default\" and the | 1881 | than \"Same As Default Tool Bar\" and the default tool bar is in a different |
| 1882 | default-toolbar has a different positional setting from the value of | 1882 | location, then two tool bars will be displayed: the MH-E tool bar and the |
| 1883 | this variable, then two toolbars will be displayed. The MH-E toolbar | 1883 | default tool bar." |
| 1884 | and the default-toolbar." | 1884 | :type '(radio (const :tag "Same As Default Tool Bar" :value nil) |
| 1885 | :type '(radio (const :tag "Same position as the \"default-toolbar\"" | 1885 | (const :tag "Top" :value top) |
| 1886 | :value default) | 1886 | (const :tag "Bottom" :value bottom) |
| 1887 | (const :tag "Along the top edge of the frame" | 1887 | (const :tag "Left" :value left) |
| 1888 | :value top) | 1888 | (const :tag "Right" :value right)) |
| 1889 | (const :tag "Along the bottom edge of the frame" | 1889 | :group 'mh-tool-bar)) |
| 1890 | :value bottom) | ||
| 1891 | (const :tag "Along the left edge of the frame" | ||
| 1892 | :value left) | ||
| 1893 | (const :tag "Along the right edge of the frame" | ||
| 1894 | :value right) | ||
| 1895 | (const :tag "Don't use a toolbar" nil)) | ||
| 1896 | :group 'mh-toolbar)) | ||
| 1897 | 1890 | ||
| 1898 | (defun mh-buffer-exists-p (mode) | 1891 | (defun mh-buffer-exists-p (mode) |
| 1899 | "Test whether a buffer with major mode MODE is present." | 1892 | "Test whether a buffer with major mode MODE is present." |
| @@ -1996,7 +1989,7 @@ where, | |||
| 1996 | (t 'folder-vectors))) | 1989 | (t 'folder-vectors))) |
| 1997 | (list (cond ((eq type :letter) 'mh-tool-bar-letter-buttons) | 1990 | (list (cond ((eq type :letter) 'mh-tool-bar-letter-buttons) |
| 1998 | (t 'mh-tool-bar-folder-buttons))) | 1991 | (t 'mh-tool-bar-folder-buttons))) |
| 1999 | (key (intern (concat "mh-" type1 "toolbar-" name-str))) | 1992 | (key (intern (concat "mh-" type1 "tool-bar-" name-str))) |
| 2000 | (setter (intern (concat type1 "-button-setter"))) | 1993 | (setter (intern (concat type1 "-button-setter"))) |
| 2001 | (mbuttons (cond ((eq type :letter) 'letter-buttons) | 1994 | (mbuttons (cond ((eq type :letter) 'letter-buttons) |
| 2002 | ((eq type :show) 'show-buttons) | 1995 | ((eq type :show) 'show-buttons) |
| @@ -2063,89 +2056,87 @@ where, | |||
| 2063 | tool-bar-map)))) | 2056 | tool-bar-map)))) |
| 2064 | ;; Custom setter functions | 2057 | ;; Custom setter functions |
| 2065 | (defun mh-tool-bar-folder-buttons-set (symbol value) | 2058 | (defun mh-tool-bar-folder-buttons-set (symbol value) |
| 2066 | "Construct toolbar for `mh-folder-mode' and `mh-show-mode'." | 2059 | "Construct tool bar for `mh-folder-mode' and `mh-show-mode'." |
| 2067 | (set-default symbol value) | 2060 | (set-default symbol value) |
| 2068 | (mh-tool-bar-folder-buttons-init)) | 2061 | (mh-tool-bar-folder-buttons-init)) |
| 2069 | (defun mh-tool-bar-letter-buttons-set (symbol value) | 2062 | (defun mh-tool-bar-letter-buttons-set (symbol value) |
| 2070 | "Construct toolbar for `mh-letter-mode'." | 2063 | "Construct tool bar for `mh-letter-mode'." |
| 2071 | (set-default symbol value) | 2064 | (set-default symbol value) |
| 2072 | (mh-tool-bar-letter-buttons-init))) | 2065 | (mh-tool-bar-letter-buttons-init))) |
| 2073 | ;; XEmacs specific code | 2066 | ;; XEmacs specific code |
| 2074 | (mh-do-in-xemacs | 2067 | (mh-do-in-xemacs |
| 2075 | (defvar mh-toolbar-folder-vector-map | 2068 | (defvar mh-tool-bar-folder-vector-map |
| 2076 | ',(loop for button in folder-buttons | 2069 | ',(loop for button in folder-buttons |
| 2077 | for vector in folder-vectors | 2070 | for vector in folder-vectors |
| 2078 | collect (cons button vector))) | 2071 | collect (cons button vector))) |
| 2079 | (defvar mh-toolbar-show-vector-map | 2072 | (defvar mh-tool-bar-show-vector-map |
| 2080 | ',(loop for button in show-buttons | 2073 | ',(loop for button in show-buttons |
| 2081 | for vector in show-vectors | 2074 | for vector in show-vectors |
| 2082 | collect (cons button vector))) | 2075 | collect (cons button vector))) |
| 2083 | (defvar mh-toolbar-letter-vector-map | 2076 | (defvar mh-tool-bar-letter-vector-map |
| 2084 | ',(loop for button in letter-buttons | 2077 | ',(loop for button in letter-buttons |
| 2085 | for vector in letter-vectors | 2078 | for vector in letter-vectors |
| 2086 | collect (cons button vector))) | 2079 | collect (cons button vector))) |
| 2087 | (defvar mh-toolbar-folder-buttons nil) | 2080 | (defvar mh-tool-bar-folder-buttons nil) |
| 2088 | (defvar mh-toolbar-show-buttons nil) | 2081 | (defvar mh-tool-bar-show-buttons nil) |
| 2089 | (defvar mh-toolbar-letter-buttons nil) | 2082 | (defvar mh-tool-bar-letter-buttons nil) |
| 2090 | ;; Custom setter functions | 2083 | ;; Custom setter functions |
| 2091 | (defun mh-tool-bar-letter-buttons-set (symbol value) | 2084 | (defun mh-tool-bar-letter-buttons-set (symbol value) |
| 2092 | (set-default symbol value) | 2085 | (set-default symbol value) |
| 2093 | (when mh-xemacs-has-toolbar-flag | 2086 | (when mh-xemacs-has-tool-bar-flag |
| 2094 | (setq mh-toolbar-letter-buttons | 2087 | (setq mh-tool-bar-letter-buttons |
| 2095 | (loop for b in value | 2088 | (loop for b in value |
| 2096 | collect (cdr (assoc b mh-toolbar-letter-vector-map)))))) | 2089 | collect (cdr (assoc b mh-tool-bar-letter-vector-map)))))) |
| 2097 | (defun mh-tool-bar-folder-buttons-set (symbol value) | 2090 | (defun mh-tool-bar-folder-buttons-set (symbol value) |
| 2098 | (set-default symbol value) | 2091 | (set-default symbol value) |
| 2099 | (when mh-xemacs-has-toolbar-flag | 2092 | (when mh-xemacs-has-tool-bar-flag |
| 2100 | (setq mh-toolbar-folder-buttons | 2093 | (setq mh-tool-bar-folder-buttons |
| 2101 | (loop for b in value | 2094 | (loop for b in value |
| 2102 | collect (cdr (assoc b mh-toolbar-folder-vector-map)))) | 2095 | collect (cdr (assoc b mh-tool-bar-folder-vector-map)))) |
| 2103 | (setq mh-toolbar-show-buttons | 2096 | (setq mh-tool-bar-show-buttons |
| 2104 | (loop for b in value | 2097 | (loop for b in value |
| 2105 | collect (cdr (assoc b mh-toolbar-show-vector-map)))))) | 2098 | collect (cdr (assoc b mh-tool-bar-show-vector-map)))))) |
| 2106 | ;; Initialize toolbar | 2099 | (defun mh-tool-bar-init (mode) |
| 2107 | (defun mh-toolbar-init (mode) | 2100 | "Install tool bar in MODE." |
| 2108 | "Install toolbar in MODE." | 2101 | (let ((tool-bar (cond ((eq mode :folder) mh-tool-bar-folder-buttons) |
| 2109 | (let ((toolbar (cond ((eq mode :folder) mh-toolbar-folder-buttons) | 2102 | ((eq mode :letter) mh-tool-bar-letter-buttons) |
| 2110 | ((eq mode :letter) mh-toolbar-letter-buttons) | 2103 | ((eq mode :show) mh-tool-bar-show-buttons))) |
| 2111 | ((eq mode :show) mh-toolbar-show-buttons))) | ||
| 2112 | (height 37) | 2104 | (height 37) |
| 2113 | (width 40) | 2105 | (width 40) |
| 2114 | (buffer (current-buffer))) | 2106 | (buffer (current-buffer))) |
| 2115 | (when (and mh-xemacs-toolbar-position mh-xemacs-use-toolbar-flag | 2107 | (when mh-xemacs-use-tool-bar-flag |
| 2116 | mh-xemacs-has-toolbar-flag) | ||
| 2117 | (cond | 2108 | (cond |
| 2118 | ((eq mh-xemacs-toolbar-position 'top) | 2109 | ((eq mh-xemacs-tool-bar-position 'top) |
| 2119 | (set-specifier top-toolbar toolbar buffer) | 2110 | (set-specifier top-toolbar tool-bar buffer) |
| 2120 | (set-specifier top-toolbar-visible-p t) | 2111 | (set-specifier top-toolbar-visible-p t) |
| 2121 | (set-specifier top-toolbar-height height)) | 2112 | (set-specifier top-toolbar-height height)) |
| 2122 | ((eq mh-xemacs-toolbar-position 'bottom) | 2113 | ((eq mh-xemacs-tool-bar-position 'bottom) |
| 2123 | (set-specifier bottom-toolbar toolbar buffer) | 2114 | (set-specifier bottom-toolbar tool-bar buffer) |
| 2124 | (set-specifier bottom-toolbar-visible-p t) | 2115 | (set-specifier bottom-toolbar-visible-p t) |
| 2125 | (set-specifier bottom-toolbar-height height)) | 2116 | (set-specifier bottom-toolbar-height height)) |
| 2126 | ((eq mh-xemacs-toolbar-position 'left) | 2117 | ((eq mh-xemacs-tool-bar-position 'left) |
| 2127 | (set-specifier left-toolbar toolbar buffer) | 2118 | (set-specifier left-toolbar tool-bar buffer) |
| 2128 | (set-specifier left-toolbar-visible-p t) | 2119 | (set-specifier left-toolbar-visible-p t) |
| 2129 | (set-specifier left-toolbar-width width)) | 2120 | (set-specifier left-toolbar-width width)) |
| 2130 | ((eq mh-xemacs-toolbar-position 'right) | 2121 | ((eq mh-xemacs-tool-bar-position 'right) |
| 2131 | (set-specifier right-toolbar toolbar buffer) | 2122 | (set-specifier right-toolbar tool-bar buffer) |
| 2132 | (set-specifier right-toolbar-visible-p t) | 2123 | (set-specifier right-toolbar-visible-p t) |
| 2133 | (set-specifier right-toolbar-width width)) | 2124 | (set-specifier right-toolbar-width width)) |
| 2134 | (t (set-specifier default-toolbar toolbar buffer))))))) | 2125 | (t (set-specifier default-toolbar tool-bar buffer))))))) |
| 2135 | ;; Declare customizable toolbars | 2126 | ;; Declare customizable tool bars |
| 2136 | (custom-declare-variable | 2127 | (custom-declare-variable |
| 2137 | 'mh-tool-bar-folder-buttons | 2128 | 'mh-tool-bar-folder-buttons |
| 2138 | '(list ,@(mapcar (lambda (x) `(quote ,x)) folder-defaults)) | 2129 | '(list ,@(mapcar (lambda (x) `(quote ,x)) folder-defaults)) |
| 2139 | "Choose buttons to include in MH-E folder/show toolbar." | 2130 | "List of buttons to include in MH-Folder tool bar." |
| 2140 | :group 'mh-toolbar :set 'mh-tool-bar-folder-buttons-set | 2131 | :group 'mh-tool-bar :set 'mh-tool-bar-folder-buttons-set |
| 2141 | :type '(set ,@(loop for x in folder-buttons | 2132 | :type '(set ,@(loop for x in folder-buttons |
| 2142 | for y in folder-docs | 2133 | for y in folder-docs |
| 2143 | collect `(const :tag ,y ,x)))) | 2134 | collect `(const :tag ,y ,x)))) |
| 2144 | (custom-declare-variable | 2135 | (custom-declare-variable |
| 2145 | 'mh-tool-bar-letter-buttons | 2136 | 'mh-tool-bar-letter-buttons |
| 2146 | '(list ,@(mapcar (lambda (x) `(quote ,x)) letter-defaults)) | 2137 | '(list ,@(mapcar (lambda (x) `(quote ,x)) letter-defaults)) |
| 2147 | "Choose buttons to include in MH-E letter toolbar." | 2138 | "List of buttons to include in MH-Letter tool bar." |
| 2148 | :group 'mh-toolbar :set 'mh-tool-bar-letter-buttons-set | 2139 | :group 'mh-tool-bar :set 'mh-tool-bar-letter-buttons-set |
| 2149 | :type '(set ,@(loop for x in letter-buttons | 2140 | :type '(set ,@(loop for x in letter-buttons |
| 2150 | for y in letter-docs | 2141 | for y in letter-docs |
| 2151 | collect `(const :tag ,y ,x))))))) | 2142 | collect `(const :tag ,y ,x))))))) |
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index b87fa4c2e3d..b1e9e14295d 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -1742,7 +1742,7 @@ messages in that region. | |||
| 1742 | (easy-menu-add mh-folder-message-menu) | 1742 | (easy-menu-add mh-folder-message-menu) |
| 1743 | (easy-menu-add mh-folder-folder-menu) | 1743 | (easy-menu-add mh-folder-folder-menu) |
| 1744 | (set (make-local-variable 'tool-bar-map) mh-folder-tool-bar-map) | 1744 | (set (make-local-variable 'tool-bar-map) mh-folder-tool-bar-map) |
| 1745 | (mh-funcall-if-exists mh-toolbar-init :folder) | 1745 | (mh-funcall-if-exists mh-tool-bar-init :folder) |
| 1746 | (if (and mh-xemacs-flag | 1746 | (if (and mh-xemacs-flag |
| 1747 | font-lock-auto-fontify) | 1747 | font-lock-auto-fontify) |
| 1748 | (turn-on-font-lock))) ; Force font-lock in XEmacs. | 1748 | (turn-on-font-lock))) ; Force font-lock in XEmacs. |
diff --git a/lisp/mh-e/mh-utils.el b/lisp/mh-e/mh-utils.el index cc48b1248d4..e6a207a2e0b 100644 --- a/lisp/mh-e/mh-utils.el +++ b/lisp/mh-e/mh-utils.el | |||
| @@ -1120,7 +1120,7 @@ See also `mh-folder-mode'. | |||
| 1120 | font-lock-auto-fontify) | 1120 | font-lock-auto-fontify) |
| 1121 | (turn-on-font-lock)) | 1121 | (turn-on-font-lock)) |
| 1122 | (set (make-local-variable 'tool-bar-map) mh-show-tool-bar-map) | 1122 | (set (make-local-variable 'tool-bar-map) mh-show-tool-bar-map) |
| 1123 | (mh-funcall-if-exists mh-toolbar-init :show) | 1123 | (mh-funcall-if-exists mh-tool-bar-init :show) |
| 1124 | (when mh-decode-mime-flag | 1124 | (when mh-decode-mime-flag |
| 1125 | (mh-make-local-hook 'kill-buffer-hook) | 1125 | (mh-make-local-hook 'kill-buffer-hook) |
| 1126 | (add-hook 'kill-buffer-hook 'mh-mime-cleanup nil t)) | 1126 | (add-hook 'kill-buffer-hook 'mh-mime-cleanup nil t)) |