comparison lisp/message.el @ 15559:8d8bf85d356a

Synched with Gnus 5.2.31.
author Lars Magne Ingebrigtsen <larsi@gnus.org>
date Sat, 29 Jun 1996 00:29:17 +0000
parents 47d9b7a1dee3
children 45f40424c2d7
comparison
equal deleted inserted replaced
15558:18364c2808f7 15559:8d8bf85d356a
38 (require 'easymenu) 38 (require 'easymenu)
39 (if (string-match "XEmacs\\|Lucid" emacs-version) 39 (if (string-match "XEmacs\\|Lucid" emacs-version)
40 (require 'mail-abbrevs) 40 (require 'mail-abbrevs)
41 (require 'mailabbrev)) 41 (require 'mailabbrev))
42 42
43 ;;;###autoload
44 (defvar message-directory "~/Mail/" 43 (defvar message-directory "~/Mail/"
45 "*Directory from which all other mail file variables are derived.") 44 "*Directory from which all other mail file variables are derived.")
46 45
47 (defvar message-max-buffers 10 46 (defvar message-max-buffers 10
48 "*How many buffers to keep before starting to kill them off.") 47 "*How many buffers to keep before starting to kill them off.")
162 161
163 ;;;###autoload 162 ;;;###autoload
164 (defvar message-user-organization-file "/usr/lib/news/organization" 163 (defvar message-user-organization-file "/usr/lib/news/organization"
165 "*Local news organization file.") 164 "*Local news organization file.")
166 165
167 ;;;###autoload 166 (defvar message-autosave-directory "~/"
168 (defvar message-autosave-directory 167 ; (concat (file-name-as-directory message-directory) "drafts/")
169 (concat (file-name-as-directory message-directory) "drafts/")
170 "*Directory where message autosaves buffers. 168 "*Directory where message autosaves buffers.
171 If nil, message won't autosave.") 169 If nil, message won't autosave.")
172 170
173 (defvar message-forward-start-separator 171 (defvar message-forward-start-separator
174 "------- Start of forwarded message -------\n" 172 "------- Start of forwarded message -------\n"
1092 (defun message-yank-original (&optional arg) 1090 (defun message-yank-original (&optional arg)
1093 "Insert the message being replied to, if any. 1091 "Insert the message being replied to, if any.
1094 Puts point before the text and mark after. 1092 Puts point before the text and mark after.
1095 Normally indents each nonblank line ARG spaces (default 3). However, 1093 Normally indents each nonblank line ARG spaces (default 3). However,
1096 if `message-yank-prefix' is non-nil, insert that prefix on each line. 1094 if `message-yank-prefix' is non-nil, insert that prefix on each line.
1095
1096 This function uses `message-cite-function' to do the actual citing.
1097 1097
1098 Just \\[universal-argument] as argument means don't indent, insert no 1098 Just \\[universal-argument] as argument means don't indent, insert no
1099 prefix, and don't delete any headers." 1099 prefix, and don't delete any headers."
1100 (interactive "P") 1100 (interactive "P")
1101 (let ((modified (buffer-modified-p))) 1101 (let ((modified (buffer-modified-p)))
1529 (insert "Followup-To: " to "\n")) 1529 (insert "Followup-To: " to "\n"))
1530 t)) 1530 t))
1531 ;; Check "Shoot me". 1531 ;; Check "Shoot me".
1532 (or (message-check-element 'shoot) 1532 (or (message-check-element 'shoot)
1533 (save-excursion 1533 (save-excursion
1534 (if (search-forward 1534 (if (re-search-forward
1535 ".i-have-a-misconfigured-system-so-shoot-me" nil t) 1535 "Message-ID.*.i-have-a-misconfigured-system-so-shoot-me"
1536 nil t)
1536 (y-or-n-p 1537 (y-or-n-p
1537 "You appear to have a misconfigured system. Really post? ") 1538 "You appear to have a misconfigured system. Really post? ")
1538 t))) 1539 t)))
1539 ;; Check for Approved. 1540 ;; Check for Approved.
1540 (or (message-check-element 'approved) 1541 (or (message-check-element 'approved)
2487 (push (cons 'Cc 2488 (push (cons 'Cc
2488 (mapconcat (lambda (addr) (cdr addr)) ccalist ", ")) 2489 (mapconcat (lambda (addr) (cdr addr)) ccalist ", "))
2489 follow-to))))) 2490 follow-to)))))
2490 (widen)) 2491 (widen))
2491 2492
2492 (message-pop-to-buffer (message-buffer-name "reply" from)) 2493 (message-pop-to-buffer (message-buffer-name
2494 (if wide "wide reply" "reply") from
2495 (if wide to-address nil)))
2493 2496
2494 (setq message-reply-headers 2497 (setq message-reply-headers
2495 (vector 0 subject from date message-id references 0 0 "")) 2498 (vector 0 subject from date message-id references 0 0 ""))
2496 2499
2497 (message-setup 2500 (message-setup