Mercurial > hg > xemacs-beta
diff lisp/gnus/gnus-msg.el @ 34:d620409f5eb8 r19-15b100
Import from CVS: tag r19-15b100
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:53:20 +0200 |
parents | e04119814345 |
children | c53a95d3c46d |
line wrap: on
line diff
--- a/lisp/gnus/gnus-msg.el Mon Aug 13 08:52:58 2007 +0200 +++ b/lisp/gnus/gnus-msg.el Mon Aug 13 08:53:20 2007 +0200 @@ -407,7 +407,7 @@ (message-mail (or to-address to-list)) ;; Arrange for mail groups that have no `to-address' to ;; get that when the user sends off the mail. - (push (list 'gnus-inews-add-to-address group) + (push (list 'gnus-inews-add-to-address pgroup) message-send-actions)) (set-buffer gnus-article-copy) (message-wide-reply to-address))) @@ -471,16 +471,6 @@ ;; Use the normal select method. (t gnus-select-method)))) -(defun gnus-inews-narrow-to-headers () - (widen) - (narrow-to-region - (goto-char (point-min)) - (or (and (re-search-forward - (concat "^" (regexp-quote mail-header-separator) "$") nil t) - (match-beginning 0)) - (point-max))) - (goto-char (point-min))) - ;;; ;;; Check whether the message has been sent already. ;;; @@ -490,7 +480,7 @@ (defun gnus-inews-reject-message () "Check whether this message has already been sent." (when gnus-sent-message-ids-file - (let ((message-id (save-restriction (gnus-inews-narrow-to-headers) + (let ((message-id (save-restriction (message-narrow-to-headers) (mail-fetch-field "message-id"))) end) (when message-id @@ -754,7 +744,7 @@ (save-excursion (save-restriction (widen) - (gnus-inews-narrow-to-headers) + (message-narrow-to-headers) (let (gnus-deletable-headers) (if (message-news-p) (message-generate-headers message-required-news-headers) @@ -955,7 +945,7 @@ "Insert Gcc headers based on `gnus-outgoing-message-group'." (save-excursion (save-restriction - (gnus-inews-narrow-to-headers) + (message-narrow-to-headers) (let* ((group gnus-outgoing-message-group) (gcc (cond ((gnus-functionp group) @@ -1014,7 +1004,7 @@ (setq groups (list groups))) (save-excursion (save-restriction - (gnus-inews-narrow-to-headers) + (message-narrow-to-headers) (goto-char (point-max)) (insert "Gcc: ") (if (and gnus-newsgroup-name