comparison lisp/mail/mh-comp.el @ 38414:67b464da13ec

Some fixes to follow coding conventions.
author Pavel Janík <Pavel@Janik.cz>
date Sun, 15 Jul 2001 19:53:53 +0000
parents a6d7df85ca41
children 7308bbc423d5
comparison
equal deleted inserted replaced
38413:a26d9b55abb6 38414:67b464da13ec
1 ;;; mh-comp --- mh-e functions for composing messages 1 ;;; mh-comp.el --- mh-e functions for composing messages
2 ;; Time-stamp: <95/08/19 17:48:59 gildea> 2 ;; Time-stamp: <2001-07-15 09:36:30 pavel>
3 3
4 ;; Copyright (C) 1993,1995,1997,2000 Free Software Foundation, Inc. 4 ;; Copyright (C) 1993,1995,1997,2000 Free Software Foundation, Inc.
5 5
6 ;; Maintainer: Bill Wohler <wohler@newt.com> 6 ;; Maintainer: Bill Wohler <wohler@newt.com>
7 ;; Keywords: mail 7 ;; Keywords: mail
8 ;; Bug-reports: include `M-x mh-version' output in any correspondence 8 ;; Bug-reports: include `M-x mh-version' output in any correspondence
9 9
10 ;; This file is part of mh-e, part of GNU Emacs. 10 ;; This file is part of GNU Emacs.
11 11
12 ;; GNU Emacs is free software; you can redistribute it and/or modify 12 ;; GNU Emacs is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by 13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 2, or (at your option) 14 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; any later version. 15 ;; any later version.
28 28
29 ;; Internal support for mh-e package. 29 ;; Internal support for mh-e package.
30 30
31 ;;; Change Log: 31 ;;; Change Log:
32 32
33 ;; $Id: mh-comp.el,v 1.20 2000/11/02 12:37:38 gerd Exp $ 33 ;; $Id: mh-comp.el,v 1.21 2001/02/08 00:01:35 fx Exp $
34 34
35 ;;; Code: 35 ;;; Code:
36 36
37 (provide 'mh-comp) 37 (provide 'mh-comp)
38 (require 'mh-utils) 38 (require 'mh-utils)
574 (cond ((and initial-contents 574 (cond ((and initial-contents
575 (or (zerop (buffer-size)) 575 (or (zerop (buffer-size))
576 (if (y-or-n-p 576 (if (y-or-n-p
577 (format "A draft exists. Use for %s? " use)) 577 (format "A draft exists. Use for %s? " use))
578 (if mh-error-if-no-draft 578 (if mh-error-if-no-draft
579 (error "A prior draft exists.")) 579 (error "A prior draft exists"))
580 t))) 580 t)))
581 (erase-buffer) 581 (erase-buffer)
582 (insert-file-contents initial-contents) 582 (insert-file-contents initial-contents)
583 (if delete-contents-file (delete-file initial-contents)))) 583 (if delete-contents-file (delete-file initial-contents))))
584 (auto-save-mode 1) 584 (auto-save-mode 1)
1101 \\[mh-mhn-compose-forw] (forward message)." t) 1101 \\[mh-mhn-compose-forw] (forward message)." t)
1102 1102
1103 (autoload 'mh-revert-mhn-edit "mh-mime" 1103 (autoload 'mh-revert-mhn-edit "mh-mime"
1104 "Undoes the effect of \\[mh-edit-mhn] by reverting to the backup file. 1104 "Undoes the effect of \\[mh-edit-mhn] by reverting to the backup file.
1105 Optional non-nil argument means don't ask for confirmation." t) 1105 Optional non-nil argument means don't ask for confirmation." t)
1106
1107 ;;; mh-comp.el ends here