From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66313: Acknowledgement (29.1.50; process-mark sometimes does not yield the expected value) Date: Sat, 07 Oct 2023 18:56:21 +0300 Message-ID: <83pm1qzasa.fsf@gnu.org> References: <87jzrytt6d.fsf@metalevel.at> <83ttr2zd8g.fsf@gnu.org> <87sf6mv4db.fsf@metalevel.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28126"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66313@debbugs.gnu.org To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 07 17:57:03 2023 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 1qp9fr-00076R-5S for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Oct 2023 17:57:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qp9fa-0007Xd-Ff; Sat, 07 Oct 2023 11:56:46 -0400 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 1qp9fX-0007X4-Uy for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 11:56:44 -0400 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 1qp9fX-0000QI-4B for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 11:56:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qp9fq-0002Nt-Hs for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 11:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Oct 2023 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66313 X-GNU-PR-Package: emacs Original-Received: via spool by 66313-submit@debbugs.gnu.org id=B66313.16966941969118 (code B ref 66313); Sat, 07 Oct 2023 15:57:02 +0000 Original-Received: (at 66313) by debbugs.gnu.org; 7 Oct 2023 15:56:36 +0000 Original-Received: from localhost ([127.0.0.1]:55713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp9fP-0002Mz-Pf for submit@debbugs.gnu.org; Sat, 07 Oct 2023 11:56:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp9fN-0002Ml-T3 for 66313@debbugs.gnu.org; Sat, 07 Oct 2023 11:56:34 -0400 Original-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 1qp9ey-0000J9-Hz; Sat, 07 Oct 2023 11:56:08 -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=rhcgtq7AQ4mgtOQxW4Fpy+obPEt3GRqr0iuC6daTnpI=; b=PRz5zN96sbo3 JsjS1ExB3egp7cuHT0nL5XvK/ObQBhBX4ZQP3LOrFy/lmKB0Xg3qmS/qojDkv4n+8a86uROmYrzSi frkHn1ZILCfyENWOmQfqJqnM8ZeHySCgGCqUxxeCe1Ag6NQcaQNt5mP9W02e5aLi9DNFDMm2tZn13 aUpkHatlwbhQoUlFwIMSIQ7Mn1V1NutjQs6gCk6wYUFm4VxnkwnUTXpRMfmA39UDv/jA38i2U61GS df6PfupBYLWVoilZY8Nfuj7RGxYDnW9EIOXpwPcs4gM/Mi7psf8Ngp/NMnl35YoNPimVO+kWMo07A BMuja7DIdsyVoRGPCDbx1Q==; In-Reply-To: <87sf6mv4db.fsf@metalevel.at> (message from Markus Triska on Sat, 07 Oct 2023 17:28:32 +0200) 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:272020 Archived-At: > From: Markus Triska > Cc: 66313-done@debbugs.gnu.org > Date: Sat, 07 Oct 2023 17:28:32 +0200 > > Eli Zaretskii writes: > > > I fixed this on the emacs-29 branch > > Thank you! I now found the related issue #43573, where Lars states: > > "If this breaks anything (and that is possible -- somebody could be > using `process-mark' as a weird way to keep track of what the > previous buffer was -- it should be reverted." > > Also, I found commit 7b3e94b6648ed00c6948c09267894b548b2868e7, where the > following (then) new piece of documentation was added to processes.texi: > > if non-@code{nil}, the process mark will be > set to point to the end of @var{buffer}. > > When I wrote ediprolog.el, this was not documented as such. > > Is the behaviour now consistent with the documentation, or must the > documentation or behaviour be changed? Should the change introduced in > #43573 be reverted as indicated above, because it broke something? I see no need to revert the patch nor update the documentation. You have just bumped into a gray area, where the process mark was not associated with a buffer, but set-marker (which is unrelated to processes) just happened to associate the mark with the same buffer which you later used in set-process-buffer. This is borderline-invalid code, but since it was easy to avoid moving the marker if the marker's buffer is already the same as the one set by set-process-buffer, I preferred to do that, rather than making any disruptive changes so much time after that bug#43573 fix was installed.