From: Nicolas Richard <youngfrog@members.fsf.org>
To: 23444@debbugs.gnu.org
Subject: bug#23444: 25.0.92; activate-mark-hook does not run after a command has changed the region
Date: Wed, 04 May 2016 14:04:01 +0200 [thread overview]
Message-ID: <87y47qowr2.fsf@ulb.ac.be> (raw)
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
next reply other threads:[~2016-05-04 12:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-04 12:04 Nicolas Richard [this message]
2016-05-04 16:46 ` bug#23444: 25.0.92; activate-mark-hook does not run after a command has changed the region Eli Zaretskii
2021-02-07 13:30 ` Lars Ingebrigtsen
2021-02-07 15:21 ` Eli Zaretskii
2021-02-07 21:01 ` Lars Ingebrigtsen
2021-02-08 6:44 ` Nicolas Richard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y47qowr2.fsf@ulb.ac.be \
--to=youngfrog@members.fsf.org \
--cc=23444@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).