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#23444: 25.0.92; activate-mark-hook does not run after a command has changed the region Date: Sun, 07 Feb 2021 17:21:43 +0200 Message-ID: <83sg67nbso.fsf@gnu.org> References: <87y47qowr2.fsf@ulb.ac.be> <871rds6m44.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33438"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 23444@debbugs.gnu.org, youngfrog@members.fsf.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 07 16:22:08 2021 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 1l8lt2-0008a6-Dk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 16:22:08 +0100 Original-Received: from localhost ([::1]:40920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8lt1-0004dO-GJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 10:22:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8lsw-0004dG-6T for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 10:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8lsv-0000Hb-VN for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 10:22:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8lsv-0003UF-Qf for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 10:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2021 15:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23444 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 23444-submit@debbugs.gnu.org id=B23444.161271129913372 (code B ref 23444); Sun, 07 Feb 2021 15:22:01 +0000 Original-Received: (at 23444) by debbugs.gnu.org; 7 Feb 2021 15:21:39 +0000 Original-Received: from localhost ([127.0.0.1]:48485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8lsY-0003Tb-0b for submit@debbugs.gnu.org; Sun, 07 Feb 2021 10:21:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8lsW-0003TM-Uu for 23444@debbugs.gnu.org; Sun, 07 Feb 2021 10:21:37 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59666) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8lsR-0008V1-O9; Sun, 07 Feb 2021 10:21:31 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3855 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l8lsR-0002MP-4W; Sun, 07 Feb 2021 10:21:31 -0500 In-Reply-To: <871rds6m44.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 07 Feb 2021 14:30:51 +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" Xref: news.gmane.io gmane.emacs.bugs:199502 Archived-At: > From: Lars Ingebrigtsen > Date: Sun, 07 Feb 2021 14:30:51 +0100 > Cc: 23444@debbugs.gnu.org > > That is, the hook is only run if the command changes the buffer, which > then reactivates the mark. And I can confirm that that's how it's > actually working: If you mark a region in a buffer, switch to a > different buffer, and then back again, the hook is run (after the region > has been activated again). > > And that makes sense to me, I think? Does anybody know whether this is > how it's supposed to work? If so, the fix would be to alter the > documentation. Yes, I think the manual actually intended to describe what the implementation does, but failed to be accurate enough. So it needs to be fixed.