0
|
1 ;;; Entry points for VM
|
98
|
2 ;;; Copyright (C) 1994-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-startup)
|
|
19
|
|
20 (defun vm (&optional folder read-only)
|
|
21 "Read mail under Emacs.
|
|
22 Optional first arg FOLDER specifies the folder to visit. It defaults
|
|
23 to the value of vm-primary-inbox. The folder buffer is put into VM
|
|
24 mode, a major mode for reading mail.
|
|
25
|
|
26 Prefix arg or optional second arg READ-ONLY non-nil indicates
|
|
27 that the folder should be considered read only. No attribute
|
70
|
28 changes, messages additions or deletions will be allowed in the
|
0
|
29 visited folder.
|
|
30
|
|
31 Visiting the primary inbox causes any contents of the system mailbox to
|
|
32 be moved and appended to the resulting buffer.
|
|
33
|
|
34 All the messages can be read by repeatedly pressing SPC. Use `n'ext and
|
|
35 `p'revious to move about in the folder. Messages are marked for
|
|
36 deletion with `d', and saved to another folder with `s'. Quitting VM
|
|
37 with `q' expunges deleted messages and saves the buffered folder to
|
|
38 disk.
|
|
39
|
|
40 See the documentation for vm-mode for more information."
|
|
41 (interactive (list nil current-prefix-arg))
|
|
42 (vm-session-initialization)
|
|
43 ;; set inhibit-local-variables non-nil to protect
|
|
44 ;; against letter bombs.
|
|
45 ;; set enable-local-variables to nil for newer Emacses
|
|
46 (catch 'done
|
|
47 (let ((full-startup (not (bufferp folder)))
|
|
48 folder-buffer first-time totals-blurb
|
|
49 preserve-auto-save-file)
|
|
50 (setq folder-buffer
|
|
51 (if (bufferp folder)
|
|
52 folder
|
|
53 (let ((file (or folder (expand-file-name vm-primary-inbox
|
|
54 vm-folder-directory))))
|
|
55 (if (file-directory-p file)
|
|
56 ;; MH code perhaps... ?
|
|
57 (error "%s is a directory" file)
|
|
58 (or (vm-get-file-buffer file)
|
|
59 (let ((default-directory
|
|
60 (or (and vm-folder-directory
|
|
61 (expand-file-name vm-folder-directory))
|
|
62 default-directory))
|
|
63 (inhibit-local-variables t)
|
100
|
64 (enable-local-variables nil)
|
|
65 ;; for XEmacs/Mule
|
|
66 (overriding-file-coding-system 'no-conversion))
|
70
|
67 (vm-unsaved-message "Reading %s..." file)
|
0
|
68 (prog1 (find-file-noselect file)
|
|
69 ;; update folder history
|
|
70 (let ((item (or folder vm-primary-inbox)))
|
|
71 (if (not (equal item (car vm-folder-history)))
|
|
72 (setq vm-folder-history
|
|
73 (cons item vm-folder-history))))
|
70
|
74 (vm-unsaved-message "Reading %s... done" file))))))))
|
0
|
75 (set-buffer folder-buffer)
|
100
|
76 ;; for XEmacs/MULE
|
|
77 ;;
|
|
78 ;; If the file coding system is not a no-conversion variant,
|
|
79 ;; make it so by encoding all the text, then setting
|
|
80 ;; the file coding system and decoding it.
|
|
81 ;; This is only possible if a file is visited and vm-mode
|
|
82 ;; is run on it afterwards.
|
|
83 (defvar file-coding-system)
|
|
84 (if (and (fboundp 'get-coding-system)
|
|
85 (not (eq file-coding-system
|
|
86 (get-coding-system 'no-conversion-unix)))
|
|
87 (not (eq file-coding-system
|
|
88 (get-coding-system 'no-conversion-dos)))
|
|
89 (not (eq file-coding-system
|
|
90 (get-coding-system 'no-conversion-mac)))
|
|
91 (not (eq file-coding-system
|
|
92 (get-coding-system 'binary))))
|
|
93 (progn
|
|
94 (encode-coding-region (point-min) (point-max) file-coding-system)
|
|
95 (set-file-coding-system 'no-conversion nil)
|
|
96 (decode-coding-region (point-min) (point-max) file-coding-system)))
|
0
|
97 (vm-check-for-killed-summary)
|
98
|
98 (vm-check-for-killed-presentation)
|
0
|
99 ;; If the buffer's not modified then we know that there can be no
|
|
100 ;; messages in the folder that are not on disk.
|
|
101 (or (buffer-modified-p) (setq vm-messages-not-on-disk 0))
|
|
102 (setq first-time (not (eq major-mode 'vm-mode))
|
|
103 preserve-auto-save-file (and buffer-file-name
|
|
104 (not (buffer-modified-p))
|
|
105 (file-newer-than-file-p
|
|
106 (make-auto-save-file-name)
|
|
107 buffer-file-name)))
|
|
108 ;; Force the folder to be read only if the auto
|
|
109 ;; save file contains information the user might not
|
|
110 ;; want overwritten, i.e. recover-file might be
|
|
111 ;; desired. What we want to avoid is an auto-save.
|
98
|
112 ;; Making the folder read only will keep
|
0
|
113 ;; subsequent actions from modifying the buffer in a
|
|
114 ;; way that triggers an auto save.
|
|
115 ;;
|
|
116 ;; Also force the folder read-only if it was read only and
|
|
117 ;; not already in vm-mode, since there's probably a good
|
|
118 ;; reason for this.
|
|
119 (setq vm-folder-read-only (or preserve-auto-save-file read-only
|
|
120 (default-value 'vm-folder-read-only)
|
|
121 (and first-time buffer-read-only)))
|
|
122 ;; If this is not a VM mode buffer then some initialization
|
|
123 ;; needs to be done
|
|
124 (if first-time
|
|
125 (progn
|
|
126 (if (fboundp 'buffer-disable-undo)
|
|
127 (buffer-disable-undo (current-buffer))
|
|
128 ;; obfuscation to make the v19 compiler not whine
|
|
129 ;; about obsolete functions.
|
|
130 (let ((x 'buffer-flush-undo))
|
|
131 (funcall x (current-buffer))))
|
|
132 (abbrev-mode 0)
|
|
133 (auto-fill-mode 0)
|
|
134 (vm-mode-internal)))
|
|
135 (vm-assimilate-new-messages nil t)
|
|
136 (if first-time
|
|
137 (progn
|
|
138 (vm-gobble-visible-header-variables)
|
|
139 (vm-gobble-bookmark)
|
|
140 (vm-gobble-summary)
|
|
141 (vm-gobble-labels)
|
|
142 (vm-start-itimers-if-needed)))
|
|
143
|
|
144 ;; make a new frame if the user wants one. reuse an
|
|
145 ;; existing frame that is showing this folder.
|
|
146 (if (and full-startup
|
|
147 ;; this so that "emacs -f vm" doesn't create a frame.
|
|
148 this-command)
|
98
|
149 (apply 'vm-goto-new-folder-frame-maybe
|
|
150 (if folder '(folder) '(primary-folder folder))))
|
|
151
|
|
152 ;; raise frame if requested and apply startup window
|
|
153 ;; configuration.
|
|
154 (if full-startup
|
|
155 (progn
|
|
156 (if vm-raise-frame-at-startup
|
|
157 (vm-raise-frame))
|
|
158 (vm-display nil nil (list this-command)
|
|
159 (list (or this-command 'vm) 'startup))))
|
|
160
|
0
|
161 ;; say this NOW, before the non-previewers read a message,
|
|
162 ;; alter the new message count and confuse themselves.
|
|
163 (if full-startup
|
|
164 ;; save blurb so we can repeat it later as necessary.
|
|
165 (setq totals-blurb (vm-emit-totals-blurb)))
|
|
166
|
|
167 (vm-thoughtfully-select-message)
|
70
|
168 (if vm-message-list
|
|
169 (vm-preview-current-message)
|
|
170 (vm-update-summary-and-mode-line))
|
0
|
171 ;; need to do this after any frame creation because the
|
|
172 ;; toolbar sets frame-specific height and width specifiers.
|
76
|
173 (and (vm-toolbar-support-possible-p) vm-use-toolbar
|
0
|
174 (progn
|
|
175 (vm-toolbar-install-toolbar)
|
|
176 (vm-toolbar-update-toolbar)))
|
|
177
|
|
178 (and vm-use-menus (vm-menu-support-possible-p)
|
|
179 (vm-menu-install-visited-folders-menu))
|
|
180
|
|
181 (if full-startup
|
98
|
182 (progn
|
|
183 (if (and (vm-should-generate-summary)
|
0
|
184 ;; don't generate a summary if recover-file is
|
|
185 ;; likely to happen, since recover-file does
|
|
186 ;; nothing useful in a summary buffer.
|
|
187 (not preserve-auto-save-file))
|
98
|
188 (vm-summarize t nil))
|
|
189 ;; raise the summary frame if the user wants frames
|
|
190 ;; raised and if there is a summary frame.
|
|
191 (if (and vm-summary-buffer
|
|
192 vm-frame-per-summary
|
|
193 vm-raise-frame-at-startup)
|
|
194 (vm-raise-frame))
|
|
195 ;; if vm-mutable-windows is nil, the startup
|
|
196 ;; configuration can't be applied, so do
|
|
197 ;; something to get a VM buffer on the screen
|
|
198 (if vm-mutable-windows
|
|
199 (vm-display nil nil (list this-command)
|
|
200 (list (or this-command 'vm) 'startup))
|
|
201 (save-excursion
|
|
202 (switch-to-buffer (or vm-summary-buffer
|
|
203 vm-presentation-buffer
|
|
204 (current-buffer)))))))
|
54
|
205
|
0
|
206 (run-hooks 'vm-visit-folder-hook)
|
|
207
|
|
208 (if full-startup
|
|
209 (message totals-blurb))
|
|
210 ;; Warn user about auto save file, if appropriate.
|
|
211 (if (and full-startup preserve-auto-save-file)
|
|
212 (message
|
|
213 (substitute-command-keys
|
|
214 "Auto save file is newer; consider \\[recover-file]. FOLDER IS READ ONLY.")))
|
|
215 ;; if we're not doing a full startup or if doing more would
|
|
216 ;; trash the auto save file that we need to preserve,
|
|
217 ;; stop here.
|
|
218 (if (or (not full-startup) preserve-auto-save-file)
|
|
219 (throw 'done t))
|
|
220 (if (and vm-auto-get-new-mail
|
|
221 (not vm-block-new-mail)
|
|
222 (not vm-folder-read-only))
|
|
223 (progn
|
70
|
224 (vm-unsaved-message "Checking for new mail for %s..."
|
0
|
225 (or buffer-file-name (buffer-name)))
|
100
|
226 (if (and (vm-get-spooled-mail t) (vm-assimilate-new-messages t))
|
0
|
227 (progn
|
|
228 (setq totals-blurb (vm-emit-totals-blurb))
|
|
229 (if (vm-thoughtfully-select-message)
|
|
230 (vm-preview-current-message)
|
|
231 (vm-update-summary-and-mode-line))))
|
|
232 (message totals-blurb)))
|
|
233
|
|
234 ;; Display copyright and copying info unless
|
|
235 ;; user says no.
|
100
|
236 (if (and (interactive-p) (not vm-startup-message-displayed))
|
0
|
237 (progn
|
|
238 (vm-display-startup-message)
|
|
239 (if (not (input-pending-p))
|
|
240 (message totals-blurb)))))))
|
|
241
|
|
242 (defun vm-other-frame (&optional folder read-only)
|
|
243 "Like vm, but run in a newly created frame."
|
|
244 (interactive (list nil current-prefix-arg))
|
|
245 (vm-session-initialization)
|
|
246 (if (vm-multiple-frames-possible-p)
|
|
247 (if folder
|
|
248 (vm-goto-new-frame 'folder)
|
|
249 (vm-goto-new-frame 'primary-folder 'folder)))
|
|
250 (let ((vm-frame-per-folder nil)
|
|
251 (vm-search-other-frames nil))
|
|
252 (vm folder read-only))
|
|
253 (if (vm-multiple-frames-possible-p)
|
|
254 (vm-set-hooks-for-frame-deletion)))
|
|
255
|
|
256 (defun vm-other-window (&optional folder read-only)
|
|
257 "Like vm, but run in a different window."
|
|
258 (interactive (list nil current-prefix-arg))
|
|
259 (vm-session-initialization)
|
|
260 (if (one-window-p t)
|
|
261 (split-window))
|
|
262 (other-window 1)
|
|
263 (let ((vm-frame-per-folder nil)
|
|
264 (vm-search-other-frames nil))
|
|
265 (vm folder read-only)))
|
|
266
|
|
267 (put 'vm-mode 'mode-class 'special)
|
|
268
|
|
269 (defun vm-mode (&optional read-only)
|
|
270 "Major mode for reading mail.
|
|
271
|
100
|
272 This is VM 6.15.
|
0
|
273
|
|
274 Commands:
|
|
275 h - summarize folder contents
|
|
276 C-t - toggle threads display
|
|
277
|
|
278 n - go to next message
|
|
279 p - go to previous message
|
|
280 N - like `n' but ignores skip-variable settings
|
|
281 P - like `p' but ignores skip-variable settings
|
|
282 M-n - go to next unread message
|
|
283 M-p - go to previous unread message
|
|
284 RET - go to numbered message (uses prefix arg or prompts in minibuffer)
|
|
285 TAB - go to last message seen
|
|
286 ^ - go to parent of this message
|
|
287 M-s - incremental search through the folder
|
|
288
|
|
289 t - display hidden headers
|
|
290 SPC - expose message body or scroll forward a page
|
|
291 b - scroll backward a page
|
|
292 < - go to beginning of current message
|
|
293 > - go to end of current message
|
|
294
|
|
295 d - delete message, prefix arg deletes messages forward
|
|
296 C-d - delete message, prefix arg deletes messages backward
|
|
297 u - undelete
|
|
298 k - flag for deletion all messages with same subject as the current message
|
|
299
|
|
300 r - reply (only to the sender of the message)
|
|
301 R - reply with included text from the current message
|
|
302 M-r - extract and resend bounced message
|
|
303 f - followup (reply to all recipients of message)
|
|
304 F - followup with included text from the current message
|
|
305 z - forward the current message
|
|
306 m - send a message
|
|
307 B - resend the current message to another user.
|
|
308 c - continue composing the most recent message you were composing
|
|
309
|
|
310 @ - digestify and mail entire folder contents (the folder is not modified)
|
|
311 * - burst a digest into individual messages, and append and assimilate these
|
98
|
312 messages into the current folder.
|
0
|
313
|
|
314 G - sort messages by various keys
|
|
315
|
|
316 g - get any new mail that has arrived in the system mailbox
|
|
317 (new mail is appended to the disk and buffer copies of the
|
|
318 primary inbox.)
|
|
319 v - visit another mail folder
|
|
320
|
|
321 e - edit the current message
|
|
322 j - discard cached information about the current message
|
|
323
|
|
324 s - save current message in a folder (appends if folder already exists)
|
|
325 w - write current message to a file without its headers (appends if exists)
|
|
326 S - save entire folder to disk, does not expunge
|
|
327 A - save unfiled messages to their vm-auto-folder-alist specified folders
|
|
328 # - expunge deleted messages (without saving folder)
|
|
329 q - quit VM, deleted messages are not expunged, folder is
|
|
330 saved to disk if it is modified. new messages are changed
|
|
331 to be flagged as just unread.
|
|
332 x - exit VM with no change to the folder
|
|
333
|
|
334 M N - use marks; the next vm command will affect only marked messages
|
70
|
335 if it makes sense for the command to do so
|
0
|
336
|
|
337 M M - mark the current message
|
|
338 M U - unmark the current message
|
|
339 M m - mark all messages
|
|
340 M u - unmark all messages
|
98
|
341 M C - mark messages matched by a virtual folder selector
|
|
342 M c - unmark messages matched by a virtual folder selector
|
0
|
343 M T - mark thread tree rooted at the current message
|
|
344 M t - unmark thread tree rooted at the current message
|
|
345 M S - mark messages with the same subject as the current message
|
|
346 M s - unmark messages with the same subject as the current message
|
|
347 M A - mark messages with the same author as the current message
|
|
348 M a - unmark messages with the same author as the current message
|
98
|
349 M R - mark messages within the point/mark region in the summary
|
|
350 M r - unmark messages within the point/mark region in the summary
|
0
|
351
|
|
352 M ? - partial help for mark commands
|
|
353
|
|
354 W S - save the current window configuration to a name
|
|
355 W D - delete a window configuration
|
|
356 W W - apply a configuration
|
|
357 W ? - help for the window configuration commands
|
|
358
|
|
359 V V - visit a virtual folder (must be defined in vm-virtual-folder-alist)
|
|
360 V C - create a virtual folder composed of a subset of the
|
|
361 current folder's messages.
|
|
362 V A - apply the selectors of a named virtual folder to the
|
|
363 messages in the current folder and create a virtual folder
|
|
364 containing the selected messages.
|
|
365 V M - toggle whether this virtual folder's messages mirror the
|
|
366 underlying real messages' attributes.
|
|
367 V ? - help for virtual folder commands
|
|
368
|
|
369 C-_ - undo, special undo that retracts the most recent
|
70
|
370 changes in message attributes and labels. Expunges
|
0
|
371 message edits, and saves cannot be undone. C-x u is
|
|
372 also bound to this command.
|
|
373
|
|
374 a - set message attributes
|
|
375
|
|
376 l a - add labels to message
|
|
377 l d - delete labels from message
|
|
378
|
|
379 L - reload your VM init file, ~/.vm
|
|
380
|
|
381 % - change a folder to another type
|
|
382
|
|
383 ? - help
|
|
384
|
|
385 ! - run a shell command
|
|
386 | - run a shell command with the current message as input
|
|
387
|
|
388 M-C - view conditions under which you may redistribute VM
|
|
389 M-W - view the details of VM's lack of a warranty
|
|
390
|
|
391 Use M-x vm-submit-bug-report to submit a bug report.
|
|
392
|
|
393 Variables:
|
|
394 vm-arrived-message-hook
|
|
395 vm-arrived-messages-hook
|
|
396 vm-auto-center-summary
|
98
|
397 vm-auto-decode-mime-messages
|
|
398 vm-auto-displayed-mime-content-types
|
0
|
399 vm-auto-folder-alist
|
|
400 vm-auto-folder-case-fold-search
|
|
401 vm-auto-get-new-mail
|
|
402 vm-auto-next-message
|
|
403 vm-berkeley-mail-compatibility
|
98
|
404 vm-burst-digest-messages-inherit-labels
|
0
|
405 vm-check-folder-types
|
|
406 vm-circular-folders
|
|
407 vm-confirm-new-folders
|
|
408 vm-confirm-quit
|
98
|
409 vm-convert-folder-types
|
0
|
410 vm-crash-box
|
98
|
411 vm-crash-box-suffix
|
0
|
412 vm-default-folder-type
|
|
413 vm-delete-after-archiving
|
|
414 vm-delete-after-bursting
|
|
415 vm-delete-after-saving
|
|
416 vm-delete-empty-folders
|
|
417 vm-digest-burst-type
|
|
418 vm-digest-center-preamble
|
|
419 vm-digest-preamble-format
|
|
420 vm-digest-send-type
|
|
421 vm-display-buffer-hook
|
98
|
422 vm-display-using-mime
|
0
|
423 vm-edit-message-hook
|
|
424 vm-folder-directory
|
|
425 vm-folder-read-only
|
|
426 vm-follow-summary-cursor
|
|
427 vm-forward-message-hook
|
|
428 vm-forwarded-headers
|
|
429 vm-forwarding-digest-type
|
|
430 vm-forwarding-subject-format
|
|
431 vm-frame-parameter-alist
|
98
|
432 vm-frame-per-completion
|
0
|
433 vm-frame-per-composition
|
98
|
434 vm-frame-per-edit
|
0
|
435 vm-frame-per-folder
|
98
|
436 vm-frame-per-summary
|
0
|
437 vm-highlighted-header-face
|
|
438 vm-highlighted-header-regexp
|
|
439 vm-honor-page-delimiters
|
100
|
440 vm-image-directory
|
0
|
441 vm-in-reply-to-format
|
|
442 vm-included-text-attribution-format
|
|
443 vm-included-text-discard-header-regexp
|
|
444 vm-included-text-headers
|
|
445 vm-included-text-prefix
|
|
446 vm-invisible-header-regexp
|
|
447 vm-jump-to-new-messages
|
|
448 vm-jump-to-unread-messages
|
98
|
449 vm-keep-crash-boxes
|
70
|
450 vm-keep-sent-messages
|
100
|
451 vm-mail-check-interval
|
0
|
452 vm-mail-header-from
|
|
453 vm-mail-mode-hook
|
98
|
454 vm-make-crash-box-name
|
|
455 vm-make-spool-file-name
|
|
456 vm-mime-8bit-composition-charset
|
|
457 vm-mime-8bit-text-transfer-encoding
|
|
458 vm-mime-alternative-select-method
|
|
459 vm-mime-attachment-auto-type-alist
|
|
460 vm-mime-attachment-save-directory
|
|
461 vm-mime-avoid-folding-content-type
|
|
462 vm-mime-base64-decoder-program
|
|
463 vm-mime-base64-decoder-switches
|
|
464 vm-mime-base64-encoder-program
|
|
465 vm-mime-base64-encoder-switches
|
|
466 vm-mime-button-face
|
100
|
467 vm-mime-charset-font-alist
|
|
468 vm-mime-default-face-charsets
|
98
|
469 vm-mime-digest-discard-header-regexp
|
|
470 vm-mime-digest-headers
|
|
471 vm-mime-display-function
|
|
472 vm-mime-external-content-types-alist
|
|
473 vm-mime-internal-content-types
|
|
474 vm-mime-max-message-size
|
0
|
475 vm-mode-hook
|
|
476 vm-mosaic-program
|
|
477 vm-move-after-deleting
|
98
|
478 vm-move-after-killing
|
0
|
479 vm-move-after-undeleting
|
|
480 vm-move-messages-physically
|
98
|
481 vm-mutable-frames
|
70
|
482 vm-mutable-windows
|
0
|
483 vm-netscape-program
|
100
|
484 vm-pop-bytes-per-session
|
|
485 vm-pop-max-message-size
|
0
|
486 vm-pop-md5-program
|
100
|
487 vm-pop-messages-per-session
|
98
|
488 vm-popup-menu-on-mouse-3
|
|
489 vm-preferences-file
|
0
|
490 vm-preview-lines
|
|
491 vm-preview-read-messages
|
|
492 vm-primary-inbox
|
|
493 vm-quit-hook
|
|
494 vm-recognize-pop-maildrops
|
|
495 vm-reply-hook
|
98
|
496 vm-reply-ignored-addresses
|
70
|
497 vm-reply-ignored-reply-tos
|
0
|
498 vm-reply-subject-prefix
|
|
499 vm-resend-bounced-discard-header-regexp
|
|
500 vm-resend-bounced-headers
|
|
501 vm-resend-bounced-message-hook
|
|
502 vm-resend-discard-header-regexp
|
|
503 vm-resend-headers
|
|
504 vm-resend-message-hook
|
|
505 vm-retrieved-spooled-mail-hook
|
|
506 vm-rfc1153-digest-discard-header-regexp
|
|
507 vm-rfc1153-digest-headers
|
|
508 vm-rfc934-digest-discard-header-regexp
|
|
509 vm-rfc934-digest-headers
|
|
510 vm-search-using-regexps
|
|
511 vm-select-message-hook
|
|
512 vm-select-new-message-hook
|
|
513 vm-select-unread-message-hook
|
|
514 vm-send-digest-hook
|
98
|
515 vm-send-using-mime
|
0
|
516 vm-skip-deleted-messages
|
|
517 vm-skip-read-messages
|
100
|
518 vm-spool-file-suffixes
|
0
|
519 vm-spool-files
|
|
520 vm-startup-with-summary
|
|
521 vm-strip-reply-headers
|
|
522 vm-summary-arrow
|
|
523 vm-summary-format
|
|
524 vm-summary-highlight-face
|
|
525 vm-summary-mode-hook
|
|
526 vm-summary-redo-hook
|
|
527 vm-summary-show-threads
|
|
528 vm-summary-thread-indent-level
|
100
|
529 vm-tale-is-an-idiot
|
98
|
530 vm-temp-file-directory
|
0
|
531 vm-trust-From_-with-Content-Length
|
|
532 vm-undisplay-buffer-hook
|
|
533 vm-unforwarded-header-regexp
|
|
534 vm-url-browser
|
|
535 vm-url-search-limit
|
|
536 vm-use-menus
|
98
|
537 vm-use-toolbar
|
0
|
538 vm-virtual-folder-alist
|
|
539 vm-virtual-mirror
|
|
540 vm-visible-headers
|
|
541 vm-visit-folder-hook
|
|
542 vm-visit-when-saving
|
|
543 vm-warp-mouse-to-new-frame
|
|
544 vm-window-configuration-file
|
|
545 "
|
|
546 (interactive "P")
|
|
547 (vm (current-buffer) read-only)
|
|
548 (vm-display nil nil '(vm-mode) '(vm-mode)))
|
|
549
|
|
550 (defun vm-visit-folder (folder &optional read-only)
|
|
551 "Visit a mail file.
|
|
552 VM will parse and present its messages to you in the usual way.
|
|
553
|
|
554 First arg FOLDER specifies the mail file to visit. When this
|
|
555 command is called interactively the file name is read from the
|
|
556 minibuffer.
|
|
557
|
|
558 Prefix arg or optional second arg READ-ONLY non-nil indicates
|
|
559 that the folder should be considered read only. No attribute
|
|
560 changes, messages additions or deletions will be allowed in the
|
|
561 visited folder."
|
|
562 (interactive
|
|
563 (save-excursion
|
|
564 (vm-session-initialization)
|
|
565 (vm-select-folder-buffer)
|
|
566 (let ((default-directory (if vm-folder-directory
|
|
567 (expand-file-name vm-folder-directory)
|
|
568 default-directory))
|
|
569 (default (or vm-last-visit-folder vm-last-save-folder))
|
|
570 (this-command this-command)
|
|
571 (last-command last-command))
|
|
572 (list (vm-read-file-name
|
|
573 (format "Visit%s folder:%s "
|
|
574 (if current-prefix-arg " read only" "")
|
|
575 (if default
|
|
576 (format " (default %s)" default)
|
|
577 ""))
|
|
578 default-directory default nil nil 'vm-folder-history)
|
|
579 current-prefix-arg))))
|
|
580 (vm-session-initialization)
|
|
581 (vm-select-folder-buffer)
|
|
582 (vm-check-for-killed-summary)
|
|
583 (setq vm-last-visit-folder folder)
|
|
584 (let ((default-directory (or vm-folder-directory default-directory)))
|
|
585 (setq folder (expand-file-name folder)))
|
|
586 (vm folder read-only))
|
|
587
|
|
588 (defun vm-visit-folder-other-frame (folder &optional read-only)
|
|
589 "Like vm-visit-folder, but run in a newly created frame."
|
|
590 (interactive
|
|
591 (save-excursion
|
|
592 (vm-session-initialization)
|
|
593 (vm-select-folder-buffer)
|
|
594 (let ((default-directory (if vm-folder-directory
|
|
595 (expand-file-name vm-folder-directory)
|
|
596 default-directory))
|
|
597 (default (or vm-last-visit-folder vm-last-save-folder))
|
|
598 (this-command this-command)
|
|
599 (last-command last-command))
|
|
600 (list (vm-read-file-name
|
|
601 (format "Visit%s folder in other frame:%s "
|
|
602 (if current-prefix-arg " read only" "")
|
|
603 (if default
|
|
604 (format " (default %s)" default)
|
|
605 ""))
|
|
606 default-directory default nil nil 'vm-folder-history)
|
|
607 current-prefix-arg))))
|
|
608 (if (vm-multiple-frames-possible-p)
|
|
609 (vm-goto-new-frame 'folder))
|
|
610 (let ((vm-frame-per-folder nil)
|
|
611 (vm-search-other-frames nil))
|
|
612 (vm-visit-folder folder read-only))
|
|
613 (if (vm-multiple-frames-possible-p)
|
|
614 (vm-set-hooks-for-frame-deletion)))
|
|
615
|
|
616 (defun vm-visit-folder-other-window (folder &optional read-only)
|
|
617 "Like vm-visit-folder, but run in a different window."
|
|
618 (interactive
|
|
619 (save-excursion
|
|
620 (vm-session-initialization)
|
|
621 (vm-select-folder-buffer)
|
|
622 (let ((default-directory (if vm-folder-directory
|
|
623 (expand-file-name vm-folder-directory)
|
|
624 default-directory))
|
|
625 (default (or vm-last-visit-folder vm-last-save-folder))
|
|
626 (this-command this-command)
|
|
627 (last-command last-command))
|
|
628 (list (vm-read-file-name
|
|
629 (format "Visit%s folder in other window:%s "
|
|
630 (if current-prefix-arg " read only" "")
|
|
631 (if default
|
|
632 (format " (default %s)" default)
|
|
633 ""))
|
|
634 default-directory default nil nil 'vm-folder-history)
|
|
635 current-prefix-arg))))
|
|
636 (vm-session-initialization)
|
|
637 (if (one-window-p t)
|
|
638 (split-window))
|
|
639 (other-window 1)
|
|
640 (let ((vm-frame-per-folder nil)
|
|
641 (vm-search-other-frames nil))
|
|
642 (vm-visit-folder folder read-only)))
|
|
643
|
|
644 (put 'vm-virtual-mode 'mode-class 'special)
|
|
645
|
|
646 (defun vm-virtual-mode (&rest ignored)
|
|
647 "Mode for reading multiple mail folders as one folder.
|
|
648
|
|
649 The commands available are the same commands that are found in
|
|
650 vm-mode, except that a few of them are not applicable to virtual
|
|
651 folders.
|
|
652
|
|
653 vm-virtual-mode is not a normal major mode. If you run it, it
|
|
654 will not do anything. The entry point to vm-virtual-mode is
|
|
655 vm-visit-virtual-folder.")
|
|
656
|
100
|
657 (defvar scroll-in-place)
|
|
658
|
0
|
659 (defun vm-visit-virtual-folder (folder-name &optional read-only)
|
|
660 (interactive
|
|
661 (let ((last-command last-command)
|
|
662 (this-command this-command))
|
|
663 (vm-session-initialization)
|
|
664 (list
|
|
665 (vm-read-string "Visit virtual folder: " vm-virtual-folder-alist)
|
|
666 current-prefix-arg)))
|
|
667 (vm-session-initialization)
|
|
668 (if (not (assoc folder-name vm-virtual-folder-alist))
|
|
669 (error "No such virtual folder, %s" folder-name))
|
|
670 (let ((buffer-name (concat "(" folder-name ")"))
|
|
671 first-time blurb)
|
|
672 (set-buffer (get-buffer-create buffer-name))
|
|
673 (setq first-time (not (eq major-mode 'vm-virtual-mode)))
|
|
674 (if first-time
|
|
675 (progn
|
|
676 (if (fboundp 'buffer-disable-undo)
|
|
677 (buffer-disable-undo (current-buffer))
|
|
678 ;; obfuscation to make the v19 compiler not whine
|
|
679 ;; about obsolete functions.
|
|
680 (let ((x 'buffer-flush-undo))
|
|
681 (funcall x (current-buffer))))
|
|
682 (abbrev-mode 0)
|
|
683 (auto-fill-mode 0)
|
|
684 (setq mode-name "VM Virtual"
|
|
685 mode-line-format vm-mode-line-format
|
|
686 buffer-read-only t
|
|
687 vm-folder-read-only read-only
|
|
688 vm-label-obarray (make-vector 29 0)
|
|
689 vm-virtual-folder-definition
|
|
690 (assoc folder-name vm-virtual-folder-alist))
|
100
|
691 ;; scroll in place messes with scroll-up and this loses
|
|
692 (make-local-variable 'scroll-in-place)
|
|
693 (setq scroll-in-place nil)
|
0
|
694 (vm-build-virtual-message-list nil)
|
|
695 (use-local-map vm-mode-map)
|
|
696 (and (vm-menu-support-possible-p)
|
|
697 (vm-menu-install-menus))
|
98
|
698 (add-hook 'kill-buffer-hook 'vm-garbage-collect-folder)
|
|
699 (add-hook 'kill-buffer-hook 'vm-garbage-collect-message)
|
0
|
700 ;; save this for last in case the user interrupts.
|
|
701 ;; an interrupt anywhere before this point will cause
|
|
702 ;; everything to be redone next revisit.
|
|
703 (setq major-mode 'vm-virtual-mode)
|
|
704 (run-hooks 'vm-virtual-mode-hook)
|
|
705 ;; must come after the setting of major-mode
|
98
|
706 (setq mode-popup-menu (and vm-use-menus vm-popup-menu-on-mouse-3
|
0
|
707 (vm-menu-support-possible-p)
|
|
708 (vm-menu-mode-menu)))
|
|
709 (setq blurb (vm-emit-totals-blurb))
|
|
710 (if vm-summary-show-threads
|
|
711 (vm-sort-messages "thread"))
|
|
712 (if (vm-thoughtfully-select-message)
|
|
713 (vm-preview-current-message)
|
|
714 (vm-update-summary-and-mode-line))
|
|
715 (message blurb)))
|
|
716 ;; make a new frame if the user wants one. reuse an
|
|
717 ;; existing frame that is showing this folder.
|
98
|
718 (vm-goto-new-folder-frame-maybe 'folder)
|
|
719 (if vm-raise-frame-at-startup
|
|
720 (vm-raise-frame))
|
|
721 (vm-display nil nil (list this-command) (list this-command 'startup))
|
0
|
722 (and (vm-toolbar-support-possible-p) vm-use-toolbar
|
|
723 (vm-toolbar-install-toolbar))
|
|
724 (if first-time
|
98
|
725 (progn
|
|
726 (if (vm-should-generate-summary)
|
|
727 (progn (vm-summarize t nil)
|
|
728 (message blurb)))
|
|
729 ;; raise the summary frame if the user wants frames
|
|
730 ;; raised and if there is a summary frame.
|
|
731 (if (and vm-summary-buffer
|
|
732 vm-frame-per-summary
|
|
733 vm-raise-frame-at-startup)
|
|
734 (vm-raise-frame))
|
|
735 ;; if vm-mutable-windows is nil, the startup
|
|
736 ;; configuration can't be applied, so do
|
|
737 ;; something to get a VM buffer on the screen
|
|
738 (if vm-mutable-windows
|
|
739 (vm-display nil nil (list this-command)
|
|
740 (list (or this-command 'vm) 'startup))
|
|
741 (save-excursion
|
|
742 (switch-to-buffer (or vm-summary-buffer
|
|
743 vm-presentation-buffer
|
|
744 (current-buffer)))))))
|
|
745
|
0
|
746 ;; check interactive-p so as not to bog the user down if they
|
|
747 ;; run this function from within another function.
|
98
|
748 (and (interactive-p)
|
0
|
749 (not vm-startup-message-displayed)
|
|
750 (vm-display-startup-message)
|
|
751 (message blurb))))
|
|
752
|
|
753 (defun vm-visit-virtual-folder-other-frame (folder-name &optional read-only)
|
|
754 "Like vm-visit-virtual-folder, but run in a newly created frame."
|
|
755 (interactive
|
|
756 (let ((last-command last-command)
|
|
757 (this-command this-command))
|
|
758 (vm-session-initialization)
|
|
759 (list
|
|
760 (vm-read-string "Visit virtual folder in other frame: "
|
|
761 vm-virtual-folder-alist)
|
|
762 current-prefix-arg)))
|
|
763 (vm-session-initialization)
|
|
764 (if (vm-multiple-frames-possible-p)
|
|
765 (vm-goto-new-frame 'folder))
|
|
766 (let ((vm-frame-per-folder nil)
|
|
767 (vm-search-other-frames nil))
|
|
768 (vm-visit-virtual-folder folder-name read-only))
|
|
769 (if (vm-multiple-frames-possible-p)
|
|
770 (vm-set-hooks-for-frame-deletion)))
|
|
771
|
|
772 (defun vm-visit-virtual-folder-other-window (folder-name &optional read-only)
|
|
773 "Like vm-visit-virtual-folder, but run in a different window."
|
|
774 (interactive
|
|
775 (let ((last-command last-command)
|
|
776 (this-command this-command))
|
|
777 (vm-session-initialization)
|
|
778 (list
|
|
779 (vm-read-string "Visit virtual folder in other window: "
|
|
780 vm-virtual-folder-alist)
|
|
781 current-prefix-arg)))
|
|
782 (vm-session-initialization)
|
|
783 (if (one-window-p t)
|
|
784 (split-window))
|
|
785 (other-window 1)
|
|
786 (let ((vm-frame-per-folder nil)
|
|
787 (vm-search-other-frames nil))
|
|
788 (vm-visit-virtual-folder folder-name read-only)))
|
|
789
|
70
|
790 (defun vm-mail ()
|
|
791 "Send a mail message from within VM, or from without."
|
0
|
792 (interactive)
|
|
793 (vm-session-initialization)
|
|
794 (vm-select-folder-buffer)
|
|
795 (vm-check-for-killed-summary)
|
70
|
796 (vm-mail-internal)
|
0
|
797 (run-hooks 'vm-mail-hook)
|
|
798 (run-hooks 'vm-mail-mode-hook))
|
|
799
|
70
|
800 (defun vm-mail-other-frame ()
|
|
801 "Like vm-mail, but run in a newly created frame."
|
0
|
802 (interactive)
|
|
803 (vm-session-initialization)
|
|
804 (if (vm-multiple-frames-possible-p)
|
|
805 (vm-goto-new-frame 'composition))
|
|
806 (let ((vm-frame-per-composition nil)
|
|
807 (vm-search-other-frames nil))
|
70
|
808 (vm-mail))
|
0
|
809 (if (vm-multiple-frames-possible-p)
|
|
810 (vm-set-hooks-for-frame-deletion)))
|
|
811
|
70
|
812 (defun vm-mail-other-window ()
|
|
813 "Like vm-mail, but run in a different window."
|
0
|
814 (interactive)
|
|
815 (vm-session-initialization)
|
|
816 (if (one-window-p t)
|
|
817 (split-window))
|
|
818 (other-window 1)
|
|
819 (let ((vm-frame-per-composition nil)
|
|
820 (vm-search-other-frames nil))
|
70
|
821 (vm-mail)))
|
0
|
822
|
|
823 (defun vm-submit-bug-report ()
|
|
824 "Submit a bug report, with pertinent information to the VM bug list."
|
|
825 (interactive)
|
|
826 (require 'reporter)
|
|
827 ;; make sure the user doesn't try to use vm-mail here.
|
|
828 (let ((reporter-mailer '(mail)))
|
|
829 (delete-other-windows)
|
|
830 (reporter-submit-bug-report
|
|
831 vm-maintainer-address
|
|
832 (concat "VM " vm-version)
|
|
833 (list
|
|
834 'vm-arrived-message-hook
|
|
835 'vm-arrived-messages-hook
|
|
836 'vm-auto-center-summary
|
98
|
837 'vm-auto-decode-mime-messages
|
|
838 'vm-auto-displayed-mime-content-types
|
0
|
839 ;; don't send this by default, might be personal stuff in here.
|
|
840 ;; 'vm-auto-folder-alist
|
|
841 'vm-auto-folder-case-fold-search
|
|
842 'vm-auto-get-new-mail
|
|
843 'vm-auto-next-message
|
|
844 'vm-berkeley-mail-compatibility
|
|
845 'vm-check-folder-types
|
|
846 'vm-circular-folders
|
|
847 'vm-confirm-new-folders
|
|
848 'vm-confirm-quit
|
|
849 'vm-convert-folder-types
|
|
850 'vm-crash-box
|
98
|
851 'vm-crash-box-suffix
|
0
|
852 'vm-default-folder-type
|
|
853 'vm-delete-after-archiving
|
|
854 'vm-delete-after-bursting
|
|
855 'vm-delete-after-saving
|
|
856 'vm-delete-empty-folders
|
|
857 'vm-digest-burst-type
|
|
858 'vm-digest-identifier-header-format
|
|
859 'vm-digest-center-preamble
|
|
860 'vm-digest-preamble-format
|
|
861 'vm-digest-send-type
|
|
862 'vm-display-buffer-hook
|
98
|
863 'vm-display-using-mime
|
0
|
864 'vm-edit-message-hook
|
|
865 'vm-edit-message-mode
|
|
866 'vm-flush-interval
|
|
867 'vm-folder-directory
|
|
868 'vm-folder-read-only
|
|
869 'vm-follow-summary-cursor
|
|
870 'vm-forward-message-hook
|
|
871 'vm-forwarded-headers
|
|
872 'vm-forwarding-digest-type
|
|
873 'vm-forwarding-subject-format
|
|
874 'vm-frame-parameter-alist
|
98
|
875 'vm-frame-per-completion
|
0
|
876 'vm-frame-per-composition
|
98
|
877 'vm-frame-per-edit
|
0
|
878 'vm-frame-per-folder
|
98
|
879 'vm-frame-per-summary
|
0
|
880 'vm-highlight-url-face
|
|
881 'vm-highlighted-header-regexp
|
|
882 'vm-honor-page-delimiters
|
100
|
883 'vm-image-directory
|
0
|
884 'vm-in-reply-to-format
|
|
885 'vm-included-text-attribution-format
|
|
886 'vm-included-text-discard-header-regexp
|
|
887 'vm-included-text-headers
|
|
888 'vm-included-text-prefix
|
|
889 'vm-init-file
|
|
890 'vm-invisible-header-regexp
|
|
891 'vm-jump-to-new-messages
|
|
892 'vm-jump-to-unread-messages
|
|
893 'vm-keep-crash-boxes
|
|
894 'vm-keep-sent-messages
|
|
895 'vm-mail-header-from
|
|
896 'vm-mail-hook
|
98
|
897 'vm-make-crash-box-name
|
|
898 'vm-make-spool-file-name
|
100
|
899 'vm-mail-check-interval
|
0
|
900 'vm-mail-mode-hook
|
98
|
901 'vm-mime-8bit-composition-charset
|
|
902 'vm-mime-8bit-text-transfer-encoding
|
|
903 'vm-mime-alternative-select-method
|
|
904 'vm-mime-attachment-auto-type-alist
|
|
905 'vm-mime-attachment-save-directory
|
|
906 'vm-mime-avoid-folding-content-type
|
|
907 'vm-mime-base64-decoder-program
|
|
908 'vm-mime-base64-decoder-switches
|
|
909 'vm-mime-base64-encoder-program
|
|
910 'vm-mime-base64-encoder-switches
|
|
911 'vm-mime-button-face
|
100
|
912 'vm-mime-charset-font-alist
|
|
913 'vm-mime-default-face-charsets
|
98
|
914 'vm-mime-digest-discard-header-regexp
|
|
915 'vm-mime-digest-headers
|
|
916 'vm-mime-display-function
|
|
917 'vm-mime-external-content-types-alist
|
|
918 'vm-mime-internal-content-types
|
|
919 'vm-mime-max-message-size
|
0
|
920 'vm-mode-hook
|
|
921 'vm-mode-hooks
|
|
922 'vm-mosaic-program
|
|
923 'vm-move-after-deleting
|
|
924 'vm-move-after-undeleting
|
|
925 'vm-move-messages-physically
|
|
926 'vm-movemail-program
|
|
927 'vm-mutable-frames
|
|
928 'vm-mutable-windows
|
|
929 'vm-netscape-program
|
100
|
930 'vm-pop-bytes-per-session
|
|
931 'vm-pop-max-message-size
|
|
932 'vm-pop-messages-per-session
|
0
|
933 'vm-pop-md5-program
|
98
|
934 'vm-popup-menu-on-mouse-3
|
|
935 'vm-preferences-file
|
0
|
936 'vm-preview-lines
|
|
937 'vm-preview-read-messages
|
|
938 'vm-primary-inbox
|
|
939 'vm-quit-hook
|
|
940 'vm-recognize-pop-maildrops
|
|
941 'vm-reply-hook
|
70
|
942 'vm-reply-ignored-addresses
|
0
|
943 'vm-reply-ignored-reply-tos
|
|
944 'vm-reply-subject-prefix
|
|
945 'vm-resend-bounced-discard-header-regexp
|
|
946 'vm-resend-bounced-headers
|
|
947 'vm-resend-bounced-message-hook
|
|
948 'vm-resend-discard-header-regexp
|
|
949 'vm-resend-headers
|
|
950 'vm-resend-message-hook
|
|
951 'vm-retrieved-spooled-mail-hook
|
|
952 'vm-rfc1153-digest-discard-header-regexp
|
|
953 'vm-rfc1153-digest-headers
|
|
954 'vm-rfc934-digest-discard-header-regexp
|
|
955 'vm-rfc934-digest-headers
|
|
956 'vm-search-using-regexps
|
|
957 'vm-select-message-hook
|
|
958 'vm-select-new-message-hook
|
|
959 'vm-select-unread-message-hook
|
|
960 'vm-send-digest-hook
|
98
|
961 'vm-send-using-mime
|
0
|
962 'vm-skip-deleted-messages
|
|
963 'vm-skip-read-messages
|
|
964 ;; don't send vm-spool-files by default, might contain passwords
|
|
965 ;; 'vm-spool-files
|
98
|
966 'vm-spool-file-suffixes
|
0
|
967 'vm-startup-with-summary
|
|
968 'vm-strip-reply-headers
|
|
969 'vm-summary-format
|
|
970 'vm-summary-highlight-face
|
|
971 'vm-summary-mode-hook
|
|
972 'vm-summary-mode-hooks
|
|
973 'vm-summary-redo-hook
|
|
974 'vm-summary-show-threads
|
|
975 'vm-summary-thread-indent-level
|
|
976 'vm-summary-uninteresting-senders
|
|
977 'vm-summary-uninteresting-senders-arrow
|
|
978 'vm-tale-is-an-idiot
|
98
|
979 'vm-temp-file-directory
|
0
|
980 'vm-trust-From_-with-Content-Length
|
|
981 'vm-undisplay-buffer-hook
|
|
982 'vm-unforwarded-header-regexp
|
|
983 'vm-url-browser
|
|
984 'vm-url-search-limit
|
|
985 'vm-use-menus
|
98
|
986 'vm-use-toolbar
|
0
|
987 'vm-virtual-folder-alist
|
|
988 'vm-virtual-mirror
|
|
989 'vm-visible-headers
|
|
990 'vm-visit-folder-hook
|
|
991 'vm-visit-when-saving
|
|
992 'vm-warp-mouse-to-new-frame
|
|
993 'vm-window-configuration-file
|
|
994 ;; see what the user had loaded
|
|
995 'features
|
|
996 )
|
|
997 nil
|
|
998 nil
|
70
|
999 "Please change the Subject header to a concise bug description.\nRemember to cover the basics, that is, what you expected to\nhappen and what in fact did happen. Please remove these instructions from your message.")
|
0
|
1000 (save-excursion
|
|
1001 (goto-char (point-min))
|
|
1002 (mail-position-on-field "Subject")
|
|
1003 (beginning-of-line)
|
|
1004 (delete-region (point) (progn (forward-line) (point)))
|
|
1005 (insert "Subject: VM " vm-version " induces a brain tumor in the user.\n It is the tumor that creates the hallucinations.\n"))))
|
|
1006
|
|
1007 (defun vm-load-init-file (&optional interactive)
|
|
1008 (interactive "p")
|
|
1009 (if (or (not vm-init-file-loaded) interactive)
|
|
1010 (load vm-init-file (not interactive) (not interactive) t))
|
|
1011 (setq vm-init-file-loaded t)
|
|
1012 (vm-display nil nil '(vm-load-init-file) '(vm-load-init-file)))
|
|
1013
|
98
|
1014 (defun vm-check-emacs-version ()
|
|
1015 (cond ((and (vm-xemacs-p)
|
|
1016 (or (< emacs-major-version 19)
|
|
1017 (and (= emacs-major-version 19)
|
|
1018 (< emacs-minor-version 14))))
|
|
1019 (error "VM %s must be run on XEmacs 19.14 or a later version."
|
|
1020 vm-version))
|
|
1021 ((and (vm-fsfemacs-19-p)
|
|
1022 (or (< emacs-major-version 19)
|
|
1023 (and (= emacs-major-version 19)
|
|
1024 (< emacs-minor-version 34))))
|
|
1025 (error "VM %s must be run on Emacs 19.34 or a later version."
|
|
1026 vm-version))))
|
|
1027
|
100
|
1028 (defun vm-set-debug-flags ()
|
|
1029 (or stack-trace-on-error
|
|
1030 debug-on-error
|
|
1031 (setq stack-trace-on-error
|
|
1032 '(
|
|
1033 wrong-type-argument
|
|
1034 wrong-number-of-arguments
|
|
1035 args-out-of-range
|
|
1036 void-function
|
|
1037 void-variable
|
|
1038 ))))
|
|
1039
|
0
|
1040 (defun vm-session-initialization ()
|
98
|
1041 (vm-check-emacs-version)
|
100
|
1042 (vm-set-debug-flags)
|
0
|
1043 ;; If this is the first time VM has been run in this Emacs session,
|
|
1044 ;; do some necessary preparations.
|
|
1045 (if (or (not (boundp 'vm-session-beginning))
|
|
1046 vm-session-beginning)
|
|
1047 (progn
|
|
1048 (random t)
|
|
1049 (vm-load-init-file)
|
|
1050 (if (not vm-window-configuration-file)
|
|
1051 (setq vm-window-configurations vm-default-window-configuration)
|
|
1052 (or (vm-load-window-configurations vm-window-configuration-file)
|
|
1053 (setq vm-window-configurations vm-default-window-configuration)))
|
|
1054 (setq vm-buffers-needing-display-update (make-vector 29 0))
|
|
1055 (and (vm-mouse-support-possible-p)
|
|
1056 (vm-mouse-install-mouse))
|
|
1057 (and (vm-menu-support-possible-p)
|
|
1058 vm-use-menus
|
|
1059 (vm-menu-fsfemacs-menus-p)
|
|
1060 (vm-menu-initialize-vm-mode-menu-map))
|
|
1061 (setq vm-session-beginning nil))))
|
|
1062
|
|
1063 (autoload 'reporter-submit-bug-report "reporter")
|
|
1064 (autoload 'timezone-make-date-sortable "timezone")
|
|
1065 (autoload 'rfc822-addresses "rfc822")
|
|
1066 (autoload 'mail-strip-quoted-names "mail-utils")
|
|
1067 (autoload 'mail-fetch-field "mail-utils")
|
|
1068 (autoload 'mail-position-on-field "mail-utils")
|
|
1069 (autoload 'mail-send "sendmail")
|
|
1070 (autoload 'mail-mode "sendmail")
|
|
1071 (autoload 'mail-extract-address-components "mail-extr")
|
|
1072 (autoload 'set-tapestry "tapestry")
|
|
1073 (autoload 'tapestry "tapestry")
|
|
1074 (autoload 'tapestry-replace-tapestry-element "tapestry")
|
|
1075 (autoload 'tapestry-nullify-tapestry-elements "tapestry")
|
|
1076 (autoload 'tapestry-remove-frame-parameters "tapestry")
|
|
1077 (autoload 'vm-easy-menu-define "vm-easymenu" nil 'macro)
|
|
1078 (autoload 'vm-easy-menu-do-define "vm-easymenu")
|