aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wohler2005-12-19 23:32:16 +0000
committerBill Wohler2005-12-19 23:32:16 +0000
commitcee9f5c6a1c92141764346babd09ca6ec0e97f95 (patch)
tree3e67f76540357889a59db780e709c57084187016
parentc8fee34526333951e18090923fadfc436671e5d8 (diff)
downloademacs-cee9f5c6a1c92141764346babd09ca6ec0e97f95.tar.gz
emacs-cee9f5c6a1c92141764346babd09ca6ec0e97f95.zip
* mh-acros.el:
* mh-alias.el: * mh-comp.el: * mh-customize.el: * mh-e.el: * mh-funcs.el: * mh-gnus.el: * mh-identity.el: * mh-inc.el: * mh-index.el: * mh-init.el: * mh-junk.el: * mh-mime.el: * mh-pick.el: * mh-print.el: * mh-seq.el: * mh-speed.el: * mh-utils.el: Follow commenting conventions. Don't use ;;; form so much, except for headings. Precede headings with page feed. This was mostly already done, so I made it a convention. Did not update copyright on a couple of files since this was an insignificant change.
-rw-r--r--lisp/mh-e/ChangeLog25
-rw-r--r--lisp/mh-e/mh-acros.el12
-rw-r--r--lisp/mh-e/mh-alias.el16
-rw-r--r--lisp/mh-e/mh-comp.el30
-rw-r--r--lisp/mh-e/mh-customize.el32
-rw-r--r--lisp/mh-e/mh-e.el55
-rw-r--r--lisp/mh-e/mh-funcs.el14
-rw-r--r--lisp/mh-e/mh-gnus.el24
-rw-r--r--lisp/mh-e/mh-identity.el10
-rw-r--r--lisp/mh-e/mh-inc.el10
-rw-r--r--lisp/mh-e/mh-index.el59
-rw-r--r--lisp/mh-e/mh-init.el22
-rw-r--r--lisp/mh-e/mh-junk.el10
-rw-r--r--lisp/mh-e/mh-mime.el22
-rw-r--r--lisp/mh-e/mh-pick.el24
-rw-r--r--lisp/mh-e/mh-print.el10
-rw-r--r--lisp/mh-e/mh-seq.el37
-rw-r--r--lisp/mh-e/mh-speed.el10
-rw-r--r--lisp/mh-e/mh-utils.el59
19 files changed, 288 insertions, 193 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index 25e102c117d..db31bf55b09 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,28 @@
12005-12-19 Bill Wohler <wohler@newt.com>
2
3 * mh-acros.el:
4 * mh-alias.el:
5 * mh-comp.el:
6 * mh-customize.el:
7 * mh-e.el:
8 * mh-funcs.el:
9 * mh-gnus.el:
10 * mh-identity.el:
11 * mh-inc.el:
12 * mh-index.el:
13 * mh-init.el:
14 * mh-junk.el:
15 * mh-mime.el:
16 * mh-pick.el:
17 * mh-print.el:
18 * mh-seq.el:
19 * mh-speed.el:
20 * mh-utils.el:
21 Follow commenting conventions. Don't use ;;; form so much, except
22 for headings. Precede headings with page feed. This was mostly
23 already done, so I made it a convention. Did not update copyright
24 on a couple of files since this was an insignificant change.
25
12005-12-18 Bill Wohler <wohler@newt.com> 262005-12-18 Bill Wohler <wohler@newt.com>
2 27
3 * mh-customize.el (mh-toolbar): Rename to mh-tool-bar. 28 * mh-customize.el (mh-toolbar): Rename to mh-tool-bar.
diff --git a/lisp/mh-e/mh-acros.el b/lisp/mh-e/mh-acros.el
index 8136c56ca90..5523f1cf46b 100644
--- a/lisp/mh-e/mh-acros.el
+++ b/lisp/mh-e/mh-acros.el
@@ -55,7 +55,7 @@ recognizes that and loads `cl' where appropriate."
55 `(require 'cl) 55 `(require 'cl)
56 `(eval-when-compile (require 'cl)))) 56 `(eval-when-compile (require 'cl))))
57 57
58;;; Macros to generate correct code for different emacs variants 58;; Macros to generate correct code for different emacs variants
59 59
60(defmacro mh-do-in-gnu-emacs (&rest body) 60(defmacro mh-do-in-gnu-emacs (&rest body)
61 "Execute BODY if in GNU Emacs." 61 "Execute BODY if in GNU Emacs."
@@ -144,11 +144,11 @@ Emacs 22."
144 144
145(provide 'mh-acros) 145(provide 'mh-acros)
146 146
147;;; Local Variables: 147;; Local Variables:
148;;; no-byte-compile: t 148;; no-byte-compile: t
149;;; indent-tabs-mode: nil 149;; indent-tabs-mode: nil
150;;; sentence-end-double-space: nil 150;; sentence-end-double-space: nil
151;;; End: 151;; End:
152 152
153;; arch-tag: b383b49a-494f-4ed0-a30a-cb6d5d2da4ff 153;; arch-tag: b383b49a-494f-4ed0-a30a-cb6d5d2da4ff
154;;; mh-acros.el ends here 154;;; mh-acros.el ends here
diff --git a/lisp/mh-e/mh-alias.el b/lisp/mh-e/mh-alias.el
index 5367d2cbc18..f82a0ea24dc 100644
--- a/lisp/mh-e/mh-alias.el
+++ b/lisp/mh-e/mh-alias.el
@@ -38,7 +38,10 @@
38 ; completing-read-multiple. 38 ; completing-read-multiple.
39(eval-when-compile (defvar mail-abbrev-syntax-table)) 39(eval-when-compile (defvar mail-abbrev-syntax-table))
40 40
41
42
41;;; Autoloads 43;;; Autoloads
44
42(eval-when (compile load eval) 45(eval-when (compile load eval)
43 (ignore-errors 46 (ignore-errors
44 (require 'mailabbrev) 47 (require 'mailabbrev)
@@ -71,6 +74,7 @@ listed in your `Aliasfile:' MH profile component are automatically included.
71You can update the alias list manually using \\[mh-alias-reload].") 74You can update the alias list manually using \\[mh-alias-reload].")
72 75
73 76
77
74;;; Alias Loading 78;;; Alias Loading
75 79
76(defun mh-alias-tstamp (arg) 80(defun mh-alias-tstamp (arg)
@@ -228,6 +232,7 @@ with no arguments, after the aliases have been loaded."
228 (mh-alias-reload))) 232 (mh-alias-reload)))
229 233
230 234
235
231;;; Alias Expansion 236;;; Alias Expansion
232 237
233(defun mh-alias-ali (alias &optional user) 238(defun mh-alias-ali (alias &optional user)
@@ -312,6 +317,7 @@ Blind aliases or users from /etc/passwd are not expanded."
312 (delete-region begin end) 317 (delete-region begin end)
313 (insert expansion))))) 318 (insert expansion)))))
314 319
320
315;;; Adding addresses to alias file. 321;;; Adding addresses to alias file.
316 322
317(defun mh-alias-suggest-alias (string &optional no-comma-swap) 323(defun mh-alias-suggest-alias (string &optional no-comma-swap)
@@ -653,10 +659,10 @@ name hint when filing messages."
653 659
654(provide 'mh-alias) 660(provide 'mh-alias)
655 661
656;;; Local Variables: 662;; Local Variables:
657;;; indent-tabs-mode: nil 663;; indent-tabs-mode: nil
658;;; sentence-end-double-space: nil 664;; sentence-end-double-space: nil
659;;; End: 665;; End:
660 666
661;;; arch-tag: 49879e46-5aa3-4569-bece-e5a58731d690 667;; arch-tag: 49879e46-5aa3-4569-bece-e5a58731d690
662;;; mh-alias.el ends here 668;;; mh-alias.el ends here
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
index a13fb102034..47999fbbeff 100644
--- a/lisp/mh-e/mh-comp.el
+++ b/lisp/mh-e/mh-comp.el
@@ -52,7 +52,9 @@
52(defvar mh-mml-mode-default) 52(defvar mh-mml-mode-default)
53(defvar mh-identity-menu) 53(defvar mh-identity-menu)
54 54
55
55;;; Autoloads 56;;; Autoloads
57
56(autoload 'mail-mode-fill-paragraph "sendmail") 58(autoload 'mail-mode-fill-paragraph "sendmail")
57(autoload 'mm-handle-displayed-p "mm-decode") 59(autoload 'mm-handle-displayed-p "mm-decode")
58 60
@@ -80,6 +82,8 @@ For Emacs 19's, the region need not be active (and typically isn't
80when this function is called. Also, the hook `sc-pre-hook' is run 82when this function is called. Also, the hook `sc-pre-hook' is run
81before, and `sc-post-hook' is run after the guts of this function.") 83before, and `sc-post-hook' is run after the guts of this function.")
82 84
85
86
83;;; Site customization (see also mh-utils.el): 87;;; Site customization (see also mh-utils.el):
84 88
85(defvar mh-send-prog "send" 89(defvar mh-send-prog "send"
@@ -91,6 +95,8 @@ Some sites need to change this because of a name conflict.")
91This allows transaction log to be visible if -watch, -verbose or -snoop are 95This allows transaction log to be visible if -watch, -verbose or -snoop are
92used.") 96used.")
93 97
98
99
94;;; Scan Line Formats 100;;; Scan Line Formats
95 101
96(defvar mh-note-repl ?- 102(defvar mh-note-repl ?-
@@ -824,7 +830,7 @@ Returns t if found, nil if not."
824 830
825(put 'mh-letter-mode 'mode-class 'special) 831(put 'mh-letter-mode 'mode-class 'special)
826 832
827;;; Menu extracted from mh-menubar.el V1.1 (31 July 2001) 833;; Menu extracted from mh-menubar.el V1.1 (31 July 2001)
828(eval-when-compile (defvar mh-letter-menu nil)) 834(eval-when-compile (defvar mh-letter-menu nil))
829(easy-menu-define 835(easy-menu-define
830 mh-letter-menu mh-letter-mode-map "Menu for MH-E letter mode." 836 mh-letter-menu mh-letter-mode-map "Menu for MH-E letter mode."
@@ -874,8 +880,11 @@ Returns t if found, nil if not."
874 mh-mh-to-mime-undo (equal mh-compose-insertion 'mh)] 880 mh-mh-to-mime-undo (equal mh-compose-insertion 'mh)]
875 ["Kill This Draft" mh-fully-kill-draft t])) 881 ["Kill This Draft" mh-fully-kill-draft t]))
876 882
883
884
877;;; Help Messages 885;;; Help Messages
878;;; Group messages logically, more or less. 886
887;; Group messages logically, more or less.
879(defvar mh-letter-mode-help-messages 888(defvar mh-letter-mode-help-messages
880 '((nil 889 '((nil
881 "Send letter: \\[mh-send-letter]" 890 "Send letter: \\[mh-send-letter]"
@@ -2026,8 +2035,11 @@ Otherwise return the empty string."
2026 (goto-char (point-max)) 2035 (goto-char (point-max))
2027 (mh-letter-next-header-field))) 2036 (mh-letter-next-header-field)))
2028 2037
2029;;; Build the letter-mode keymap: 2038
2030;;; If this changes, modify mh-letter-mode-help-messages accordingly, above. 2039
2040;;; Build mh-letter-mode keymap
2041
2042;; If this changes, modify mh-letter-mode-help-messages accordingly, above.
2031(gnus-define-keys mh-letter-mode-map 2043(gnus-define-keys mh-letter-mode-map
2032 " " mh-letter-complete-or-space 2044 " " mh-letter-complete-or-space
2033 "," mh-letter-confirm-address 2045 "," mh-letter-confirm-address
@@ -2089,10 +2101,10 @@ Otherwise return the empty string."
2089 2101
2090(provide 'mh-comp) 2102(provide 'mh-comp)
2091 2103
2092;;; Local Variables: 2104;; Local Variables:
2093;;; indent-tabs-mode: nil 2105;; indent-tabs-mode: nil
2094;;; sentence-end-double-space: nil 2106;; sentence-end-double-space: nil
2095;;; End: 2107;; End:
2096 2108
2097;;; arch-tag: 62865511-e610-4923-b0b5-f45a8ab70a34 2109;; arch-tag: 62865511-e610-4923-b0b5-f45a8ab70a34
2098;;; mh-comp.el ends here 2110;;; mh-comp.el ends here
diff --git a/lisp/mh-e/mh-customize.el b/lisp/mh-e/mh-customize.el
index e898022a6b6..2fc8cb1f438 100644
--- a/lisp/mh-e/mh-customize.el
+++ b/lisp/mh-e/mh-customize.el
@@ -83,6 +83,11 @@
83 (require 'mh-init) 83 (require 'mh-init)
84 (require 'mh-identity)) 84 (require 'mh-identity))
85 85
86;; For compiler warnings...
87(eval-when-compile
88 (defvar mh-show-buffer)
89 (defvar mh-show-folder-buffer))
90
86(defun mh-customize (&optional delete-other-windows-flag) 91(defun mh-customize (&optional delete-other-windows-flag)
87 "Customize MH-E variables. 92 "Customize MH-E variables.
88If optional argument DELETE-OTHER-WINDOWS-FLAG is non-nil, other windows in 93If optional argument DELETE-OTHER-WINDOWS-FLAG is non-nil, other windows in
@@ -94,11 +99,6 @@ the frame are removed."
94 99
95 100
96 101
97;;; For compiler warnings...
98(eval-when-compile
99 (defvar mh-show-buffer)
100 (defvar mh-show-folder-buffer))
101
102;;; MH-E Customization Groups 102;;; MH-E Customization Groups
103 103
104(defgroup mh-e nil 104(defgroup mh-e nil
@@ -217,6 +217,8 @@ mailutils."
217 :prefix "mh-" 217 :prefix "mh-"
218 :group 'mh-e) 218 :group 'mh-e)
219 219
220
221
220;;; Faces 222;;; Faces
221 223
222(defgroup mh-folder-faces nil 224(defgroup mh-folder-faces nil
@@ -998,7 +1000,7 @@ default). If you need to scan just the message 200, then use the range
998 1000
999;;; Scan Line Formats (:group 'mh-scan-line-formats) 1001;;; Scan Line Formats (:group 'mh-scan-line-formats)
1000 1002
1001;;; Forward definition to avoid compiler and runtime error. 1003;; Forward definition to avoid compiler and runtime error.
1002(defvar mh-scan-format-file t) 1004(defvar mh-scan-format-file t)
1003 1005
1004(defun mh-adaptive-cmd-note-flag-check (symbol value) 1006(defun mh-adaptive-cmd-note-flag-check (symbol value)
@@ -1163,9 +1165,9 @@ See also `mh-reply'."
1163 1165
1164;;; Sequences (:group 'mh-sequences) 1166;;; Sequences (:group 'mh-sequences)
1165 1167
1166;;; If `mh-unpropagated-sequences' becomes a defcustom, add the following to 1168;; If `mh-unpropagated-sequences' becomes a defcustom, add the following to
1167;;; the docstring: "Additional sequences that should not to be preserved can be 1169;; the docstring: "Additional sequences that should not to be preserved can be
1168;;; specified by setting `mh-unpropagated-sequences' appropriately." XXX 1170;; specified by setting `mh-unpropagated-sequences' appropriately." XXX
1169 1171
1170(defcustom mh-refile-preserves-sequences-flag t 1172(defcustom mh-refile-preserves-sequences-flag t
1171 "*Non-nil means that sequences are preserved when messages are refiled. 1173 "*Non-nil means that sequences are preserved when messages are refiled.
@@ -2394,6 +2396,8 @@ will be removed from the unseen sequence."
2394 2396
2395;;; Faces (:group 'mh-*-faces + group where faces described) 2397;;; Faces (:group 'mh-*-faces + group where faces described)
2396 2398
2399
2400
2397;;; Faces Used in Scan Listing (:group 'mh-folder-faces) 2401;;; Faces Used in Scan Listing (:group 'mh-folder-faces)
2398 2402
2399(defvar mh-folder-body-face 'mh-folder-body 2403(defvar mh-folder-body-face 'mh-folder-body
@@ -2758,10 +2762,10 @@ The background and foreground is used in the image."
2758 "Face used for the current folder when it has unread messages." 2762 "Face used for the current folder when it has unread messages."
2759 :group 'mh-speed-faces) 2763 :group 'mh-speed-faces)
2760 2764
2761;;; Local Variables: 2765;; Local Variables:
2762;;; indent-tabs-mode: nil 2766;; indent-tabs-mode: nil
2763;;; sentence-end-double-space: nil 2767;; sentence-end-double-space: nil
2764;;; End: 2768;; End:
2765 2769
2766;;; arch-tag: 778d2a20-82e2-4276-be9d-309386776a68 2770;; arch-tag: 778d2a20-82e2-4276-be9d-309386776a68
2767;;; mh-customize.el ends here 2771;;; mh-customize.el ends here
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el
index b1e9e14295d..6d179cd5e1b 100644
--- a/lisp/mh-e/mh-e.el
+++ b/lisp/mh-e/mh-e.el
@@ -105,11 +105,12 @@
105The string is displayed after the folder's name. nil for no annotation.") 105The string is displayed after the folder's name. nil for no annotation.")
106 106
107 107
108
108;;; Scan Line Formats 109;;; Scan Line Formats
109 110
110;;; Parameterize MH-E to work with different scan formats. The defaults work 111;; Parameterize MH-E to work with different scan formats. The defaults work
111;;; with the standard MH scan listings, in which the first 4 characters on 112;; with the standard MH scan listings, in which the first 4 characters on
112;;; the line are the message number, followed by two places for notations. 113;; the line are the message number, followed by two places for notations.
113 114
114;; The following scan formats are passed to the scan program if the setting of 115;; The following scan formats are passed to the scan program if the setting of
115;; `mh-scan-format-file' is t. They are identical except the later one makes 116;; `mh-scan-format-file' is t. They are identical except the later one makes
@@ -483,6 +484,8 @@ is done highlighting.")
483 484
484(defvar mh-colors-available-flag nil) ;Are colors available? 485(defvar mh-colors-available-flag nil) ;Are colors available?
485 486
487
488
486;;; Macros and generic functions: 489;;; Macros and generic functions:
487 490
488(defun mh-mapc (function list) 491(defun mh-mapc (function list)
@@ -1507,14 +1510,16 @@ Make it the current folder."
1507 (mh-index-read-data)) 1510 (mh-index-read-data))
1508 (mh-make-folder-mode-line)) 1511 (mh-make-folder-mode-line))
1509 1512
1510;;; Ensure new buffers won't get this mode if default-major-mode is nil. 1513;; Ensure new buffers won't get this mode if default-major-mode is nil.
1511(put 'mh-folder-mode 'mode-class 'special) 1514(put 'mh-folder-mode 'mode-class 'special)
1512 1515
1513 1516
1514 1517
1515;;; Menu extracted from mh-menubar.el V1.1 (31 July 2001) 1518;;; Build mh-folder-mode menu
1516;;; Menus for folder mode: folder, message, sequence (in that order) 1519
1517;;; folder-mode "Sequence" menu 1520;; Menu extracted from mh-menubar.el V1.1 (31 July 2001)
1521;; Menus for folder mode: folder, message, sequence (in that order)
1522;; folder-mode "Sequence" menu
1518(easy-menu-define 1523(easy-menu-define
1519 mh-folder-sequence-menu mh-folder-mode-map "Menu for MH-E folder-sequence." 1524 mh-folder-sequence-menu mh-folder-mode-map "Menu for MH-E folder-sequence."
1520 '("Sequence" 1525 '("Sequence"
@@ -1535,7 +1540,7 @@ Make it the current folder."
1535 "--" 1540 "--"
1536 ["Push State Out to MH" mh-update-sequences t])) 1541 ["Push State Out to MH" mh-update-sequences t]))
1537 1542
1538;;; folder-mode "Message" menu 1543;; folder-mode "Message" menu
1539(easy-menu-define 1544(easy-menu-define
1540 mh-folder-message-menu mh-folder-mode-map "Menu for MH-E folder-message." 1545 mh-folder-message-menu mh-folder-mode-map "Menu for MH-E folder-message."
1541 '("Message" 1546 '("Message"
@@ -1568,7 +1573,7 @@ Make it the current folder."
1568 ["Unpack Uuencoded Message..." mh-store-msg (mh-get-msg-num nil)] 1573 ["Unpack Uuencoded Message..." mh-store-msg (mh-get-msg-num nil)]
1569 ["Burst Digest Message" mh-burst-digest (mh-get-msg-num nil)])) 1574 ["Burst Digest Message" mh-burst-digest (mh-get-msg-num nil)]))
1570 1575
1571;;; folder-mode "Folder" menu 1576;; folder-mode "Folder" menu
1572(easy-menu-define 1577(easy-menu-define
1573 mh-folder-folder-menu mh-folder-mode-map "Menu for MH-E folder." 1578 mh-folder-folder-menu mh-folder-mode-map "Menu for MH-E folder."
1574 '("Folder" 1579 '("Folder"
@@ -1786,7 +1791,7 @@ DESKTOP-BUFFER-MISC holds a list of miscellaneous info used by the
1786 (mh-visit-folder desktop-buffer-name) 1791 (mh-visit-folder desktop-buffer-name)
1787 (current-buffer)) 1792 (current-buffer))
1788 1793
1789;;; desktop-buffer-mode-handlers appeared in Emacs 22. 1794;; desktop-buffer-mode-handlers appeared in Emacs 22.
1790(if (fboundp 'desktop-buffer-mode-handlers) 1795(if (fboundp 'desktop-buffer-mode-handlers)
1791 (add-to-list 'desktop-buffer-mode-handlers 1796 (add-to-list 'desktop-buffer-mode-handlers
1792 '(mh-folder-mode . mh-restore-desktop-buffer))) 1797 '(mh-folder-mode . mh-restore-desktop-buffer)))
@@ -2478,7 +2483,7 @@ If INCLUDE-INTERNAL-FLAG non-nil, include MH-E internal sequences in list."
2478 2483
2479 2484
2480 2485
2481;;; Build the folder-mode keymap: 2486;;; Build mh-folder-mode keymap:
2482 2487
2483(suppress-keymap mh-folder-mode-map) 2488(suppress-keymap mh-folder-mode-map)
2484 2489
@@ -2631,15 +2636,15 @@ If INCLUDE-INTERNAL-FLAG non-nil, include MH-E internal sequences in list."
2631 2636
2632;;; Help Messages 2637;;; Help Messages
2633 2638
2634;;; If you add a new prefix, add appropriate text to the nil key. 2639;; If you add a new prefix, add appropriate text to the nil key.
2635;;; 2640;;
2636;;; In general, messages are grouped logically. Taking the main commands for 2641;; In general, messages are grouped logically. Taking the main commands for
2637;;; example, the first line is "ways to view messages," the second line is 2642;; example, the first line is "ways to view messages," the second line is
2638;;; "things you can do with messages", and the third is "composing" messages. 2643;; "things you can do with messages", and the third is "composing" messages.
2639;;; 2644;;
2640;;; When adding a new prefix, ensure that the help message contains "what" the 2645;; When adding a new prefix, ensure that the help message contains "what" the
2641;;; prefix is for. For example, if the word "folder" were not present in the 2646;; prefix is for. For example, if the word "folder" were not present in the
2642;;; `F' entry, it would not be clear what these commands operated upon. 2647;; `F' entry, it would not be clear what these commands operated upon.
2643(defvar mh-help-messages 2648(defvar mh-help-messages
2644 '((nil "[i]nc, [.]show, [,]show all, [n]ext, [p]revious,\n" 2649 '((nil "[i]nc, [.]show, [,]show all, [n]ext, [p]revious,\n"
2645 "[d]elete, [o]refile, e[x]ecute,\n" 2650 "[d]elete, [o]refile, e[x]ecute,\n"
@@ -2682,10 +2687,10 @@ well.")
2682 2687
2683(provide 'mh-e) 2688(provide 'mh-e)
2684 2689
2685;;; Local Variables: 2690;; Local Variables:
2686;;; indent-tabs-mode: nil 2691;; indent-tabs-mode: nil
2687;;; sentence-end-double-space: nil 2692;; sentence-end-double-space: nil
2688;;; End: 2693;; End:
2689 2694
2690;;; arch-tag: cce884de-bd37-4104-9963-e4439d5ed22b 2695;; arch-tag: cce884de-bd37-4104-9963-e4439d5ed22b
2691;;; mh-e.el ends here 2696;;; mh-e.el ends here
diff --git a/lisp/mh-e/mh-funcs.el b/lisp/mh-e/mh-funcs.el
index ca2f7333eb8..813d8a07b6c 100644
--- a/lisp/mh-e/mh-funcs.el
+++ b/lisp/mh-e/mh-funcs.el
@@ -39,6 +39,8 @@
39(mh-require-cl) 39(mh-require-cl)
40(require 'mh-e) 40(require 'mh-e)
41 41
42
43
42;;; Scan Line Formats 44;;; Scan Line Formats
43 45
44(defvar mh-note-copied "C" 46(defvar mh-note-copied "C"
@@ -47,6 +49,8 @@
47(defvar mh-note-printed "P" 49(defvar mh-note-printed "P"
48 "Messages that have been printed are marked by this character.") 50 "Messages that have been printed are marked by this character.")
49 51
52
53
50;;; Functions 54;;; Functions
51 55
52;;;###mh-autoload 56;;;###mh-autoload
@@ -411,10 +415,10 @@ Default directory is the last directory used, or initially the value of
411 415
412(provide 'mh-funcs) 416(provide 'mh-funcs)
413 417
414;;; Local Variables: 418;; Local Variables:
415;;; indent-tabs-mode: nil 419;; indent-tabs-mode: nil
416;;; sentence-end-double-space: nil 420;; sentence-end-double-space: nil
417;;; End: 421;; End:
418 422
419;;; arch-tag: 1936c4f1-4843-438e-bc4b-a63bb75a7762 423;; arch-tag: 1936c4f1-4843-438e-bc4b-a63bb75a7762
420;;; mh-funcs.el ends here 424;;; mh-funcs.el ends here
diff --git a/lisp/mh-e/mh-gnus.el b/lisp/mh-e/mh-gnus.el
index 23209275d12..71220e2dd3d 100644
--- a/lisp/mh-e/mh-gnus.el
+++ b/lisp/mh-e/mh-gnus.el
@@ -30,8 +30,8 @@
30 30
31;;; Code: 31;;; Code:
32 32
33;;; Load libraries in a non-fatal way in order to see if certain functions are 33;; Load libraries in a non-fatal way in order to see if certain functions are
34;;; pre-defined. 34;; pre-defined.
35(load "mailabbrev" t t) 35(load "mailabbrev" t t)
36(load "mailcap" t t) 36(load "mailcap" t t)
37(load "mm-decode" t t) 37(load "mm-decode" t t)
@@ -147,10 +147,10 @@ BODY."
147 disposition 147 disposition
148 default))) 148 default)))
149 149
150;;; This is mm-save-part from Gnus 5.10 since that function in emacs21.2 is 150;; This is mm-save-part from Gnus 5.10 since that function in emacs21.2 is
151;;; buggy (the args to read-file-name are incorrect). When all supported 151;; buggy (the args to read-file-name are incorrect). When all supported
152;;; versions of Emacs come with at least Gnus 5.10, we can delete this 152;; versions of Emacs come with at least Gnus 5.10, we can delete this
153;;; function and rename calls to mh-mm-save-part to mm-save-part. 153;; function and rename calls to mh-mm-save-part to mm-save-part.
154(defun mh-mm-save-part (handle) 154(defun mh-mm-save-part (handle)
155 "Write HANDLE to a file." 155 "Write HANDLE to a file."
156 (let ((name (mail-content-type-get (mm-handle-type handle) 'name)) 156 (let ((name (mail-content-type-get (mm-handle-type handle) 'name))
@@ -181,12 +181,12 @@ BODY."
181 181
182(provide 'mh-gnus) 182(provide 'mh-gnus)
183 183
184;;; Local Variables: 184;; Local Variables:
185;;; no-byte-compile: t 185;; no-byte-compile: t
186;;; no-update-autoloads: t 186;; no-update-autoloads: t
187;;; indent-tabs-mode: nil 187;; indent-tabs-mode: nil
188;;; sentence-end-double-space: nil 188;; sentence-end-double-space: nil
189;;; End: 189;; End:
190 190
191;; arch-tag: 1e3638af-cad3-4c69-8427-bc8eb6e5e4fa 191;; arch-tag: 1e3638af-cad3-4c69-8427-bc8eb6e5e4fa
192;;; mh-gnus.el ends here 192;;; mh-gnus.el ends here
diff --git a/lisp/mh-e/mh-identity.el b/lisp/mh-e/mh-identity.el
index 9d81a2acbe2..1e621af7df9 100644
--- a/lisp/mh-e/mh-identity.el
+++ b/lisp/mh-e/mh-identity.el
@@ -282,10 +282,10 @@ If the field wasn't present, it is added to the bottom of the header."
282 282
283(provide 'mh-identity) 283(provide 'mh-identity)
284 284
285;;; Local Variables: 285;; Local Variables:
286;;; indent-tabs-mode: nil 286;; indent-tabs-mode: nil
287;;; sentence-end-double-space: nil 287;; sentence-end-double-space: nil
288;;; End: 288;; End:
289 289
290;;; arch-tag: 07d66ef6-8726-4ac6-9ecf-e566cd5bfb45 290;; arch-tag: 07d66ef6-8726-4ac6-9ecf-e566cd5bfb45
291;;; mh-identity.el ends here 291;;; mh-identity.el ends here
diff --git a/lisp/mh-e/mh-inc.el b/lisp/mh-e/mh-inc.el
index 9ccec70e969..d5becd26ce4 100644
--- a/lisp/mh-e/mh-inc.el
+++ b/lisp/mh-e/mh-inc.el
@@ -98,10 +98,10 @@ This is called after 'customize is used to alter `mh-inc-spool-list'."
98 98
99(provide 'mh-inc) 99(provide 'mh-inc)
100 100
101;;; Local Variables: 101;; Local Variables:
102;;; indent-tabs-mode: nil 102;; indent-tabs-mode: nil
103;;; sentence-end-double-space: nil 103;; sentence-end-double-space: nil
104;;; End: 104;; End:
105 105
106;;; arch-tag: 3713cf2a-6082-4cb4-8ce2-99d9acaba835 106;; arch-tag: 3713cf2a-6082-4cb4-8ce2-99d9acaba835
107;;; mh-inc.el ends here 107;;; mh-inc.el ends here
diff --git a/lisp/mh-e/mh-index.el b/lisp/mh-e/mh-index.el
index 6b429773945..e261b47b753 100644
--- a/lisp/mh-e/mh-index.el
+++ b/lisp/mh-e/mh-index.el
@@ -26,18 +26,18 @@
26 26
27;;; Commentary: 27;;; Commentary:
28 28
29;;; (1) The following search engines are supported: 29;; (1) The following search engines are supported:
30;;; swish++ 30;; swish++
31;;; swish-e 31;; swish-e
32;;; mairix 32;; mairix
33;;; namazu 33;; namazu
34;;; pick 34;; pick
35;;; grep 35;; grep
36;;; 36;;
37;;; (2) To use this package, you first have to build an index. Please read 37;; (2) To use this package, you first have to build an index. Please read
38;;; the documentation for `mh-index-search' to get started. That 38;; the documentation for `mh-index-search' to get started. That
39;;; documentation will direct you to the specific instructions for your 39;; documentation will direct you to the specific instructions for your
40;;; particular indexer. 40;; particular indexer.
41 41
42;;; Change Log: 42;;; Change Log:
43 43
@@ -91,17 +91,17 @@
91 91
92 92
93 93
94;;; A few different checksum programs are supported. The supported programs 94;; A few different checksum programs are supported. The supported programs
95;;; are: 95;; are:
96;;; 1. md5sum 96;; 1. md5sum
97;;; 2. md5 97;; 2. md5
98;;; 3. openssl 98;; 3. openssl
99;;; 99;;
100;;; To add support for your favorite checksum program add a clause to the cond 100;; To add support for your favorite checksum program add a clause to the cond
101;;; statement in mh-checksum-choose. This should set the variable 101;; statement in mh-checksum-choose. This should set the variable
102;;; mh-checksum-cmd to the command line needed to run the checsum program and 102;; mh-checksum-cmd to the command line needed to run the checsum program and
103;;; should set mh-checksum-parser to a function which returns a cons cell 103;; should set mh-checksum-parser to a function which returns a cons cell
104;;; containing the message number and checksum string. 104;; containing the message number and checksum string.
105 105
106(defvar mh-checksum-cmd) 106(defvar mh-checksum-cmd)
107(defvar mh-checksum-parser) 107(defvar mh-checksum-parser)
@@ -152,8 +152,7 @@
152 152
153 153
154 154
155;;; Make sure that we don't produce too long a command line. 155;; Make sure that we don't produce too long a command line.
156
157(defvar mh-index-max-cmdline-args 500 156(defvar mh-index-max-cmdline-args 500
158 "Maximum number of command line args.") 157 "Maximum number of command line args.")
159 158
@@ -1653,10 +1652,10 @@ system."
1653 1652
1654(provide 'mh-index) 1653(provide 'mh-index)
1655 1654
1656;;; Local Variables: 1655;; Local Variables:
1657;;; indent-tabs-mode: nil 1656;; indent-tabs-mode: nil
1658;;; sentence-end-double-space: nil 1657;; sentence-end-double-space: nil
1659;;; End: 1658;; End:
1660 1659
1661;;; arch-tag: 607762ad-0dff-4fe1-a27e-6c0dde0dcc47 1660;; arch-tag: 607762ad-0dff-4fe1-a27e-6c0dde0dcc47
1662;;; mh-index ends here 1661;;; mh-index ends here
diff --git a/lisp/mh-e/mh-init.el b/lisp/mh-e/mh-init.el
index 79f779810e2..1bafe960eff 100644
--- a/lisp/mh-e/mh-init.el
+++ b/lisp/mh-e/mh-init.el
@@ -1,4 +1,4 @@
1;;; mh-init.el --- MH-E initialization. 1;;; mh-init.el --- MH-E initialization
2 2
3;; Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. 3;; Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
4 4
@@ -43,14 +43,14 @@
43(mh-require-cl) 43(mh-require-cl)
44(require 'mh-utils) 44(require 'mh-utils)
45 45
46;;; Avoid compiler warnings. 46;; Avoid compiler warnings.
47(eval-when-compile (defvar image-load-path)) 47(eval-when-compile (defvar image-load-path))
48 48
49;;; Set for local environment: 49;; Set for local environment:
50;;; mh-progs and mh-lib used to be set in paths.el, which tried to 50;; mh-progs and mh-lib used to be set in paths.el, which tried to
51;;; figure out at build time which of several possible directories MH 51;; figure out at build time which of several possible directories MH
52;;; was installed into. But if you installed MH after building Emacs, 52;; was installed into. But if you installed MH after building Emacs,
53;;; this would almost certainly be wrong, so now we do it at run time. 53;; this would almost certainly be wrong, so now we do it at run time.
54 54
55(defvar mh-progs nil 55(defvar mh-progs nil
56 "Directory containing MH commands, such as inc, repl, and rmm.") 56 "Directory containing MH commands, such as inc, repl, and rmm.")
@@ -350,10 +350,10 @@ single \"class\" requirement with a \"color\" item, renames the requirement to
350 350
351(provide 'mh-init) 351(provide 'mh-init)
352 352
353;;; Local Variables: 353;; Local Variables:
354;;; indent-tabs-mode: nil 354;; indent-tabs-mode: nil
355;;; sentence-end-double-space: nil 355;; sentence-end-double-space: nil
356;;; End: 356;; End:
357 357
358;; arch-tag: e8372aeb-d803-42b1-9c95-3c93ad22f63c 358;; arch-tag: e8372aeb-d803-42b1-9c95-3c93ad22f63c
359;;; mh-init.el ends here 359;;; mh-init.el ends here
diff --git a/lisp/mh-e/mh-junk.el b/lisp/mh-e/mh-junk.el
index 5cbc7b77b47..29caef6cae7 100644
--- a/lisp/mh-e/mh-junk.el
+++ b/lisp/mh-e/mh-junk.el
@@ -420,10 +420,10 @@ See `mh-spamprobe-blacklist' for more information."
420 420
421(provide 'mh-junk) 421(provide 'mh-junk)
422 422
423;;; Local Variables: 423;; Local Variables:
424;;; indent-tabs-mode: nil 424;; indent-tabs-mode: nil
425;;; sentence-end-double-space: nil 425;; sentence-end-double-space: nil
426;;; End: 426;; End:
427 427
428;;; arch-tag: 603335f1-77ff-4306-8828-5d3dad51abe1 428;; arch-tag: 603335f1-77ff-4306-8828-5d3dad51abe1
429;;; mh-junk.el ends here 429;;; mh-junk.el ends here
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el
index 3d55c5cded1..bb2fc2b8f50 100644
--- a/lisp/mh-e/mh-mime.el
+++ b/lisp/mh-e/mh-mime.el
@@ -219,9 +219,9 @@ Obsolete; use `mailcap-mime-types'.
219 219
220See also \\[mh-mh-to-mime].") 220See also \\[mh-mh-to-mime].")
221 221
222;;; Delete mh-minibuffer-read-type and mh-mime-content-types and use 222;; Delete mh-minibuffer-read-type and mh-mime-content-types and use
223;;; mml-minibuffer-read-type when Emacs20 is no longer supported unless we 223;; mml-minibuffer-read-type when Emacs20 is no longer supported unless we
224;;; think (mh-file-mime-type) is better than (mm-default-file-encoding). 224;; think (mh-file-mime-type) is better than (mm-default-file-encoding).
225 225
226(defun mh-minibuffer-read-type (filename &optional default) 226(defun mh-minibuffer-read-type (filename &optional default)
227 "Return the content type associated with the given FILENAME. 227 "Return the content type associated with the given FILENAME.
@@ -1347,9 +1347,9 @@ Parameter EL is unused."
1347 (mm-set-handle-multipart-parameter 1347 (mm-set-handle-multipart-parameter
1348 handle 'mh-region (cons (point-min-marker) (point-max-marker))))) 1348 handle 'mh-region (cons (point-min-marker) (point-max-marker)))))
1349 1349
1350;;; I rewrote the security part because Gnus doesn't seem to ever minimize 1350;; I rewrote the security part because Gnus doesn't seem to ever minimize
1351;;; the button. That is once the mime-security button is pressed there seems 1351;; the button. That is once the mime-security button is pressed there seems
1352;;; to be no way of getting rid of the inserted text. 1352;; to be no way of getting rid of the inserted text.
1353(defun mh-mime-security-show-details (handle) 1353(defun mh-mime-security-show-details (handle)
1354 "Toggle display of detailed security info for HANDLE." 1354 "Toggle display of detailed security info for HANDLE."
1355 (let ((details (mm-handle-multipart-ctl-parameter handle 'gnus-details))) 1355 (let ((details (mm-handle-multipart-ctl-parameter handle 'gnus-details)))
@@ -1509,10 +1509,10 @@ message multiple times."
1509 1509
1510(provide 'mh-mime) 1510(provide 'mh-mime)
1511 1511
1512;;; Local Variables: 1512;; Local Variables:
1513;;; indent-tabs-mode: nil 1513;; indent-tabs-mode: nil
1514;;; sentence-end-double-space: nil 1514;; sentence-end-double-space: nil
1515;;; End: 1515;; End:
1516 1516
1517;;; arch-tag: 0dd36518-1b64-4a84-8f4e-59f422d3f002 1517;; arch-tag: 0dd36518-1b64-4a84-8f4e-59f422d3f002
1518;;; mh-mime.el ends here 1518;;; mh-mime.el ends here
diff --git a/lisp/mh-e/mh-pick.el b/lisp/mh-e/mh-pick.el
index eb825fe462f..a20172ba6f3 100644
--- a/lisp/mh-e/mh-pick.el
+++ b/lisp/mh-e/mh-pick.el
@@ -158,15 +158,22 @@ is used when the search folder is dismissed."
158 (add-text-properties (point) (1- (line-end-position)) '(read-only t)) 158 (add-text-properties (point) (1- (line-end-position)) '(read-only t))
159 (goto-char (point-max))) 159 (goto-char (point-max)))
160 160
161;;; Menu extracted from mh-menubar.el V1.1 (31 July 2001) 161
162
163;;; Build mh-pick-mode menu
164
165;; Menu extracted from mh-menubar.el V1.1 (31 July 2001)
162(easy-menu-define 166(easy-menu-define
163 mh-pick-menu mh-pick-mode-map "Menu for MH-E pick-mode" 167 mh-pick-menu mh-pick-mode-map "Menu for MH-E pick-mode"
164 '("Pick" 168 '("Pick"
165 ["Execute the Search" mh-pick-do-search t])) 169 ["Execute the Search" mh-pick-do-search t]))
166 170
167 171
172
173
168;;; Help Messages 174;;; Help Messages
169;;; Group messages logically, more or less. 175
176;; Group messages logically, more or less.
170(defvar mh-pick-mode-help-messages 177(defvar mh-pick-mode-help-messages
171 '((nil 178 '((nil
172 "Search messages using pick: \\[mh-pick-do-search]\n" 179 "Search messages using pick: \\[mh-pick-do-search]\n"
@@ -351,7 +358,8 @@ COMPONENT is the component to search."
351 358
352 359
353;;; Build the pick-mode keymap: 360;;; Build the pick-mode keymap:
354;;; If this changes, modify mh-pick-mode-help-messages accordingly, above. 361
362;; If this changes, modify mh-pick-mode-help-messages accordingly, above.
355(gnus-define-keys mh-pick-mode-map 363(gnus-define-keys mh-pick-mode-map
356 "\C-c?" mh-help 364 "\C-c?" mh-help
357 "\C-c\C-i" mh-index-do-search 365 "\C-c\C-i" mh-index-do-search
@@ -374,10 +382,10 @@ COMPONENT is the component to search."
374 382
375(provide 'mh-pick) 383(provide 'mh-pick)
376 384
377;;; Local Variables: 385;; Local Variables:
378;;; indent-tabs-mode: nil 386;; indent-tabs-mode: nil
379;;; sentence-end-double-space: nil 387;; sentence-end-double-space: nil
380;;; End: 388;; End:
381 389
382;;; arch-tag: aef2b271-7768-42bd-a782-9a14ba9f83f7 390;; arch-tag: aef2b271-7768-42bd-a782-9a14ba9f83f7
383;;; mh-pick.el ends here 391;;; mh-pick.el ends here
diff --git a/lisp/mh-e/mh-print.el b/lisp/mh-e/mh-print.el
index cc35926aecc..acca58c494f 100644
--- a/lisp/mh-e/mh-print.el
+++ b/lisp/mh-e/mh-print.el
@@ -183,7 +183,7 @@ best. You change this setting permanently by customizing the option
183 (setq mh-ps-print-color-option nil) 183 (setq mh-ps-print-color-option nil)
184 (message "Colors will not be printed")))) 184 (message "Colors will not be printed"))))
185 185
186;;; Old non-PS based printing 186;; Old non-PS based printing
187;;;###mh-autoload 187;;;###mh-autoload
188(defun mh-print-msg (range) 188(defun mh-print-msg (range)
189 "Print RANGE the old fashioned way\\<mh-folder-mode-map>. 189 "Print RANGE the old fashioned way\\<mh-folder-mode-map>.
@@ -242,10 +242,10 @@ Consider using \\[mh-ps-print-msg] instead."
242 242
243(provide 'mh-print) 243(provide 'mh-print)
244 244
245;;; Local Variables: 245;; Local Variables:
246;;; indent-tabs-mode: nil 246;; indent-tabs-mode: nil
247;;; sentence-end-double-space: nil 247;; sentence-end-double-space: nil
248;;; End: 248;; End:
249 249
250;; arch-tag: 8d84d50b-2a49-4d0d-b51e-ba9c9b6fc679 250;; arch-tag: 8d84d50b-2a49-4d0d-b51e-ba9c9b6fc679
251;;; mh-print.el ends here 251;;; mh-print.el ends here
diff --git a/lisp/mh-e/mh-seq.el b/lisp/mh-e/mh-seq.el
index 795970d3739..4942df58f71 100644
--- a/lisp/mh-e/mh-seq.el
+++ b/lisp/mh-e/mh-seq.el
@@ -78,7 +78,10 @@
78;; Shush the byte-compiler 78;; Shush the byte-compiler
79(defvar tool-bar-mode) 79(defvar tool-bar-mode)
80 80
81
82
81;;; Data structures (used in message threading)... 83;;; Data structures (used in message threading)...
84
82(mh-defstruct (mh-thread-message (:conc-name mh-message-) 85(mh-defstruct (mh-thread-message (:conc-name mh-message-)
83 (:constructor mh-thread-make-message)) 86 (:constructor mh-thread-make-message))
84 (id nil) 87 (id nil)
@@ -91,15 +94,20 @@
91 message parent children 94 message parent children
92 (real-child-p t)) 95 (real-child-p t))
93 96
97
94 98
95;;; Internal variables: 99;;; Internal variables:
100
96(defvar mh-last-seq-used nil 101(defvar mh-last-seq-used nil
97 "Name of seq to which a msg was last added.") 102 "Name of seq to which a msg was last added.")
98 103
99(defvar mh-non-seq-mode-line-annotation nil 104(defvar mh-non-seq-mode-line-annotation nil
100 "Saved value of `mh-mode-line-annotation' when narrowed to a seq.") 105 "Saved value of `mh-mode-line-annotation' when narrowed to a seq.")
101 106
107
108
102;;; Maps and hashes... 109;;; Maps and hashes...
110
103(defvar mh-thread-id-hash nil 111(defvar mh-thread-id-hash nil
104 "Hashtable used to canonicalize message identifiers.") 112 "Hashtable used to canonicalize message identifiers.")
105(defvar mh-thread-subject-hash nil 113(defvar mh-thread-subject-hash nil
@@ -377,9 +385,10 @@ refiled are present in `mh-refile-list'."
377 385
378 386
379 387
380;;; Commands to manipulate sequences. Sequences are stored in an alist 388;;; Commands to manipulate sequences.
381;;; of the form: 389
382;;; ((seq-name msgs ...) (seq-name msgs ...) ...) 390;; Sequences are stored in an alist of the form:
391;; ((seq-name msgs ...) (seq-name msgs ...) ...)
383 392
384(defvar mh-sequence-history ()) 393(defvar mh-sequence-history ())
385 394
@@ -412,7 +421,10 @@ defaults to the first sequence containing the current message."
412 (error "No messages in sequence `%s'" seq)) 421 (error "No messages in sequence `%s'" seq))
413 seq)) 422 seq))
414 423
424
425
415;;; Functions to read ranges with completion... 426;;; Functions to read ranges with completion...
427
416(defvar mh-range-seq-names) 428(defvar mh-range-seq-names)
417(defvar mh-range-history ()) 429(defvar mh-range-history ())
418(defvar mh-range-completion-map (copy-keymap minibuffer-local-completion-map)) 430(defvar mh-range-completion-map (copy-keymap minibuffer-local-completion-map))
@@ -702,11 +714,10 @@ a uniform interface to MH-E functions."
702 714
703 715
704 716
705;;; Commands to handle new 'subject sequence. 717;;; Commands to handle new 'subject sequence ("Poor man's threading" by psg)
706;;; Or "Poor man's threading" by psg.
707 718
708;;; XXX: The function mh-subject-to-sequence-unthreaded uses the magic number 719;; XXX: The function mh-subject-to-sequence-unthreaded uses the magic number
709;;; 41 for the max size of the subject part. Avoiding this would be desirable. 720;; 41 for the max size of the subject part. Avoiding this would be desirable.
710(defun mh-subject-to-sequence (all) 721(defun mh-subject-to-sequence (all)
711 "Put all following messages with same subject in sequence 'subject. 722 "Put all following messages with same subject in sequence 'subject.
712If arg ALL is t, move to beginning of folder buffer to collect all messages. 723If arg ALL is t, move to beginning of folder buffer to collect all messages.
@@ -970,6 +981,8 @@ command behaves like \\[mh-thread-delete]."
970 (mh-thread-delete) 981 (mh-thread-delete)
971 (mh-delete-subject))) 982 (mh-delete-subject)))
972 983
984
985
973;;; Message threading: 986;;; Message threading:
974 987
975(defmacro mh-thread-initialize-hash (var test) 988(defmacro mh-thread-initialize-hash (var test)
@@ -1745,10 +1758,10 @@ messages. When you want to widen the view to all your messages again, use
1745 1758
1746(provide 'mh-seq) 1759(provide 'mh-seq)
1747 1760
1748;;; Local Variables: 1761;; Local Variables:
1749;;; indent-tabs-mode: nil 1762;; indent-tabs-mode: nil
1750;;; sentence-end-double-space: nil 1763;; sentence-end-double-space: nil
1751;;; End: 1764;; End:
1752 1765
1753;;; arch-tag: 8e952711-01a2-485b-bf21-c9e3ad4de942 1766;; arch-tag: 8e952711-01a2-485b-bf21-c9e3ad4de942
1754;;; mh-seq.el ends here 1767;;; mh-seq.el ends here
diff --git a/lisp/mh-e/mh-speed.el b/lisp/mh-e/mh-speed.el
index 4b33a81a7e9..64aa84fa8d8 100644
--- a/lisp/mh-e/mh-speed.el
+++ b/lisp/mh-e/mh-speed.el
@@ -558,10 +558,10 @@ The function invalidates the latest ancestor that is present."
558 558
559(provide 'mh-speed) 559(provide 'mh-speed)
560 560
561;;; Local Variables: 561;; Local Variables:
562;;; indent-tabs-mode: nil 562;; indent-tabs-mode: nil
563;;; sentence-end-double-space: nil 563;; sentence-end-double-space: nil
564;;; End: 564;; End:
565 565
566;;; arch-tag: d38ddcd4-3c00-4e37-99bf-8b89dda7b32c 566;; arch-tag: d38ddcd4-3c00-4e37-99bf-8b89dda7b32c
567;;; mh-speed.el ends here 567;;; mh-speed.el ends here
diff --git a/lisp/mh-e/mh-utils.el b/lisp/mh-e/mh-utils.el
index e6a207a2e0b..e39d141b70b 100644
--- a/lisp/mh-e/mh-utils.el
+++ b/lisp/mh-e/mh-utils.el
@@ -62,7 +62,10 @@
62(defvar font-lock-defaults) 62(defvar font-lock-defaults)
63(defvar mark-active) 63(defvar mark-active)
64 64
65
66
65;;; Autoloads 67;;; Autoloads
68
66(autoload 'gnus-article-highlight-citation "gnus-cite") 69(autoload 'gnus-article-highlight-citation "gnus-cite")
67(autoload 'message-fetch-field "message") 70(autoload 'message-fetch-field "message")
68(autoload 'message-tokenize-header "message") 71(autoload 'message-tokenize-header "message")
@@ -70,7 +73,10 @@
70(unless (fboundp 'make-hash-table) 73(unless (fboundp 'make-hash-table)
71 (autoload 'make-hash-table "cl")) 74 (autoload 'make-hash-table "cl"))
72 75
76
77
73;;; CL Replacements 78;;; CL Replacements
79
74(defun mh-search-from-end (char string) 80(defun mh-search-from-end (char string)
75 "Return the position of last occurrence of CHAR in STRING. 81 "Return the position of last occurrence of CHAR in STRING.
76If CHAR is not present in STRING then return nil. The function is used in lieu 82If CHAR is not present in STRING then return nil. The function is used in lieu
@@ -79,10 +85,11 @@ of `search' in the CL package."
79 when (equal (aref string index) char) return index 85 when (equal (aref string index) char) return index
80 finally return nil)) 86 finally return nil))
81 87
82;;; Additional header fields that might someday be added: 88;; Additional header fields that might someday be added:
83;;; "Sender: " "Reply-to: " 89;; "Sender: " "Reply-to: "
84 90
85 91
92
86;;; Scan Line Formats 93;;; Scan Line Formats
87 94
88(defvar mh-scan-msg-number-regexp "^ *\\([0-9]+\\)" 95(defvar mh-scan-msg-number-regexp "^ *\\([0-9]+\\)"
@@ -171,7 +178,8 @@ Use `mh-signature-separator-regexp' when searching for a separator.")
171 ; this number 178 ; this number
172 (part-index-hash (make-hash-table))) ; Avoid incrementing the part number 179 (part-index-hash (make-hash-table))) ; Avoid incrementing the part number
173 ; for nested messages 180 ; for nested messages
174;;; This has to be a macro, since we do: (setf (mh-buffer-data) ...) 181
182;; This has to be a macro, since we do: (setf (mh-buffer-data) ...)
175(defmacro mh-buffer-data () 183(defmacro mh-buffer-data ()
176 "Convenience macro to get the MIME data structures of the current buffer." 184 "Convenience macro to get the MIME data structures of the current buffer."
177 `(gethash (current-buffer) mh-globals-hash)) 185 `(gethash (current-buffer) mh-globals-hash))
@@ -457,6 +465,8 @@ about the fontification operation."
457 (gnus-article-highlight-citation t) 465 (gnus-article-highlight-citation t)
458 (set-buffer-modified-p modified)))) 466 (set-buffer-modified-p modified))))
459 467
468
469
460;;; Internal bookkeeping variables: 470;;; Internal bookkeeping variables:
461 471
462;; Cached value of the `Path:' component in the user's MH profile. 472;; Cached value of the `Path:' component in the user's MH profile.
@@ -510,6 +520,8 @@ about the fontification operation."
510;;Non-nil means next SPC or whatever goes to next undeleted message. 520;;Non-nil means next SPC or whatever goes to next undeleted message.
511(defvar mh-page-to-next-msg-flag nil) 521(defvar mh-page-to-next-msg-flag nil)
512 522
523
524
513;;; Internal variables local to a folder. 525;;; Internal variables local to a folder.
514 526
515;; Name of current folder, a string. 527;; Name of current folder, a string.
@@ -554,7 +566,7 @@ about the fontification operation."
554 (cons modeline-buffer-id-left-extent "XEmacs%N:")) 566 (cons modeline-buffer-id-left-extent "XEmacs%N:"))
555 (cons modeline-buffer-id-right-extent " %17b"))))) 567 (cons modeline-buffer-id-right-extent " %17b")))))
556 568
557;;; This holds a documentation string used by describe-mode. 569;; This holds a documentation string used by describe-mode.
558(defun mh-showing-mode (&optional arg) 570(defun mh-showing-mode (&optional arg)
559 "Change whether messages should be displayed. 571 "Change whether messages should be displayed.
560With arg, display messages iff ARG is positive." 572With arg, display messages iff ARG is positive."
@@ -574,6 +586,8 @@ With arg, display messages iff ARG is positive."
574;; Showing message with headers or normally. 586;; Showing message with headers or normally.
575(defvar mh-showing-with-headers nil) 587(defvar mh-showing-with-headers nil)
576 588
589
590
577;;; MH-E macros 591;;; MH-E macros
578 592
579(defmacro with-mh-folder-updating (save-modification-flag &rest body) 593(defmacro with-mh-folder-updating (save-modification-flag &rest body)
@@ -740,10 +754,10 @@ See `expand-file-name' for description of DEFAULT."
740 (mh-expand-file-name folder) 754 (mh-expand-file-name folder)
741 mh-folder-filename))) 755 mh-folder-filename)))
742 756
743;;; Infrastructure to generate show-buffer functions from folder functions 757;; Infrastructure to generate show-buffer functions from folder functions
744;;; XEmacs does not have deactivate-mark? What is the equivalent of 758;; XEmacs does not have deactivate-mark? What is the equivalent of
745;;; transient-mark-mode for XEmacs? Should we be restoring the mark in the 759;; transient-mark-mode for XEmacs? Should we be restoring the mark in the
746;;; folder buffer after the operation has been carried out. 760;; folder buffer after the operation has been carried out.
747(defmacro mh-defun-show-buffer (function original-function 761(defmacro mh-defun-show-buffer (function original-function
748 &optional dont-return) 762 &optional dont-return)
749 "Define FUNCTION to run ORIGINAL-FUNCTION in folder buffer. 763 "Define FUNCTION to run ORIGINAL-FUNCTION in folder buffer.
@@ -784,8 +798,8 @@ still visible.\n")
784 (get-buffer cur-buffer-name)))) 798 (get-buffer cur-buffer-name))))
785 (pop-to-buffer (get-buffer cur-buffer-name) nil))))))))) 799 (pop-to-buffer (get-buffer cur-buffer-name) nil)))))))))
786 800
787;;; Generate interactive functions for the show buffer from the corresponding 801;; Generate interactive functions for the show buffer from the corresponding
788;;; folder functions. 802;; folder functions.
789(mh-defun-show-buffer mh-show-previous-undeleted-msg 803(mh-defun-show-buffer mh-show-previous-undeleted-msg
790 mh-previous-undeleted-msg) 804 mh-previous-undeleted-msg)
791(mh-defun-show-buffer mh-show-next-undeleted-msg 805(mh-defun-show-buffer mh-show-next-undeleted-msg
@@ -883,7 +897,10 @@ still visible.\n")
883(mh-defun-show-buffer mh-show-display-with-external-viewer 897(mh-defun-show-buffer mh-show-display-with-external-viewer
884 mh-display-with-external-viewer) 898 mh-display-with-external-viewer)
885 899
886;;; Populate mh-show-mode-map 900
901
902;;; Build mh-show-mode keymaps
903
887(gnus-define-keys mh-show-mode-map 904(gnus-define-keys mh-show-mode-map
888 " " mh-show-page-msg 905 " " mh-show-page-msg
889 "!" mh-show-refile-or-write-again 906 "!" mh-show-refile-or-write-again
@@ -1081,7 +1098,7 @@ still visible.\n")
1081 ["Quit MH-E" mh-quit t])) 1098 ["Quit MH-E" mh-quit t]))
1082 1099
1083 1100
1084;;; Ensure new buffers won't get this mode if default-major-mode is nil. 1101;; Ensure new buffers won't get this mode if default-major-mode is nil.
1085(put 'mh-show-mode 'mode-class 'special) 1102(put 'mh-show-mode 'mode-class 'special)
1086 1103
1087;; Avoid compiler warnings in XEmacs and Emacs 20 1104;; Avoid compiler warnings in XEmacs and Emacs 20
@@ -1260,10 +1277,10 @@ is used."
1260 1277
1261 1278
1262 1279
1263;; Picon display 1280;;; Picon display
1264 1281
1265;;; XXX: This should be customizable. As a side-effect of setting this 1282;; XXX: This should be customizable. As a side-effect of setting this
1266;;; variable, arrange to reset mh-picon-existing-directory-list to 'unset. 1283;; variable, arrange to reset mh-picon-existing-directory-list to 'unset.
1267(defvar mh-picon-directory-list 1284(defvar mh-picon-directory-list
1268 '("~/.picons" "~/.picons/users" "~/.picons/usenix" "~/.picons/news" 1285 '("~/.picons" "~/.picons/users" "~/.picons/usenix" "~/.picons/news"
1269 "~/.picons/domains" "~/.picons/misc" 1286 "~/.picons/domains" "~/.picons/misc"
@@ -2388,6 +2405,8 @@ The function returns the size of the final size of the log buffer."
2388 (insert "\n \n")) 2405 (insert "\n \n"))
2389 (buffer-size))) 2406 (buffer-size)))
2390 2407
2408
2409
2391;;; Issue commands to MH. 2410;;; Issue commands to MH.
2392 2411
2393(defun mh-exec-cmd (command &rest args) 2412(defun mh-exec-cmd (command &rest args)
@@ -2593,10 +2612,10 @@ older versions of Gnus."
2593 2612
2594(provide 'mh-utils) 2613(provide 'mh-utils)
2595 2614
2596;;; Local Variables: 2615;; Local Variables:
2597;;; indent-tabs-mode: nil 2616;; indent-tabs-mode: nil
2598;;; sentence-end-double-space: nil 2617;; sentence-end-double-space: nil
2599;;; End: 2618;; End:
2600 2619
2601;;; arch-tag: 1af39fdf-f66f-4b06-9b48-18a7656c8e36 2620;; arch-tag: 1af39fdf-f66f-4b06-9b48-18a7656c8e36
2602;;; mh-utils.el ends here 2621;;; mh-utils.el ends here