0
|
1 ;;; Toolbar related functions and commands
|
98
|
2 ;;; Copyright (C) 1995-1997 Kyle E. Jones
|
0
|
3 ;;;
|
|
4 ;;; This program is free software; you can redistribute it and/or modify
|
|
5 ;;; it under the terms of the GNU General Public License as published by
|
|
6 ;;; the Free Software Foundation; either version 1, or (at your option)
|
|
7 ;;; any later version.
|
|
8 ;;;
|
|
9 ;;; This program is distributed in the hope that it will be useful,
|
|
10 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 ;;; GNU General Public License for more details.
|
|
13 ;;;
|
|
14 ;;; You should have received a copy of the GNU General Public License
|
|
15 ;;; along with this program; if not, write to the Free Software
|
|
16 ;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
17
|
|
18 (provide 'vm-toolbar)
|
|
19
|
|
20 (defvar vm-toolbar-specifier nil)
|
|
21
|
|
22 (defvar vm-toolbar-next-button
|
|
23 [vm-toolbar-next-icon
|
|
24 vm-toolbar-next-command
|
|
25 (vm-toolbar-any-messages-p)
|
|
26 "Go to the next message.\n
|
|
27 The command `vm-toolbar-next-command' is run, which is normally
|
70
|
28 bound to `vm-next-message'.
|
0
|
29 You can make this button run some other command by using a Lisp
|
|
30 s-expression like this one in your .vm file:
|
|
31 (fset 'vm-toolbar-next-command 'some-other-command)"])
|
|
32 (defvar vm-toolbar-next-icon nil)
|
|
33 (or (fboundp 'vm-toolbar-next-command)
|
|
34 (fset 'vm-toolbar-next-command 'vm-next-message))
|
|
35
|
|
36 (defvar vm-toolbar-previous-button
|
|
37 [vm-toolbar-previous-icon
|
|
38 vm-toolbar-previous-command
|
|
39 (vm-toolbar-any-messages-p)
|
|
40 "Go to the previous message.\n
|
|
41 The command `vm-toolbar-previous-command' is run, which is normally
|
70
|
42 bound to `vm-previous-message'.
|
0
|
43 You can make this button run some other command by using a Lisp
|
|
44 s-expression like this one in your .vm file:
|
|
45 (fset 'vm-toolbar-previous-command 'some-other-command)"])
|
|
46 (defvar vm-toolbar-previous-icon nil)
|
|
47 (or (fboundp 'vm-toolbar-previous-command)
|
|
48 (fset 'vm-toolbar-previous-command 'vm-previous-message))
|
|
49
|
|
50 (defvar vm-toolbar-autofile-button
|
|
51 [vm-toolbar-autofile-icon
|
|
52 vm-toolbar-autofile-message
|
|
53 (vm-toolbar-can-autofile-p)
|
|
54 "Save the current message to a folder selected using vm-auto-folder-alist."])
|
|
55 (defvar vm-toolbar-autofile-icon nil)
|
|
56
|
|
57 (defvar vm-toolbar-file-button
|
|
58 [vm-toolbar-file-icon vm-toolbar-file-command (vm-toolbar-any-messages-p)
|
|
59 "Save the current message to a folder.\n
|
|
60 The command `vm-toolbar-file-command' is run, which is normally
|
70
|
61 bound to `vm-save-message'.
|
0
|
62 You can make this button run some other command by using a Lisp
|
|
63 s-expression like this one in your .vm file:
|
|
64 (fset 'vm-toolbar-file-command 'some-other-command)"])
|
|
65 (defvar vm-toolbar-file-icon nil)
|
|
66 (or (fboundp 'vm-toolbar-file-command)
|
|
67 (fset 'vm-toolbar-file-command 'vm-save-message))
|
|
68
|
|
69 (defvar vm-toolbar-print-button
|
|
70 [vm-toolbar-print-icon
|
|
71 vm-toolbar-print-command
|
|
72 (vm-toolbar-any-messages-p)
|
|
73 "Print the current message.\n
|
|
74 The command `vm-toolbar-print-command' is run, which is normally
|
70
|
75 bound to `vm-print-message'.
|
0
|
76 You can make this button run some other command by using a Lisp
|
|
77 s-expression like this one in your .vm file:
|
|
78 (fset 'vm-toolbar-print-command 'some-other-command)"])
|
|
79 (defvar vm-toolbar-print-icon nil)
|
|
80 (or (fboundp 'vm-toolbar-print-command)
|
|
81 (fset 'vm-toolbar-print-command 'vm-print-message))
|
|
82
|
|
83 (defvar vm-toolbar-visit-button
|
|
84 [vm-toolbar-visit-icon vm-toolbar-visit-command t
|
|
85 "Visit a different folder.\n
|
|
86 The command `vm-toolbar-visit-command' is run, which is normally
|
70
|
87 bound to `vm-visit-folder'.
|
0
|
88 You can make this button run some other command by using a Lisp
|
|
89 s-expression like this one in your .vm file:
|
|
90 (fset 'vm-toolbar-visit-command 'some-other-command)"])
|
|
91 (defvar vm-toolbar-visit-icon nil)
|
|
92 (or (fboundp 'vm-toolbar-visit-command)
|
|
93 (fset 'vm-toolbar-visit-command 'vm-visit-folder))
|
|
94
|
|
95 (defvar vm-toolbar-reply-button
|
|
96 [vm-toolbar-reply-icon
|
|
97 vm-toolbar-reply-command
|
|
98 (vm-toolbar-any-messages-p)
|
|
99 "Reply to the current message.\n
|
|
100 The command `vm-toolbar-reply-command' is run, which is normally
|
70
|
101 bound to `vm-followup-include-text'.
|
0
|
102 You can make this button run some other command by using a Lisp
|
|
103 s-expression like this one in your .vm file:
|
|
104 (fset 'vm-toolbar-reply-command 'some-other-command)"])
|
|
105 (defvar vm-toolbar-reply-icon nil)
|
|
106 (or (fboundp 'vm-toolbar-reply-command)
|
|
107 (fset 'vm-toolbar-reply-command 'vm-followup-include-text))
|
|
108
|
|
109 (defvar vm-toolbar-compose-button
|
|
110 [vm-toolbar-compose-icon vm-toolbar-compose-command t
|
|
111 "Compose a new message.\n
|
|
112 The command `vm-toolbar-compose-command' is run, which is normally
|
70
|
113 bound to `vm-mail'.
|
0
|
114 You can make this button run some other command by using a Lisp
|
|
115 s-expression like this one in your .vm file:
|
|
116 (fset 'vm-toolbar-compose-command 'some-other-command)"])
|
|
117 (defvar vm-toolbar-compose-icon nil)
|
|
118 (or (fboundp 'vm-toolbar-compose-command)
|
|
119 (fset 'vm-toolbar-compose-command 'vm-mail))
|
|
120
|
98
|
121 (defvar vm-toolbar-decode-mime-button
|
|
122 [vm-toolbar-decode-mime-icon vm-toolbar-decode-mime-command
|
|
123 (vm-toolbar-can-decode-mime-p)
|
|
124 "Decode the MIME objects in the current message.\n
|
|
125 The objects might be displayed immediately, or buttons might be
|
|
126 displayed that you need to click on to view the object. See the
|
|
127 documentation for the variables vm-mime-internal-content-types
|
|
128 and vm-mime-external-content-types-alist to see how to control
|
|
129 whether you see buttons or objects.\n
|
|
130 The command `vm-toolbar-decode-mime-command' is run, which is normally
|
|
131 bound to `vm-decode-mime-messages'.
|
|
132 You can make this button run some other command by using a Lisp
|
|
133 s-expression like this one in your .vm file:
|
|
134 (fset 'vm-toolbar-decode-mime-command 'some-other-command)"])
|
|
135 (defvar vm-toolbar-decode-mime-icon nil)
|
|
136 (or (fboundp 'vm-toolbar-decode-mime-command)
|
|
137 (fset 'vm-toolbar-decode-mime-command 'vm-decode-mime-message))
|
|
138
|
0
|
139 (defvar vm-toolbar-delete-icon nil)
|
|
140
|
|
141 (defvar vm-toolbar-undelete-icon nil)
|
|
142
|
|
143 (defvar vm-toolbar-delete/undelete-button
|
|
144 [vm-toolbar-delete/undelete-icon
|
|
145 vm-toolbar-delete/undelete-message
|
|
146 (vm-toolbar-any-messages-p)
|
|
147 "Delete the current message, or undelete it if it is already deleted."])
|
|
148 (defvar vm-toolbar-delete/undelete-icon nil)
|
|
149 (make-variable-buffer-local 'vm-toolbar-delete/undelete-icon)
|
|
150
|
|
151 (defvar vm-toolbar-help-icon nil)
|
|
152
|
|
153 (defvar vm-toolbar-recover-icon nil)
|
|
154
|
|
155 (defvar vm-toolbar-helper-icon nil)
|
|
156 (make-variable-buffer-local 'vm-toolbar-helper-icon)
|
|
157
|
|
158 (defvar vm-toolbar-help-button
|
98
|
159 [vm-toolbar-helper-icon vm-toolbar-helper-command
|
|
160 (vm-toolbar-can-help-p)
|
0
|
161 "Don't Panic.\n
|
|
162 VM uses this button to offer help if you're in trouble.
|
|
163 Under normal circumstances, this button runs `vm-help'.\n
|
|
164 If the current folder looks out-of-date relative to its auto-save
|
|
165 file then this button will run `recover-file'."])
|
|
166
|
|
167 (defvar vm-toolbar-helper-command nil)
|
|
168 (make-variable-buffer-local 'vm-toolbar-helper-command)
|
|
169
|
|
170 (defun vm-toolbar-helper-command ()
|
|
171 (interactive)
|
|
172 (setq this-command vm-toolbar-helper-command)
|
|
173 (call-interactively vm-toolbar-helper-command))
|
|
174
|
|
175 (defvar vm-toolbar-quit-button
|
98
|
176 [vm-toolbar-quit-icon vm-toolbar-quit-command
|
|
177 (vm-toolbar-can-quit-p)
|
76
|
178 "Quit visiting this folder.\n
|
0
|
179 The command `vm-toolbar-quit-command' is run, which is normally
|
70
|
180 bound to `vm-quit'.
|
0
|
181 You can make this button run some other command by using a Lisp
|
|
182 s-expression like this one in your .vm file:
|
|
183 (fset 'vm-toolbar-quit-command 'some-other-command)"])
|
|
184 (defvar vm-toolbar-quit-icon nil)
|
|
185 (or (fboundp 'vm-toolbar-quit-command)
|
|
186 (fset 'vm-toolbar-quit-command 'vm-quit))
|
|
187
|
|
188 (defun vm-toolbar-any-messages-p ()
|
70
|
189 (save-excursion
|
|
190 (vm-check-for-killed-folder)
|
|
191 (vm-select-folder-buffer)
|
|
192 vm-message-list))
|
0
|
193
|
|
194 (defun vm-toolbar-delete/undelete-message (&optional prefix-arg)
|
|
195 (interactive "P")
|
|
196 (vm-follow-summary-cursor)
|
|
197 (vm-select-folder-buffer)
|
|
198 (vm-check-for-killed-summary)
|
|
199 (vm-error-if-folder-read-only)
|
|
200 (vm-error-if-folder-empty)
|
|
201 (let ((current-prefix-arg prefix-arg))
|
|
202 (if (vm-deleted-flag (car vm-message-pointer))
|
|
203 (call-interactively 'vm-undelete-message)
|
|
204 (call-interactively 'vm-delete-message))))
|
|
205
|
|
206 (defun vm-toolbar-can-autofile-p ()
|
|
207 (interactive)
|
70
|
208 (save-excursion
|
|
209 (vm-check-for-killed-folder)
|
|
210 (vm-select-folder-buffer)
|
|
211 (and vm-message-pointer
|
|
212 (vm-auto-select-folder vm-message-pointer vm-auto-folder-alist))))
|
0
|
213
|
|
214 (defun vm-toolbar-autofile-message ()
|
|
215 (interactive)
|
|
216 (vm-follow-summary-cursor)
|
|
217 (vm-select-folder-buffer)
|
|
218 (vm-check-for-killed-summary)
|
|
219 (vm-error-if-folder-read-only)
|
|
220 (vm-error-if-folder-empty)
|
|
221 (let ((file (vm-auto-select-folder vm-message-pointer vm-auto-folder-alist)))
|
|
222 (if file
|
|
223 (progn
|
|
224 (vm-save-message file 1)
|
|
225 (message "Message saved to %s" file))
|
|
226 (error "No match for message in vm-auto-folder-alist."))))
|
|
227
|
|
228 (defun vm-toolbar-can-recover-p ()
|
70
|
229 (save-excursion
|
|
230 (vm-check-for-killed-folder)
|
|
231 (vm-select-folder-buffer)
|
|
232 (and vm-folder-read-only
|
|
233 buffer-file-name
|
|
234 buffer-auto-save-file-name
|
|
235 (null (buffer-modified-p))
|
|
236 (file-newer-than-file-p
|
|
237 buffer-auto-save-file-name
|
|
238 buffer-file-name))))
|
20
|
239
|
98
|
240 (defun vm-toolbar-can-decode-mime-p ()
|
|
241 (save-excursion
|
|
242 (vm-check-for-killed-folder)
|
|
243 (vm-select-folder-buffer)
|
|
244 (and
|
|
245 vm-display-using-mime
|
|
246 vm-message-pointer
|
|
247 vm-presentation-buffer
|
|
248 (not vm-mime-decoded)
|
|
249 (not (vm-mime-plain-message-p (car vm-message-pointer))))))
|
|
250
|
|
251 (defun vm-toolbar-can-quit-p ()
|
|
252 (save-excursion
|
|
253 (vm-check-for-killed-folder)
|
|
254 (vm-select-folder-buffer)
|
|
255 (memq major-mode '(vm-mode vm-virtual-mode))))
|
|
256
|
|
257 (fset 'vm-toolbar-can-help-p 'vm-toolbar-can-quit-p)
|
|
258
|
0
|
259 (defun vm-toolbar-update-toolbar ()
|
|
260 (if (and vm-message-pointer (vm-deleted-flag (car vm-message-pointer)))
|
|
261 (setq vm-toolbar-delete/undelete-icon vm-toolbar-undelete-icon)
|
|
262 (setq vm-toolbar-delete/undelete-icon vm-toolbar-delete-icon))
|
|
263 (cond ((vm-toolbar-can-recover-p)
|
|
264 (setq vm-toolbar-helper-command 'recover-file
|
|
265 vm-toolbar-helper-icon vm-toolbar-recover-icon))
|
98
|
266 ((vm-toolbar-can-decode-mime-p)
|
|
267 (setq vm-toolbar-helper-command 'vm-decode-mime-message
|
|
268 vm-toolbar-helper-icon vm-toolbar-decode-mime-icon))
|
0
|
269 (t
|
|
270 (setq vm-toolbar-helper-command 'vm-help
|
|
271 vm-toolbar-helper-icon vm-toolbar-help-icon)))
|
|
272 (if vm-summary-buffer
|
|
273 (vm-copy-local-variables vm-summary-buffer
|
|
274 'vm-toolbar-delete/undelete-icon
|
|
275 'vm-toolbar-helper-command
|
|
276 'vm-toolbar-helper-icon))
|
98
|
277 (if vm-presentation-buffer
|
|
278 (vm-copy-local-variables vm-presentation-buffer
|
|
279 'vm-toolbar-delete/undelete-icon
|
|
280 'vm-toolbar-helper-command
|
|
281 'vm-toolbar-helper-icon))
|
0
|
282 (and vm-toolbar-specifier
|
|
283 (progn
|
76
|
284 (set-specifier vm-toolbar-specifier (cons (current-buffer) nil))
|
|
285 (set-specifier vm-toolbar-specifier (cons (current-buffer)
|
|
286 vm-toolbar)))))
|
0
|
287
|
|
288 (defun vm-toolbar-install-toolbar ()
|
|
289 (vm-toolbar-initialize)
|
76
|
290 (let ((height (+ 4 (glyph-height (car vm-toolbar-help-icon))))
|
0
|
291 (width (+ 4 (glyph-width (car vm-toolbar-help-icon))))
|
98
|
292 (myframe (vm-created-this-frame-p))
|
76
|
293 toolbar )
|
98
|
294 ;; glyph-width and glyph-height return 0 at startup sometimes
|
|
295 ;; use reasonable values if they fail.
|
|
296 (if (= width 4)
|
|
297 (setq width 68))
|
|
298 (if (= height 4)
|
|
299 (setq height 46))
|
76
|
300 ;; honor user setting of vm-toolbar if they are daring enough
|
|
301 ;; to set it.
|
|
302 (if vm-toolbar
|
|
303 (setq toolbar vm-toolbar)
|
|
304 (setq toolbar (vm-toolbar-make-toolbar-spec)
|
|
305 vm-toolbar toolbar))
|
0
|
306 (cond ((eq vm-toolbar-orientation 'right)
|
|
307 (setq vm-toolbar-specifier right-toolbar)
|
98
|
308 (if myframe
|
|
309 (set-specifier right-toolbar (cons (selected-frame) toolbar)))
|
76
|
310 (set-specifier right-toolbar (cons (current-buffer) toolbar))
|
|
311 (set-specifier right-toolbar-width
|
|
312 (cons (selected-frame) width)))
|
0
|
313 ((eq vm-toolbar-orientation 'left)
|
|
314 (setq vm-toolbar-specifier left-toolbar)
|
98
|
315 (if myframe
|
|
316 (set-specifier left-toolbar (cons (selected-frame) toolbar)))
|
76
|
317 (set-specifier left-toolbar (cons (current-buffer) toolbar))
|
|
318 (set-specifier left-toolbar-width
|
|
319 (cons (selected-frame) width)))
|
0
|
320 ((eq vm-toolbar-orientation 'bottom)
|
|
321 (setq vm-toolbar-specifier bottom-toolbar)
|
98
|
322 (if myframe
|
|
323 (set-specifier bottom-toolbar (cons (selected-frame) toolbar)))
|
76
|
324 (set-specifier bottom-toolbar (cons (current-buffer) toolbar))
|
|
325 (set-specifier bottom-toolbar-height
|
|
326 (cons (selected-frame) height)))
|
0
|
327 (t
|
|
328 (setq vm-toolbar-specifier top-toolbar)
|
98
|
329 (if myframe
|
|
330 (set-specifier top-toolbar (cons (selected-frame) toolbar)))
|
76
|
331 (set-specifier top-toolbar (cons (current-buffer) toolbar))
|
|
332 (set-specifier top-toolbar-height
|
|
333 (cons (selected-frame) height))))))
|
0
|
334
|
|
335 (defun vm-toolbar-make-toolbar-spec ()
|
|
336 (let ((button-alist '(
|
|
337 (autofile . vm-toolbar-autofile-button)
|
|
338 (compose . vm-toolbar-compose-button)
|
|
339 (delete/undelete . vm-toolbar-delete/undelete-button)
|
|
340 (file . vm-toolbar-file-button)
|
|
341 (help . vm-toolbar-help-button)
|
98
|
342 (mime . vm-toolbar-decode-mime-button)
|
0
|
343 (next . vm-toolbar-next-button)
|
|
344 (previous . vm-toolbar-previous-button)
|
|
345 (print . vm-toolbar-print-button)
|
|
346 (quit . vm-toolbar-quit-button)
|
|
347 (reply . vm-toolbar-reply-button)
|
|
348 (visit . vm-toolbar-visit-button)
|
|
349 ))
|
|
350 (button-list vm-use-toolbar)
|
|
351 cons
|
|
352 (toolbar nil))
|
|
353 (while button-list
|
|
354 (if (null (car button-list))
|
|
355 (setq toolbar (cons nil toolbar))
|
|
356 (setq cons (assq (car button-list) button-alist))
|
|
357 (if cons
|
|
358 (setq toolbar (cons (symbol-value (cdr cons)) toolbar))))
|
|
359 (setq button-list (cdr button-list)))
|
|
360 (nreverse toolbar) ))
|
|
361
|
|
362 (defun vm-toolbar-initialize ()
|
|
363 ;; drag these in now instead of waiting for them to be
|
|
364 ;; autoloaded. the "loading..." messages could come at a bad
|
|
365 ;; moment and wipe an important echo area message, like "Auto
|
|
366 ;; save file is newer..."
|
|
367 (require 'vm-save)
|
|
368 (require 'vm-summary)
|
|
369 (cond
|
|
370 ((null vm-toolbar-help-icon)
|
|
371 (let ((tuples
|
|
372 (if (featurep 'xpm)
|
98
|
373 (list
|
|
374 (if (>= (device-bitplanes) 16)
|
|
375 '(vm-toolbar-decode-mime-icon "mime-colorful-up.xpm"
|
|
376 "mime-colorful-dn.xpm"
|
|
377 "mime-colorful-xx.xpm")
|
|
378 '(vm-toolbar-decode-mime-icon "mime-simple-up.xpm"
|
|
379 "mime-simple-dn.xpm"
|
|
380 "mime-simple-xx.xpm"))
|
|
381 '(vm-toolbar-next-icon "next-up.xpm" "next-dn.xpm" "next-dn.xpm")
|
|
382 '(vm-toolbar-previous-icon "previous-up.xpm" "previous-dn.xpm"
|
0
|
383 "previous-dn.xpm")
|
98
|
384 '(vm-toolbar-delete-icon "delete-up.xpm" "delete-dn.xpm" "delete-dn.xpm")
|
|
385 '(vm-toolbar-undelete-icon "undelete-up.xpm" "undelete-dn.xpm"
|
0
|
386 "undelete-dn.xpm")
|
98
|
387 '(vm-toolbar-autofile-icon "autofile-up.xpm" "autofile-dn.xpm"
|
0
|
388 "autofile-dn.xpm")
|
98
|
389 '(vm-toolbar-file-icon "file-up.xpm" "file-dn.xpm" "file-dn.xpm")
|
|
390 '(vm-toolbar-reply-icon "reply-up.xpm" "reply-dn.xpm" "reply-dn.xpm")
|
|
391 '(vm-toolbar-compose-icon "compose-up.xpm" "compose-dn.xpm" "compose-dn.xpm")
|
|
392 '(vm-toolbar-print-icon "print-up.xpm" "print-dn.xpm" "print-dn.xpm")
|
|
393 '(vm-toolbar-visit-icon "visit-up.xpm" "visit-dn.xpm" "visit-dn.xpm")
|
|
394 '(vm-toolbar-quit-icon "quit-up.xpm" "quit-dn.xpm" "quit-dn.xpm")
|
|
395 '(vm-toolbar-help-icon "help-up.xpm" "help-dn.xpm" "help-dn.xpm")
|
|
396 '(vm-toolbar-recover-icon "recover-up.xpm" "recover-dn.xpm" "recover-dn.xpm")
|
0
|
397 )
|
|
398 '(
|
98
|
399 (vm-toolbar-decode-mime-icon "mime-up.xbm" "mime-dn.xbm" "mime-xx.xbm")
|
0
|
400 (vm-toolbar-next-icon "next-up.xbm" "next-dn.xbm" "next-xx.xbm")
|
|
401 (vm-toolbar-previous-icon "previous-up.xbm" "previous-dn.xbm"
|
|
402 "previous-xx.xbm")
|
|
403 (vm-toolbar-delete-icon "delete-up.xbm" "delete-dn.xbm" "delete-xx.xbm")
|
|
404 (vm-toolbar-undelete-icon "undelete-up.xbm" "undelete-dn.xbm"
|
|
405 "undelete-xx.xbm")
|
|
406 (vm-toolbar-autofile-icon "autofile-up.xbm" "autofile-dn.xbm"
|
|
407 "autofile-xx.xbm")
|
|
408 (vm-toolbar-file-icon "file-up.xbm" "file-dn.xbm" "file-xx.xbm")
|
|
409 (vm-toolbar-reply-icon "reply-up.xbm" "reply-dn.xbm" "reply-xx.xbm")
|
|
410 (vm-toolbar-compose-icon "compose-up.xbm" "compose-dn.xbm" "compose-xx.xbm")
|
|
411 (vm-toolbar-print-icon "print-up.xbm" "print-dn.xbm" "print-xx.xbm")
|
|
412 (vm-toolbar-visit-icon "visit-up.xbm" "visit-dn.xbm" "visit-xx.xbm")
|
|
413 (vm-toolbar-quit-icon "quit-up.xbm" "quit-dn.xbm" "quit-xx.xbm")
|
|
414 (vm-toolbar-help-icon "help-up.xbm" "help-dn.xbm" "help-xx.xpm")
|
|
415 (vm-toolbar-recover-icon "recover-up.xbm" "recover-dn.xbm" "recover-xx.xpm")
|
|
416 )))
|
|
417 tuple files var)
|
|
418 (if (not (file-directory-p vm-toolbar-pixmap-directory))
|
|
419 (error "Bad toolbar pixmap directory: %s"
|
|
420 vm-toolbar-pixmap-directory)
|
|
421 (while tuples
|
|
422 (setq tuple (car tuples)
|
|
423 var (car tuple)
|
|
424 files (cdr tuple))
|
|
425 (set var (mapcar
|
|
426 (function
|
|
427 (lambda (f)
|
|
428 (make-glyph
|
|
429 (expand-file-name f vm-toolbar-pixmap-directory))))
|
|
430 files))
|
|
431 (setq tuples (cdr tuples)))))))
|
|
432 (setq vm-toolbar-delete/undelete-icon vm-toolbar-delete-icon)
|
98
|
433 (setq-default vm-toolbar-delete/undelete-icon vm-toolbar-delete-icon)
|
0
|
434 (setq vm-toolbar-helper-command 'vm-help)
|
98
|
435 (setq vm-toolbar-helper-icon vm-toolbar-help-icon)
|
|
436 (setq-default vm-toolbar-helper-icon vm-toolbar-help-icon))
|