tm 7.28.
[elisp/tm.git] / mh-e / tm-mh-e3.el
1 ;;;
2 ;;; $Id: tm-mh-e3.el,v 7.0 1995/12/01 19:14:52 morioka Exp $
3 ;;;
4 ;;; This is a part of tm-mh-e.el which is a module for old mh-e
5 ;;; to emulate mh-e 4.*.
6 ;;;
7 ;;; This module imports from mh-e 4.1.
8 ;;;
9
10 (require 'mh-e)
11
12
13 (defvar mail-citation-hook nil
14   "*Hook for modifying a citation just inserted in the mail buffer.
15 Each hook function can find the citation between point and mark.
16 And each hook function should leave point and mark around the citation
17 text as modified.")
18
19
20 ;;; Ensure new buffers won't get this mode if default-major-mode is nil.
21 (put 'mh-show-mode 'mode-class 'special)
22
23 (defun mh-show-mode ()
24   "Major mode for showing messages in mh-e.
25 The value of mh-show-mode-hook is called when a new message is displayed."
26   (kill-all-local-variables)
27   (setq major-mode 'mh-show-mode)
28   (mh-set-mode-name "MH-Show")
29   (run-hooks 'mh-show-mode-hook))
30
31 (defun mh-start-of-uncleaned-message ()
32   ;; position uninteresting headers off the top of the window
33   (let ((case-fold-search t))
34     (re-search-forward
35      "^To:\\|^From:\\|^Subject:\\|^Date:" nil t)
36     (beginning-of-line)
37     (mh-recenter 0)))
38
39 (fset 'mh-show-msg (symbol-function 'mh-show))
40
41
42 ;;; @ mh-comp definitions
43 ;;;
44
45 (provide 'mh-comp)
46
47 (defun mh-read-address (prompt)
48   ;; Read a To: or Cc: address, prompting in the minibuffer with PROMPT.
49   ;; May someday do completion on aliases.
50   (read-string prompt))
51
52
53 ;;; @ end
54 ;;;
55
56 (provide 'tm-mh-e3)