Regenerate ldefs-boot.el
[bpt/emacs.git] / lisp / gnus / messcompat.el
CommitLineData
eec82323 1;;; messcompat.el --- making message mode compatible with mail mode
16409b0b 2
ba318903 3;; Copyright (C) 1996-2014 Free Software Foundation, Inc.
eec82323 4
6748645f 5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
eec82323
LMI
6;; Keywords: mail, news
7
8;; This file is part of GNU Emacs.
9
5e809f55 10;; GNU Emacs is free software: you can redistribute it and/or modify
eec82323 11;; it under the terms of the GNU General Public License as published by
5e809f55
GM
12;; the Free Software Foundation, either version 3 of the License, or
13;; (at your option) any later version.
eec82323
LMI
14
15;; GNU Emacs is distributed in the hope that it will be useful,
16;; but WITHOUT ANY WARRANTY; without even the implied warranty of
5e809f55 17;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
eec82323
LMI
18;; GNU General Public License for more details.
19
20;; You should have received a copy of the GNU General Public License
5e809f55 21;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
eec82323
LMI
22
23;;; Commentary:
24
8f688cb0 25;; This file tries to provide backward compatibility with sendmail.el
eec82323
LMI
26;; for Message mode. It should be used by simply adding
27;;
28;; (require 'messcompat)
29;;
30;; to the .emacs file. Loading it after Message mode has been
31;; loaded will have no effect.
32
33;;; Code:
34
35(require 'sendmail)
36
37(defvar message-from-style mail-from-style
38 "*Specifies how \"From\" headers look.
39
23f87bed 40If nil, they contain just the return address like:
eec82323
LMI
41 king@grassland.com
42If `parens', they look like:
43 king@grassland.com (Elvis Parsley)
44If `angles', they look like:
45 Elvis Parsley <king@grassland.com>
46
47Otherwise, most addresses look like `angles', but they look like
48`parens' if `angles' would need quoting and `parens' would not.")
49
50(defvar message-interactive mail-interactive
51 "Non-nil means when sending a message wait for and display errors.
52nil means let mailer mail back a message to report errors.")
53
54(defvar message-setup-hook mail-setup-hook
55 "Normal hook, run each time a new outgoing message is initialized.
56The function `message-setup' runs this hook.")
57
6748645f
LMI
58(if (boundp 'mail-mode-hook)
59 (defvar message-mode-hook mail-mode-hook
60 "Hook run in message mode buffers."))
eec82323
LMI
61
62(defvar message-indentation-spaces mail-indentation-spaces
63 "*Number of spaces to insert at the beginning of each cited line.
64Used by `message-yank-original' via `message-yank-cite'.")
65
66(defvar message-signature mail-signature
67 "*String to be inserted at the end of the message buffer.
68If t, the `message-signature-file' file will be inserted instead.
69If a function, the result from the function will be used instead.
70If a form, the result from the form will be used instead.")
71
16409b0b 72;; Deleted the autoload cookie because this crashes in loaddefs.el.
eec82323 73(defvar message-signature-file mail-signature-file
6748645f 74 "*File containing the text inserted at end of the message buffer.")
eec82323
LMI
75
76(defvar message-default-headers mail-default-headers
77 "*A string containing header lines to be inserted in outgoing messages.
78It is inserted before you edit the message, so you can edit or delete
79these lines.")
80
81(defvar message-send-hook mail-send-hook
82 "Hook run before sending messages.")
83
6748645f
LMI
84(defvar message-send-mail-function send-mail-function
85 "Function to call to send the current buffer as mail.
86The headers should be delimited by a line whose contents match the
87variable `mail-header-separator'.")
88
eec82323
LMI
89(provide 'messcompat)
90
91;;; messcompat.el ends here