(,group gnus-newsgroup-name)
(message-header-setup-hook
(copy-sequence message-header-setup-hook))
- (message-mode-hook (copy-sequence message-mode-hook))
- (gnus-message-get-reply-buffer 'gnus-copy-article-buffer))
+ (message-mode-hook (copy-sequence message-mode-hook)))
(add-hook 'message-header-setup-hook 'gnus-inews-insert-gcc)
(add-hook 'message-header-setup-hook 'gnus-inews-insert-archive-gcc)
(add-hook 'message-mode-hook 'gnus-configure-posting-styles)
(defun message-fetch-reply-field (header)
"Fetch FIELD from the message we're replying to."
- (let ((buffer (if (functionp message-reply-buffer)
- (funcall message-reply-buffer)
- message-reply-buffer)))
- (when (and buffer
- (buffer-name buffer))
- (save-excursion
- (set-buffer buffer)
- (message-fetch-field header)))))
+ (when (and message-reply-buffer
+ (buffer-name message-reply-buffer))
+ (save-excursion
+ (set-buffer message-reply-buffer)
+ (message-fetch-field header))))
(defun message-set-work-buffer ()
(if (get-buffer " *message work*")
Just \\[universal-argument] as argument means don't indent, insert no
prefix, and don't delete any headers."
(interactive "P")
- (let ((modified (buffer-modified-p))
- buffer)
+ (let ((modified (buffer-modified-p)))
(when (and message-reply-buffer
message-cite-function)
- (setq buffer
- (if (functionp message-reply-buffer)
- (funcall message-reply-buffer)
- message-reply-buffer))
- (delete-windows-on buffer t)
- (insert-buffer buffer)
+ (gnus-copy-article-buffer)
+ (setq message-reply-buffer gnus-article-copy)
+ (delete-windows-on message-reply-buffer t)
+ (insert-buffer message-reply-buffer)
(funcall message-cite-function)
(message-exchange-point-and-mark)
(unless (bolp)
(delete-region (match-end 0)(std11-field-end))
(insert (concat " " (message-make-message-id)))
))
- (interactive)
(funcall message-send-mail-function))))
(funcall message-send-mail-function))
(kill-buffer tembuf))
(nconc message-buffer-list (list (current-buffer))))))
(defvar mc-modes-alist)
-(defvar gnus-message-get-reply-buffer)
(defun message-setup (headers &optional replybuffer actions)
(when (and (boundp 'mc-modes-alist)
(not (assq 'message-mode mc-modes-alist)))
mc-modes-alist))
(when actions
(setq message-send-actions actions))
- (setq message-reply-buffer
- (if (and (boundp 'gnus-message-get-reply-buffer)
- gnus-message-get-reply-buffer)
- gnus-message-get-reply-buffer
- replybuffer))
+ (setq message-reply-buffer replybuffer)
(goto-char (point-min))
;; Insert all the headers.
(mail-header-format