mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
Use a temporary buffer in nnagent-request-set-mark (bug#64117)
Commitcb12a84f2c
inadvertently removed the use of a temporary buffer in nnagent-request-set-mark. Bug and fix reported by Jens Schmidt <jschmidt4gnu@vodafonemail.de> * lisp/gnus/nnagent.el (nnagent-request-set-mark): Restore the use of a temporary buffer that was inadvertently removed. (cherry picked from commit5075d75277
)
This commit is contained in:
parent
a722e7dd15
commit
884b668b98
@ -118,17 +118,18 @@
|
||||
(gnus-request-accept-article "nndraft:queue" nil t t))
|
||||
|
||||
(deffoo nnagent-request-set-mark (group action server)
|
||||
(insert "(gnus-agent-synchronize-group-flags \""
|
||||
group
|
||||
"\" '")
|
||||
(gnus-pp action)
|
||||
(insert " \""
|
||||
(gnus-method-to-server gnus-command-method)
|
||||
"\"")
|
||||
(insert ")\n")
|
||||
(let ((coding-system-for-write nnheader-file-coding-system))
|
||||
(write-region (point-min) (point-max) (gnus-agent-lib-file "flags")
|
||||
t 'silent))
|
||||
(with-temp-buffer
|
||||
(insert "(gnus-agent-synchronize-group-flags \""
|
||||
group
|
||||
"\" '")
|
||||
(gnus-pp action)
|
||||
(insert " \""
|
||||
(gnus-method-to-server gnus-command-method)
|
||||
"\"")
|
||||
(insert ")\n")
|
||||
(let ((coding-system-for-write nnheader-file-coding-system))
|
||||
(write-region (point-min) (point-max) (gnus-agent-lib-file "flags")
|
||||
t 'silent)))
|
||||
;; Also set the marks for the original back end that keeps marks in
|
||||
;; the local system.
|
||||
(let ((gnus-agent nil))
|
||||
|
Loading…
Reference in New Issue
Block a user