;;; Copyright (C) 1985, 86, 87, 88, 90, 92, 93 Free Software Foundation
-(defconst mh-e-time-stamp "Time-stamp: <93/05/27 18:02:50 gildea>")
+(defconst mh-e-time-stamp "Time-stamp: <93/05/30 18:37:43 gildea>")
;; Maintainer: Stephen Gildea <gildea@lcs.mit.edu>
-;; Version: 3.8.1
+;; Version: 3.8.2
;; Keywords: mail
;; GNU Emacs is distributed in the hope that it will be useful,
;;; Modified by James Larus, BBN, July 1984 and UCB, 1984 & 1985.
;;; Rewritten for GNU Emacs, James Larus 1985. larus@ginger.berkeley.edu
;;; Modified by Stephen Gildea 1988. gildea@bbn.com
-(defconst mh-e-RCS-id "$Header: mh-e.el,v 3.9 93/01/11 11:49:18 gildea Exp $")
+(defconst mh-e-RCS-id "$Header: /home/fsf/rms/e19/lisp/RCS/mh-e.el,v 1.15 1993/07/20 04:35:00 rms Exp rms $")
;;; Code:
(save-excursion
(goto-char (point))
(or (bolp) (forward-line 1))
- (while (< (point) (mark))
+ (while (< (point) (mark t))
(insert mh-ins-string)
(forward-line 1))))
"Hook to run citation function.
(defvar mh-unshar-default-directory ""
"*Default for directory name prompted for by mh-unshar-msg.")
+(defvar mh-signature-file-name "~/.signature"
+ "*Name of file containing the user's signature.
+Inserted into message by \\<mh-letter-mode-map>\\[mh-insert-signature].")
+
;;; Parameterize mh-e to work with different scan formats. The defaults work
;;; with the standard MH scan listings.
"String whose first character is used to notate redistributed messages.")
(defvar mh-good-msg-regexp "^....[^D^]"
- "Regexp specifiying the scan lines that are 'good' messages.")
+ "Regexp specifying the scan lines that are 'good' messages.")
(defvar mh-deleted-msg-regexp "^....D"
"Regexp matching scan lines of deleted messages.")
(set-buffer (get-buffer-create " *mh-temp*"))
(erase-buffer)
(mh-exec-cmd-output "mhpath" nil mh-draft-folder "new")
- (buffer-substring (point) (1- (mark)))))
+ (buffer-substring (point) (1- (mark t)))))
(defun mh-next-msg ()
;;; The folder data abstraction.
(defvar mh-current-folder nil "Name of current folder, a string.")
-(defvar mh-show-buffer nil "Buffer that displays mesage for this folder.")
+(defvar mh-show-buffer nil "Buffer that displays message for this folder.")
(defvar mh-folder-filename nil "Full path of directory for this folder.")
(defvar mh-showing nil "If non-nil, show the message in a separate window.")
(defvar mh-next-seq-num nil "Index of free sequence id.")
If nil, only the portion of the message following the point will be yanked.
If there is a region, this variable is ignored.
+ mh-signature-file-name (\"~/.signature\")
+ File to be inserted into message by \\[mh-insert-signature].
+
Upon invoking mh-letter-mode, text-mode-hook and mh-letter-mode-hook are
invoked with no args, if those values are non-nil.
(defun mh-insert-signature ()
- "Insert the file ~/.signature at the current point."
+ "Insert the file named by mh-signature-file-name at the current point."
(interactive)
- (insert-file-contents "~/.signature")
+ (insert-file-contents mh-signature-file-name)
(set-buffer-modified-p (buffer-modified-p))) ; force mode line update
(if mh-delete-yanked-msg-window
(delete-windows-on mh-show-buffer))
(set-buffer mh-show-buffer) ; Find displayed message
- (let ((mh-ins-str (cond ((mark)
+ (let ((mh-ins-str (cond (mark-active
(buffer-substring (region-beginning)
(region-end)))
((eq 'body mh-yank-from-start-of-msg)
(provide 'mh-e)
;;; mh-e.el ends here
-