GNU bug report logs - #23444
25.0.92; activate-mark-hook does not run after a command has changed the region

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Nicolas Richard <youngfrog@HIDDEN>; dated Wed, 4 May 2016 12:06:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 23444 <at> debbugs.gnu.org:


Received: (at 23444) by debbugs.gnu.org; 4 May 2016 16:46:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 04 12:46:44 2016
Received: from localhost ([127.0.0.1]:38061 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1axzwi-0001WS-DG
	for submit <at> debbugs.gnu.org; Wed, 04 May 2016 12:46:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52338)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1axzwh-0001WA-9B
 for 23444 <at> debbugs.gnu.org; Wed, 04 May 2016 12:46:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1axzwS-0008MU-NC
 for 23444 <at> debbugs.gnu.org; Wed, 04 May 2016 12:46:34 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51907)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1axzwS-0008M1-JW; Wed, 04 May 2016 12:46:28 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2302
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1axzwM-0003eX-Hf; Wed, 04 May 2016 12:46:23 -0400
Date: Wed, 04 May 2016 19:46:30 +0300
Message-Id: <83h9edixeh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Nicolas Richard <youngfrog@HIDDEN>
In-reply-to: <87y47qowr2.fsf@HIDDEN> (message from Nicolas Richard on Wed, 
 04 May 2016 14:04:01 +0200)
Subject: Re: bug#23444: 25.0.92;
 activate-mark-hook does not run after a command has changed the region
References: <87y47qowr2.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -7.1 (-------)
X-Debbugs-Envelope-To: 23444
Cc: 23444 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -7.1 (-------)

> From: Nicolas Richard <youngfrog@HIDDEN>
> Date: Wed, 04 May 2016 14:04:01 +0200
> 
> (side note : in the git repo these docstrings were introduced in commit
> 0251bafb90e63cc7f428e1b91db436c32ad2677c authored by Richard Stallman.
> In the lisp/ChangeLog.12 the author of those lines is said to be Chong
> Yidong. I guess I will pretend I did not see this.)

You don't need to pretend.  I'm quite sure Chong wrote the code and
Richard just committed the change, for some reason.  CVS doesn't have
the equivalent of the --author switch to the 'commit' command, so you
will see a lot of similar cases in old commits.  E.g., all of my
commits were done by Richard or others at first, until I got write
access several years later.

There's nothing funky here.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23444; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 May 2016 12:05:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 04 08:05:37 2016
Received: from localhost ([127.0.0.1]:36497 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1axvYe-0007fg-Qa
	for submit <at> debbugs.gnu.org; Wed, 04 May 2016 08:05:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57295)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <youngfrog@HIDDEN>) id 1axvYd-0007fU-6w
 for submit <at> debbugs.gnu.org; Wed, 04 May 2016 08:05:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <youngfrog@HIDDEN>) id 1axvYO-00045j-Iz
 for submit <at> debbugs.gnu.org; Wed, 04 May 2016 08:05:26 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:48383)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <youngfrog@HIDDEN>) id 1axvYO-00044o-G0
 for submit <at> debbugs.gnu.org; Wed, 04 May 2016 08:05:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48237)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <youngfrog@HIDDEN>) id 1axvYC-0007aN-DN
 for bug-gnu-emacs@HIDDEN; Wed, 04 May 2016 08:05:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <youngfrog@HIDDEN>) id 1axvXy-0003ul-Fl
 for bug-gnu-emacs@HIDDEN; Wed, 04 May 2016 08:05:00 -0400
Received: from mxin.ulb.ac.be ([164.15.128.112]:53682)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <youngfrog@HIDDEN>) id 1axvXy-0003qv-AR
 for bug-gnu-emacs@HIDDEN; Wed, 04 May 2016 08:04:54 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AkUGAMbkKVekD4Xx/2dsb2JhbABegmeBJH2lLQIBGwaBD5ULGod+AQEBAQEBZieEQwR/EyQ0AYkCCJwNoRyFWIoghQ0Fl1VEl0WFZo80YoE2DAFCG4FNOjCIPAEBAQ
Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241])
 by smtp.ulb.ac.be with ESMTP/TLS/AES128-SHA; 04 May 2016 14:03:50 +0200
From: Nicolas Richard <youngfrog@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.92;
 activate-mark-hook does not run after a command has changed the region
User-agent: mu4e 0.9.17; emacs 25.0.92.1
Date: Wed, 04 May 2016 14:04:01 +0200
Message-ID: <87y47qowr2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

activate-mark-hook contains the following in its docstring:

> It is also run at the end of a command, if the mark is active and
> it is possible that the region may have changed.

However, when changing the region, nothing happens. As an example I
tried evaluating:

(defun foo ()
  (message "ran: %s" this-command))
(add-hook 'activate-mark-hook 'foo)

then using C-M-SPC (mark-sexp) correctly showed "ran: mark-sexp", but
moving the cursor afterwards doesn't produce any more message.

FWIW this was mentionned in bug#902 (and then promptly forgotten, due to
the main topic being something else in that report).

(side note : in the git repo these docstrings were introduced in commit
0251bafb90e63cc7f428e1b91db436c32ad2677c authored by Richard Stallman.
In the lisp/ChangeLog.12 the author of those lines is said to be Chong
Yidong. I guess I will pretend I did not see this.)

In GNU Emacs 25.0.92.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2016-03-04 built on localhost
Repository revision: 620951fe22a6ecc2edc1f78d961f52566a7fe2b6
Windowing system distributor 'The X.Org Foundation', version 11.0.11604000
System Description:	Gentoo Base System release 2.2

Configured using:
 'configure --with-x-toolkit=lucid 'CFLAGS= ''

-- 
Nicolas Richard




Acknowledgement sent to Nicolas Richard <youngfrog@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#23444; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 4 May 2016 17:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.