From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#68510: Bug in gnus' C-u S v Date: Fri, 19 Jan 2024 14:29:37 -0800 Message-ID: <877ck5q7n2.fsf@ericabrahamsen.net> References: <87jzo5a65y.fsf@gmx.de> <87mst1qp72.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11041"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 68510@debbugs.gnu.org To: Tomas Volf <~@wolfsden.cz> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 19 23:30:16 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rQxNO-0002fA-00 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Jan 2024 23:30:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQxNC-00040o-BX; Fri, 19 Jan 2024 17:30:02 -0500 Original-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 1rQxNA-000403-8N for bug-gnu-emacs@gnu.org; Fri, 19 Jan 2024 17:30:00 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQxN9-000697-W5 for bug-gnu-emacs@gnu.org; Fri, 19 Jan 2024 17:30:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQxNC-0006Hb-Ct for bug-gnu-emacs@gnu.org; Fri, 19 Jan 2024 17:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Jan 2024 22:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68510 X-GNU-PR-Package: emacs Original-Received: via spool by 68510-submit@debbugs.gnu.org id=B68510.170570339024109 (code B ref 68510); Fri, 19 Jan 2024 22:30:02 +0000 Original-Received: (at 68510) by debbugs.gnu.org; 19 Jan 2024 22:29:50 +0000 Original-Received: from localhost ([127.0.0.1]:60355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQxMz-0006Gk-GB for submit@debbugs.gnu.org; Fri, 19 Jan 2024 17:29:50 -0500 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:37840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQxMx-0006GW-N7 for 68510@debbugs.gnu.org; Fri, 19 Jan 2024 17:29:48 -0500 Original-Received: from localhost (71-212-21-65.tukw.qwest.net [71.212.21.65]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id A6C02FA011; Fri, 19 Jan 2024 22:29:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1705703378; bh=dS7ukY58BVhcn3fP8kq6c0teCz2u8S5gnQK1fkcHIKI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=xP65gapx9NwzmBasblrTaDK3vxmuY5bCqnxwEx/BENm81B45BtI2kYHUb8Wo47OM4 TCmMVssNHQEgyoeRUe0jP7fBnnvkf/3bO3Tg6qK+nsvhEC3oUAEjfjvQe3yAYxfHw1 EOKvjp1TomZ39jAmlkYenUl8J6rZd8Chkh9xAQeo= In-Reply-To: (Tomas Volf's message of "Fri, 19 Jan 2024 18:05:23 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278547 Archived-At: On 01/19/24 18:05 PM, Tomas Volf wrote: > On 2024-01-19 08:10:25 -0800, Eric Abrahamsen wrote: >> >> On 01/19/24 12:55 PM, Michael Albinus wrote: >> > Tomas Volf <~@wolfsden.cz> writes: >> > >> >> Hello, >> > >> > Hi Tomas, >> > >> >> I think I found a bug in debbugs, however I am not sure if the bug is in >> >> documentation or in the code. Steps to reproduce (in emacs -Q): >> >> >> >> In *scratch* buffer: >> >> (require 'debbugs-gnu) >> >> (debbugs-gnu-bugs 66531) >> >> >> >> In the new buffer open the message and navigate cursor to last message from Mike >> >> Gran (47: ). Now, when I want to reply, I press S v and it opens a buffer with >> >> (addresses are censored): >> >> >> >> To: Mike Gran >> >> Cc: Tomas Volf , "xxx@debbugs-gnu-org" >> >> Subject: Re: bug#66531: [PATCH] ftw: Fix getuid-or-false, getgid-or-false macros. >> >> From: me@hostname.mail-host-address-is-not-set >> >> --text follows this line-- >> >> >> >> So far that is expected. However when I want to quote the original message, I can, based on the reading of the manual, use C-u S v: >> >> >> >>> If prefix argument YANK is non-nil, the original article(s) will be yanked >> >>> automatically. >> >> >> >> However while that does work, additional undocumented (and unwanted) changes are >> >> done as well,producing a following message: >> >> >> >> To: Mike Gran >> >> Cc: Tomas Volf , Tomas Volf , control@debbugs-gnu-org, >> >> xxx@debbugs-gnu-org >> >> Subject: Re: bug#66531: [PATCH] ftw: Fix getuid-or-false, >> >> getgid-or-false macros., bug#66531: [PATCH] ftw: Fix getuid-or-false, >> >> getgid-or-false macros., bug#66531: [PATCH] ftw: Fix getuid-or-false, >> >> getgid-or-false macros., bug#66531: [PATCH] ftw: Fix getuid-or-false, >> >> getgid-or-false macros., control message for bug #66531, control >> >> message for bug #66531 >> >> From: me@hostname.mail-host-address-is-not-set >> >> --text follows this line-- >> >> Mike Gran writes: >> >> >> >> [..] >> >> >> >> Notice that the subject is pretty weird, and for some reason there is a control >> >> server in the CC list. I do not know if this is expected (well, at least I did >> >> not expect it), but it at the very least does not seem to be documented. Based >> >> on my reading of the C-h k S v I would have expected just the "Mike Gran >> >> writes:" change. >> > >> > Zhanks for the report, I could reproduce it. However, it doesn't seem to >> > be a Debbugs bug, but rather a Gnus bug. I've reproduced it by using >> > Gnus w/o Debbugs. >> > >> > For this, I've started a new Emacs instance w/o debbugs. I've opened >> > Gnus, and browsed the gmane server {nntp:news.gmane.io} for the group >> > gmane.lisp.guile.bugs. Message 10682 is the one you've mentioned above. >> > >> > Typing in the Summary buffer 'C-u S v' shows the error. >> > >> > I'm therefore changing the subject, adding Eric Abrahamsen into Cc. >> >> I can't reproduce this exact result, but I can get buggy behavior -- in >> my case it pulls in the subject of the *next* message in my Summary >> buffer, in my case for bug #68506. Actually it seems to do a little >> something different every time, also depending on whether I have things >> edebugged or not. Fun! > > It is interesting you cannot reproduce it exactly. Now I see I forgot to state > an Emacs version (sorry!), I am using 29.1 release. But based on your > description this sounds indeed like a fun bug. > >> >> I suspect the prefix argument is being interpreted wrong somehow. It ended up being pretty obvious what was wrong: the prefix argument is being used *both* to signal that the original message should be yanked, and in the usual process/prefix convention, which is resulting in broken behavior. It should only do one, but I don't know which one yet, so please just don't use "S v" with a prefix argument -- if you need the original yanked, use "S V".