projects
/
gnus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(dns-get-txt-answer): New function.
[gnus]
/
lisp
/
gnus-msg.el
diff --git
a/lisp/gnus-msg.el
b/lisp/gnus-msg.el
index
a098d06
..
7c2c881
100644
(file)
--- a/
lisp/gnus-msg.el
+++ b/
lisp/gnus-msg.el
@@
-359,10
+359,10
@@
Thank you for your help in stamping out bugs.
;;; Internal functions.
;;; Internal functions.
-(defun gnus-inews-make-draft ()
+(defun gnus-inews-make-draft (
articles
)
`(lambda ()
(gnus-inews-make-draft-meta-information
`(lambda ()
(gnus-inews-make-draft-meta-information
- ,gnus-newsgroup-name ',
gnus-article-reply
)))
+ ,gnus-newsgroup-name ',
articles
)))
(defvar gnus-article-reply nil)
(defmacro gnus-setup-message (config &rest forms)
(defvar gnus-article-reply nil)
(defmacro gnus-setup-message (config &rest forms)
@@
-404,7
+404,7
@@
Thank you for your help in stamping out bugs.
(not (string= ,group "")))
(push (cons
(intern gnus-draft-meta-information-header)
(not (string= ,group "")))
(push (cons
(intern gnus-draft-meta-information-header)
- (gnus-inews-make-draft))
+ (gnus-inews-make-draft
,yanked
))
message-required-headers))
(unwind-protect
(progn
message-required-headers))
(unwind-protect
(progn
@@
-432,12
+432,19
@@
Thank you for your help in stamping out bugs.
(run-hooks 'post-command-hook)
(set-buffer-modified-p nil))))
(run-hooks 'post-command-hook)
(set-buffer-modified-p nil))))
-(defun gnus-inews-make-draft-meta-information (group article)
+(defun gnus-inews-make-draft-meta-information (group articles)
+ (when (numberp articles)
+ (setq articles (list articles)))
(concat "(\"" group "\" "
(concat "(\"" group "\" "
- (if article (number-to-string
- (if (listp article)
- (car article)
- article)) "\"\"")
+ (if articles
+ (mapconcat
+ (lambda (elem)
+ (number-to-string
+ (if (consp elem)
+ (car elem)
+ elem)))
+ articles " ")
+ "")
")"))
;;;###autoload
")"))
;;;###autoload
@@
-725,7
+732,9
@@
article number, and the cdr is the string to be yanked."
(gnus-summary-handle-replysign)))
(defun gnus-summary-followup-with-original (n &optional force-news)
(gnus-summary-handle-replysign)))
(defun gnus-summary-followup-with-original (n &optional force-news)
- "Compose a followup to an article and include the original article."
+ "Compose a followup to an article and include the original article.
+The text in the region will be yanked. If the region isn't
+active, the entire article will be yanked."
(interactive "P")
(gnus-summary-followup (gnus-summary-work-articles n) force-news))
(interactive "P")
(gnus-summary-followup (gnus-summary-work-articles n) force-news))
@@
-1632,11
+1641,13
@@
this is a reply."
(concat "^" (regexp-quote mail-header-separator) "$")
nil t)
(replace-match "" t t ))
(concat "^" (regexp-quote mail-header-separator) "$")
nil t)
(replace-match "" t t ))
- (unless (setq group-art
- (gnus-request-accept-article group method t t))
+ (when (or (not (gnus-check-backend-function
+ 'request-accept-article group))
+ (not (setq group-art
+ (gnus-request-accept-article
+ group method t t))))
(gnus-message 1 "Couldn't store article in group %s: %s"
(gnus-message 1 "Couldn't store article in group %s: %s"
- group (gnus-status-message method))
- (sit-for 2))
+ group (gnus-status-message method)))
(when (and group-art
;; FIXME: Should gcc-mark-as-read work when
;; Gnus is not running?
(when (and group-art
;; FIXME: Should gcc-mark-as-read work when
;; Gnus is not running?
@@
-1925,4
+1936,5
@@
this is a reply."
(provide 'gnus-msg)
(provide 'gnus-msg)
+;;; arch-tag: 9f22b2f5-1c0a-49de-916e-4c88e984852b
;;; gnus-msg.el ends here
;;; gnus-msg.el ends here