From unknown Wed Jun 25 09:08:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64117 <64117@debbugs.gnu.org> To: bug#64117 <64117@debbugs.gnu.org> Subject: Status: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer Reply-To: bug#64117 <64117@debbugs.gnu.org> Date: Wed, 25 Jun 2025 16:08:40 +0000 retitle 64117 28.2; "gnus-request-set-mark: Buffer is read-only" when exiti= ng agentized, unplugged summary buffer reassign 64117 emacs submitter 64117 Jens Schmidt severity 64117 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 16 14:58:22 2023 Received: (at submit) by debbugs.gnu.org; 16 Jun 2023 18:58:22 +0000 Received: from localhost ([127.0.0.1]:50376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAEeL-0001dA-IY for submit@debbugs.gnu.org; Fri, 16 Jun 2023 14:58:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:56296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAEeJ-0001d1-6u for submit@debbugs.gnu.org; Fri, 16 Jun 2023 14:58:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAEeI-0005vu-Tm for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 14:58:18 -0400 Received: from mr6.vodafonemail.de ([145.253.228.166]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAEeG-0004A6-Jd for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 14:58:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1686941893; bh=Mq+6VaNuthnaWaEAb/sULEduPyVBRKgVHjBch0SNWtc=; h=Message-ID:Date:User-Agent:Content-Language:From:To:Subject: Content-Type:From; b=RQPychhIsOqnV3VCpo2hQYaf1Ams7LEX6910kiTXex5xLHxr2kj58L50VcKdGBkEX wIhTm4lPCLzlRSNElk4J9UI+EfuqZzGuw/3gU/4IUiTq3z6Kx9nj9oABlQrGwbshF5 gpGEfYLqgUQJV7Gu6fvSM5ZHuN3vrjPRSSpziZVc= Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr6.vodafonemail.de (Postfix) with ESMTPS id 4QjT2F5jfpz1y2R for ; Fri, 16 Jun 2023 18:58:13 +0000 (UTC) Received: from [192.168.178.41] (port-92-194-181-255.dynamic.as20676.net [92.194.181.255]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4QjT293qvlz9s3v for ; Fri, 16 Jun 2023 18:58:06 +0000 (UTC) Message-ID: Date: Fri, 16 Jun 2023 20:58:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: de-DE-frami, en-US From: Jens Schmidt To: bug-gnu-emacs@gnu.org Subject: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-purgate-type: clean X-purgate: clean X-purgate-size: 2644 X-purgate-ID: 155817::1686941889-AAFFFD22-8AB6B1A1/0/0 Received-SPF: pass client-ip=145.253.228.166; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr6.vodafonemail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This issue should be also present in Emacs master, judging by the code. However I have reproduced this issue only in my "production Emacs" on 28.2 and, in particular, *not* in an "emacs -Q" environment. Gnus setup complete with IMAP and all is finicky, so probably you accept this bug report without all that. Here are the steps to reproduce the issue: - Ensure you have an agentized nnimap group G with some unread articles. - Ensure Gnus is unplugged. - Enter group G from the *Group* buffer by pressing "RET" on it. - Mark some unread articles in the summary buffer of G as "read" by positioning point on them and pressing "d". - Exit group G from the summary buffer by pressing "q". The last step results in an error gnus-request-set-mark: Buffer is read-only: #:INBOX*> for me. Expected result is that the agent writes the information on the marks that have changed while unplugged to a separate file which it later, when Gnus gets plugged again, replays. The reason for the bug us most likely commit https://git.savannah.gnu.org/cgit/emacs.git/commit/src?id=cb12a84f2c519a48dd87453c925e3bc36d9944db and here the change * lisp/gnus/nnagent.el: Don't use a unibyte buffer. The author has removed a macro call to `mm-with-unibyte-buffer' in function `nnagent-request-set-mark' without replacing it by, for example, a call to `with-temp-buffer'. Accordingly, function `nnagent-request-set-mark' tries to operate on the current buffer, which happens to be the read-only summary buffer. Adding a `with-temp-buffer' around the inserts and the call to `write-region' fixes this issue (showing 28.2-based code): (deffoo nnagent-request-set-mark (group action server) (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)) (when (and (memq (car gnus-command-method) '(nntp)) (gnus-check-backend-function 'request-set-mark (car gnus-command-method))) (funcall (gnus-get-function gnus-command-method 'request-set-mark) group action server))) nil) I could provide a patch on emacs-29 but only without actually testing it... From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 21 09:13:37 2023 Received: (at 64117) by debbugs.gnu.org; 21 Jun 2023 13:13:37 +0000 Received: from localhost ([127.0.0.1]:60898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBxeT-0006t6-Da for submit@debbugs.gnu.org; Wed, 21 Jun 2023 09:13:37 -0400 Received: from mr5.vodafonemail.de ([145.253.228.165]:56908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBxeR-0006sp-Nx for 64117@debbugs.gnu.org; Wed, 21 Jun 2023 09:13:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1687353208; bh=iiofCgCE8BC1cAiP5f2uEjxb1TZplGi4OyPuWdGhMcA=; h=Message-ID:Date:User-Agent:Subject:Content-Language:From:To: References:In-Reply-To:Content-Type:From; b=DhMvNtk8TKgEkyS7wXZ0QXXQmXdsLfrTC3Q+MBAzJtJ6hNNM42EZskHHVimHazB3w d5DFiebJMzp3NoyozzR62mEQxl3nal07fIU2m7GAdAG8CnLMM9AvBAh+soc1yTh4ma XjK5PIhJm7Rcoi7M85EtYhHo/Qw9uDhxN1+rBO8w= Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr5.vodafonemail.de (Postfix) with ESMTPS id 4QmP885dC0z1yYZ; Wed, 21 Jun 2023 13:13:28 +0000 (UTC) Received: from [192.168.178.41] (port-92-194-167-27.dynamic.as20676.net [92.194.167.27]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4QmP811ZwVz9vKF; Wed, 21 Jun 2023 13:13:17 +0000 (UTC) Message-ID: <9826451c-fe68-ccc2-ecc8-dc23b6710f40@vodafonemail.de> Date: Wed, 21 Jun 2023 15:13:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer Content-Language: de-DE-frami, en-US From: Jens Schmidt To: Andrew G Cohen References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-purgate-type: clean X-purgate: clean X-purgate-size: 422 X-purgate-ID: 155817::1687353204-5E7FCC26-E2E95040/0/0 X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 64117 Cc: 64117@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) Hi Andrew, you already have helped me out with a Gnus problem - probably could you have a look at this one as well? Looks simple enough, only I wonder why nobody has complained earlier ... BTW, is there a more appropriate ML to report Gnus issues than the generic Emacs one? And how about development questions related to Gnus? info-gnus-english looks so abandoned ... I hope Gnus isn't. Thanks! Jens From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 21 09:53:14 2023 Received: (at 64117) by debbugs.gnu.org; 21 Jun 2023 13:53:14 +0000 Received: from localhost ([127.0.0.1]:60947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qByGo-0001zx-8T for submit@debbugs.gnu.org; Wed, 21 Jun 2023 09:53:14 -0400 Received: from andy.bu.edu ([128.197.41.152]:36644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qByGm-0001zg-OP for 64117@debbugs.gnu.org; Wed, 21 Jun 2023 09:53:13 -0400 Received: from [193.176.211.165] (helo=clove) by andy.bu.edu with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qByGd-0007qA-RP; Wed, 21 Jun 2023 09:53:05 -0400 From: Andrew Cohen To: Jens Schmidt Subject: Re: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer In-Reply-To: <9826451c-fe68-ccc2-ecc8-dc23b6710f40@vodafonemail.de> (Jens Schmidt's message of "Wed, 21 Jun 2023 15:13:17 +0200") References: <9826451c-fe68-ccc2-ecc8-dc23b6710f40@vodafonemail.de> Date: Wed, 21 Jun 2023 21:52:53 +0800 Message-ID: <87fs6kapmy.fsf@ust.hk> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "andy.bu.edu", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: >>>>> "JS" == Jens Schmidt writes: JS> Hi Andrew, you already have helped me out with a Gnus problem - JS> probably could you have a look at this one as well? Looks JS> simple enough, only I wonder why nobody has complained earlier JS [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64117 Cc: 64117@debbugs.gnu.org, Eric Abrahamsen , Andrew G Cohen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> "JS" == Jens Schmidt writes: JS> Hi Andrew, you already have helped me out with a Gnus problem - JS> probably could you have a look at this one as well? Looks JS> simple enough, only I wonder why nobody has complained earlier JS> ... I don't think many people are using the features that hit this code path (I don't use the agent, for example). But the problem and your fix seems pretty obvious. This is Eric's code, so I am copying him to confirm. Since he might be busy, if he doesn't respond in a few days I think I'll go ahead and push this fix to master. Eli, this error was introduced almost 4 years ago but probably counts as a regression. Should we consider also fixing on 29? (Adding the use of a temp buffer is pretty unlikely to cause any problems). JS> BTW, is there a more appropriate ML to report Gnus issues than JS> the generic Emacs one? And how about development questions JS> related to Gnus? info-gnus-english looks so abandoned ... I JS> hope Gnus isn't. Gnus certainly isn't dead, although there aren't many of us working on new features. The lists that still see (light) traffic are emacs.gnus.general and emacs.gnus.user (which I use through gmane), and you can certainly post there. Best, Andy -- Andrew Cohen From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 21 10:14:06 2023 Received: (at 64117) by debbugs.gnu.org; 21 Jun 2023 14:14:06 +0000 Received: from localhost ([127.0.0.1]:33856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qByb0-0005JN-1j for submit@debbugs.gnu.org; Wed, 21 Jun 2023 10:14:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qByax-0005Il-FP for 64117@debbugs.gnu.org; Wed, 21 Jun 2023 10:14:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qByaq-0002yc-S4; Wed, 21 Jun 2023 10:13:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=bfuHvpj4RMO0C3dz6herlUq9l6MsL3SCt4sK0CSgP/w=; b=WDrCaSvOrvq7 2mXnWiYEE4Ed0gbzmyXT5c+Y5jVsnJguBrv83YZP+VzAe3gGI+ZQ1LdP2iNziGs+Y345ueflNF4FF CHb2rVTURjbEiLEoIV6e6CBdR89f5rvQKq8NCqS7KoNJyV0yq+Wi6Os/F924P2R4HUWHAdnrhWIx/ 5fcAVFZnkov9tPME4rlq17RAa/bFg0StvwZBurEuOISPbcK8XF0ubFQ4UGVSeCHOyq9wdYRg/mU4M vPyH+HDuNBUxIU1hh48wC0oD7QYPguPHLKB4+3qhjJEOc3fhBNgcbEZbChtlAQHe1u5SnNGtXwQr0 pS4jTh1sFOz7BeE14fCnqw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qByaq-00087b-Bh; Wed, 21 Jun 2023 10:13:56 -0400 Date: Wed, 21 Jun 2023 17:14:05 +0300 Message-Id: <83mt0s52du.fsf@gnu.org> From: Eli Zaretskii To: Andrew Cohen In-Reply-To: <87fs6kapmy.fsf@ust.hk> (message from Andrew Cohen on Wed, 21 Jun 2023 21:52:53 +0800) Subject: Re: bug#64117: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer References: <9826451c-fe68-ccc2-ecc8-dc23b6710f40@vodafonemail.de> <87fs6kapmy.fsf@ust.hk> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64117 Cc: 64117@debbugs.gnu.org, eric@ericabrahamsen.net, jschmidt4gnu@vodafonemail.de, cohen@andy.bu.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 64117@debbugs.gnu.org, Eric Abrahamsen , > Andrew G Cohen > From: Andrew Cohen > Date: Wed, 21 Jun 2023 21:52:53 +0800 > > Eli, this error was introduced almost 4 years ago but probably counts as > a regression. Should we consider also fixing on 29? (Adding the use of a > temp buffer is pretty unlikely to cause any problems). Please show the patch, it is hard to decide without a good idea what is about to change. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 21 10:22:56 2023 Received: (at 64117) by debbugs.gnu.org; 21 Jun 2023 14:22:56 +0000 Received: from localhost ([127.0.0.1]:33874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qByjY-0005Y9-A1 for submit@debbugs.gnu.org; Wed, 21 Jun 2023 10:22:56 -0400 Received: from andy.bu.edu ([128.197.41.152]:36666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qByjW-0005X3-CE for 64117@debbugs.gnu.org; Wed, 21 Jun 2023 10:22:55 -0400 Received: from [193.176.211.165] (helo=clove) by andy.bu.edu with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qByjP-00083D-IG; Wed, 21 Jun 2023 10:22:48 -0400 From: Andrew Cohen To: Eli Zaretskii Subject: Re: bug#64117: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer In-Reply-To: <83mt0s52du.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 21 Jun 2023 17:14:05 +0300") References: <9826451c-fe68-ccc2-ecc8-dc23b6710f40@vodafonemail.de> <87fs6kapmy.fsf@ust.hk> <83mt0s52du.fsf@gnu.org> Date: Wed, 21 Jun 2023 22:22:37 +0800 Message-ID: <878rccao9e.fsf@ust.hk> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "andy.bu.edu", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: >>>>> "EZ" == Eli Zaretskii writes: [...] EZ> Please show the patch, it is hard to decide without a good idea EZ> what is about to change. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64117 Cc: Andrew Cohen , 64117@debbugs.gnu.org, eric@ericabrahamsen.net, jschmidt4gnu@vodafonemail.de, cohen@andy.bu.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> "EZ" == Eli Zaretskii writes: [...] EZ> Please show the patch, it is hard to decide without a good idea EZ> what is about to change. Oops, sorry. Here it is (the change just wraps the bulk of a function with (with-temp-buffer ...)) @@ -118,17 +118,18 @@ nnagent-request-post (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)) -- Andrew Cohen From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 21 10:34:51 2023 Received: (at 64117) by debbugs.gnu.org; 21 Jun 2023 14:34:51 +0000 Received: from localhost ([127.0.0.1]:33896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qByv4-0005tU-RP for submit@debbugs.gnu.org; Wed, 21 Jun 2023 10:34:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qByv2-0005tC-W8 for 64117@debbugs.gnu.org; Wed, 21 Jun 2023 10:34:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qByuw-0006Ck-GW; Wed, 21 Jun 2023 10:34:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=bhwndRQ86+AWHojTMuJhARJN4ZxYpizKNcQ37zt/Fg8=; b=DovoYTvzCIR/ ZuOryBcZ2jmOs/cGLypiSdy+Quwg8JennjVS1Qhjg4KDz7GM1rlEONWfN7c+IVZFYrRJKdIu3hwWj K2DqQYvkaEXIuNRwthSUeVBvsYVWBwnyGK2KqwZHkb4EvtiVp8qOtnElZu5kUTeN+QPBqYKDi/eHP BTsgndCQf8zGE0EslCKrKvWpvFQGX7eOJVQIBOt8uAAEbdd5bY+gT0KSva5y7S0hUbH2ASoz9S2bO OHvJA802HtRoO9OA/sJo1JoQTVnu6S/rpfMQ1+AubW3igVbz45PwnMqt85o6z+9fvaVdzH3pqHzOL LTjxHlyjKST4SvIJrQaoTQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qByuw-0008Up-0m; Wed, 21 Jun 2023 10:34:42 -0400 Date: Wed, 21 Jun 2023 17:34:51 +0300 Message-Id: <83legc51f8.fsf@gnu.org> From: Eli Zaretskii To: Andrew Cohen In-Reply-To: <878rccao9e.fsf@ust.hk> (message from Andrew Cohen on Wed, 21 Jun 2023 22:22:37 +0800) Subject: Re: bug#64117: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer References: <9826451c-fe68-ccc2-ecc8-dc23b6710f40@vodafonemail.de> <87fs6kapmy.fsf@ust.hk> <83mt0s52du.fsf@gnu.org> <878rccao9e.fsf@ust.hk> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64117 Cc: 64117@debbugs.gnu.org, eric@ericabrahamsen.net, jschmidt4gnu@vodafonemail.de, cohen@andy.bu.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Andrew Cohen > Cc: Andrew Cohen , jschmidt4gnu@vodafonemail.de, > 64117@debbugs.gnu.org, eric@ericabrahamsen.net, cohen@andy.bu.edu > Date: Wed, 21 Jun 2023 22:22:37 +0800 > > >>>>> "EZ" == Eli Zaretskii writes: > > [...] > > EZ> Please show the patch, it is hard to decide without a good idea > EZ> what is about to change. > > Oops, sorry. Here it is (the change just wraps the bulk of a function > with (with-temp-buffer ...)) Thanks, this is okay for emacs-29. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 17:06:10 2023 Received: (at 64117) by debbugs.gnu.org; 1 Jul 2023 21:06:10 +0000 Received: from localhost ([127.0.0.1]:58789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFhnG-00060b-1B for submit@debbugs.gnu.org; Sat, 01 Jul 2023 17:06:10 -0400 Received: from mr6.vodafonemail.de ([145.253.228.166]:45260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFhnB-000604-Ih for 64117@debbugs.gnu.org; Sat, 01 Jul 2023 17:06:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1688245559; bh=v0sdaljNK7xjYHNeDy1Kc28zWENQt2lrrO1w4JcIVKk=; h=Message-ID:Date:User-Agent:Subject:To:References:Content-Language: From:In-Reply-To:Content-Type:From; b=oYW4XYxtppOOtXLGLkwbs9EMHJI4gi0CsWwh5jHcLmrC1crP99DPyJEMQzJkZdb2r 6TMxZadWM/++yCvIGbJBZ/9nPSzHNEzdCkVDSGTn36cJ4gpOXtAD9EPMy5kiyMAK/N mcdtk/tzjVKrRgDjHpQXxQ12J8hdgZU3xrqxgvcM= Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr6.vodafonemail.de (Postfix) with ESMTPS id 4Qtl8l54xlz1xxP; Sat, 1 Jul 2023 21:05:59 +0000 (UTC) Received: from [192.168.178.41] (port-83-236-52-51.dynamic.as20676.net [83.236.52.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4Qtl8V6V7zz9s5c; Sat, 1 Jul 2023 21:05:43 +0000 (UTC) Message-ID: <1d74471d-5c57-a9d9-d52f-3bec1aef7250@vodafonemail.de> Date: Sat, 1 Jul 2023 23:05:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: bug#64117: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer To: Eli Zaretskii , Andrew Cohen References: <9826451c-fe68-ccc2-ecc8-dc23b6710f40@vodafonemail.de> <87fs6kapmy.fsf@ust.hk> <83mt0s52du.fsf@gnu.org> <878rccao9e.fsf@ust.hk> <83legc51f8.fsf@gnu.org> Content-Language: de-DE-frami, en-US From: Jens Schmidt In-Reply-To: <83legc51f8.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-purgate-type: clean X-purgate: clean X-purgate-size: 214 X-purgate-ID: 155817::1688245559-0B7FAC59-85A96F2C/0/0 X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 64117 Cc: 64117@debbugs.gnu.org, eric@ericabrahamsen.net, cohen@andy.bu.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) On 2023-06-21 16:34, Eli Zaretskii wrote: > Thanks, this is okay for emacs-29. Andrew's fix is already in Emacs 29 and master (thanks). Should I close this bug or do we still wait for Eric's feedback? From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 18:52:52 2023 Received: (at 64117) by debbugs.gnu.org; 1 Jul 2023 22:52:53 +0000 Received: from localhost ([127.0.0.1]:58879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFjSW-0002xT-Kp for submit@debbugs.gnu.org; Sat, 01 Jul 2023 18:52:52 -0400 Received: from andy.bu.edu ([128.197.41.152]:38084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFjSS-0002xC-P5 for 64117@debbugs.gnu.org; Sat, 01 Jul 2023 18:52:51 -0400 Received: from [85.8.130.90] (helo=[127.0.0.1]) by andy.bu.edu with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qFjSH-0004dJ-Ls; Sat, 01 Jul 2023 18:52:38 -0400 Date: Sun, 2 Jul 2023 06:52:14 +0800 (GMT+08:00) From: Andrew Cohen To: Jens Schmidt Message-ID: <77853024-258e-4c21-b363-25ed9fbdf3bd@andy.bu.edu> In-Reply-To: <1d74471d-5c57-a9d9-d52f-3bec1aef7250@vodafonemail.de> References: <9826451c-fe68-ccc2-ecc8-dc23b6710f40@vodafonemail.de> <87fs6kapmy.fsf@ust.hk> <83mt0s52du.fsf@gnu.org> <878rccao9e.fsf@ust.hk> <83legc51f8.fsf@gnu.org> <1d74471d-5c57-a9d9-d52f-3bec1aef7250@vodafonemail.de> Subject: Re: bug#64117: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Correlation-ID: <77853024-258e-4c21-b363-25ed9fbdf3bd@andy.bu.edu> X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "andy.bu.edu", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Please go ahead and close. Jul 2, 2023 05:06:06 Jens Schmidt : > On 2023-06-21  16:34, Eli Zaretskii wrote: > >> Thanks, this is okay for emacs-29. > > Andrew's fix is already in Emacs 29 and master (thanks).  Should I > close this bug or do we still wait for E [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64117 Cc: Andrew Cohen , 64117@debbugs.gnu.org, Eli Zaretskii , eric@ericabrahamsen.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Please go ahead and close. Jul 2, 2023 05:06:06 Jens Schmidt : > On 2023-06-21=C2=A0 16:34, Eli Zaretskii wrote: > >> Thanks, this is okay for emacs-29. > > Andrew's fix is already in Emacs 29 and master (thanks).=C2=A0 Should I= =20 > close this bug or do we still wait for Eric's feedback? From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 19:54:57 2023 Received: (at 64117) by debbugs.gnu.org; 1 Jul 2023 23:54:57 +0000 Received: from localhost ([127.0.0.1]:58894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFkQa-0004eV-Qu for submit@debbugs.gnu.org; Sat, 01 Jul 2023 19:54:57 -0400 Received: from mail.ericabrahamsen.net ([52.70.2.18]:32902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFkQY-0004eF-Gv for 64117@debbugs.gnu.org; Sat, 01 Jul 2023 19:54:55 -0400 Received: from localhost (c-71-197-232-41.hsd1.wa.comcast.net [71.197.232.41]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id D7D95FA002; Sat, 1 Jul 2023 23:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1688255688; bh=VE6lLZOLo+y5lnVAqITiuAVBqM96+72TBl4lHaWwC4M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZNWflUmmGlLPwNuvFQTx8Bp/WxsZSJ5OV59Rc2z6URDPmWD9DuLIW820WR593NPQ+ SU8t3NOdprpNBbk/zE3xfWUUEIK8lCBea4LzZlXtPXJpzQ5QHbpAFm4m5jS/Otec58 rRdwkRUWyf99G0ea2VITGz10XorfmHpJess56Q8k= From: Eric Abrahamsen To: Andrew Cohen Subject: Re: bug#64117: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer In-Reply-To: <77853024-258e-4c21-b363-25ed9fbdf3bd@andy.bu.edu> (Andrew Cohen's message of "Sun, 2 Jul 2023 06:52:14 +0800 (GMT+08:00)") References: <9826451c-fe68-ccc2-ecc8-dc23b6710f40@vodafonemail.de> <87fs6kapmy.fsf@ust.hk> <83mt0s52du.fsf@gnu.org> <878rccao9e.fsf@ust.hk> <83legc51f8.fsf@gnu.org> <1d74471d-5c57-a9d9-d52f-3bec1aef7250@vodafonemail.de> <77853024-258e-4c21-b363-25ed9fbdf3bd@andy.bu.edu> Date: Sat, 01 Jul 2023 16:54:44 -0700 Message-ID: <87o7kv2nnf.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64117 Cc: Andrew Cohen , 64117@debbugs.gnu.org, Eli Zaretskii , Jens Schmidt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On 07/02/23 06:52 AM, Andrew Cohen wrote: > Please go ahead and close. > > Jul 2, 2023 05:06:06 Jens Schmidt : > >> On 2023-06-21=C2=A0 16:34, Eli Zaretskii wrote: >> >>> Thanks, this is okay for emacs-29. >> >> Andrew's fix is already in Emacs 29 and master (thanks).=C2=A0 Should I >> close this bug or do we still wait for Eric's feedback? Thanks to all for taking care of this! From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 02 03:15:25 2023 Received: (at 64117-done) by debbugs.gnu.org; 2 Jul 2023 07:15:25 +0000 Received: from localhost ([127.0.0.1]:59086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFrIr-0007nM-GG for submit@debbugs.gnu.org; Sun, 02 Jul 2023 03:15:25 -0400 Received: from mr4.vodafonemail.de ([145.253.228.164]:44784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFrIn-0007n5-HA for 64117-done@debbugs.gnu.org; Sun, 02 Jul 2023 03:15:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1688282116; bh=mOAJjxQN35fAZisfVlM4+zKt7ek1idwCOK4CMyQjggw=; h=Message-ID:Date:User-Agent:Subject:Content-Language:To:References: From:In-Reply-To:Content-Type:From; b=YyDov5/YeJLyC99GRKfy/r0Vzn1WGsqBlLaPGyCXac5bwOGpcolrD/hL4F/58C9y5 x+e4psCoOj4fIkeaapWmWrAXm6IOVMffOzz8NDiO5yRuIEL8EchdNv7DbzMVlnhUrq Bt0Oblp/ICEuRds5fxOWEK0C0jkx6W3Un3CRoCoc= Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr4.vodafonemail.de (Postfix) with ESMTPS id 4Qv0gl5DWjz21dR; Sun, 2 Jul 2023 07:15:15 +0000 (UTC) Received: from [192.168.178.41] (port-92-194-170-181.dynamic.as20676.net [92.194.170.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4Qv0gV4YlWzMmX9; Sun, 2 Jul 2023 07:14:59 +0000 (UTC) Message-ID: <4dc1c34e-837c-71f2-3fd7-5c420fc63a1a@vodafonemail.de> Date: Sun, 2 Jul 2023 09:14:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: bug#64117: 28.2; "gnus-request-set-mark: Buffer is read-only" when exiting agentized, unplugged summary buffer Content-Language: de-DE-frami, en-US To: Eric Abrahamsen , Andrew Cohen References: <9826451c-fe68-ccc2-ecc8-dc23b6710f40@vodafonemail.de> <87fs6kapmy.fsf@ust.hk> <83mt0s52du.fsf@gnu.org> <878rccao9e.fsf@ust.hk> <83legc51f8.fsf@gnu.org> <1d74471d-5c57-a9d9-d52f-3bec1aef7250@vodafonemail.de> <77853024-258e-4c21-b363-25ed9fbdf3bd@andy.bu.edu> <87o7kv2nnf.fsf@ericabrahamsen.net> From: Jens Schmidt In-Reply-To: <87o7kv2nnf.fsf@ericabrahamsen.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-purgate-type: clean X-purgate: clean X-purgate-size: 117 X-purgate-ID: 155817::1688282115-00DFDEE7-E18FAD18/0/0 X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 64117-done Cc: Andrew Cohen , 64117-done@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) On 2023-07-02 01:54, Eric Abrahamsen wrote: > Thanks to all for taking care of this! Same here. Closed. From unknown Wed Jun 25 09:08:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 30 Jul 2023 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator