;;; -*-Scheme-*-
;;;
-;;; $Id: rmail.scm,v 1.28 1993/08/13 23:20:16 cph Exp $
+;;; $Id: rmail.scm,v 1.29 1993/08/20 19:02:30 cph Exp $
;;;
;;; Copyright (c) 1991-1993 Massachusetts Institute of Technology
;;;
(buffer-put! buffer 'REVERT-BUFFER-METHOD rmail-revert-buffer)
(memoize-buffer buffer)
(set-buffer-read-only! buffer)
+ (disable-group-undo! (buffer-group buffer))
(event-distributor/invoke! (ref-variable rmail-mode-hook buffer) buffer)))
(define-major-mode rmail-edit text "RMAIL Edit"
The editing commands are the same as in Text mode,
together with two commands to return to regular RMAIL:
* \\[rmail-abort-edit] cancels the changes you have made and returns to RMAIL
- * \\[rmail-cease-edit] makes them permanent.")
+ * \\[rmail-cease-edit] makes them permanent."
+ (lambda (buffer)
+ (enable-group-undo! (buffer-group buffer))))
\f
(define (guarantee-variables-initialized)
(if (null? (ref-variable rmail-primary-inbox-list))
(loser chars))))
(else
(loop (cons char chars)))))))
+\f
((char=? #\( char)
;; comment
(let loop ((level 1) (chars (list char)))
(set-buffer-writable! buffer)
(message
(substitute-command-keys
- "Editing: Type \\[rmail-cease-edit] to return to Rmail, \\[rmail-abort-edit] to abort"
+ "Editing: Type \\[rmail-cease-edit] to return to Rmail, \\[rmail-abort-edit] to abort."
buffer)))))
(define-command rmail-cease-edit