From: Kelly Dean <kellydeanch@yahoo.com>
To: 13027@debbugs.gnu.org
Subject: bug#13027: Activating mark does not run mark activation hook
Date: Thu, 29 Nov 2012 02:08:19 -0800 (PST) [thread overview]
Message-ID: <1354183699.65442.YahooMailClassic@web141104.mail.bf1.yahoo.com> (raw)
In 24.2, from emacs -Q
(add-hook 'deactivate-mark-hook (lambda () (message "Deactivate mark hook called.")))
(add-hook 'activate-mark-hook (lambda () (message "Activate mark hook called.")))
C-SPC C-SPC C-SPC C-SPC
In *Messages* you get:
Mark set
Activate mark hook called.
Deactivate mark hook called.
Mark deactivated
Mark activated
Deactivate mark hook called.
Mark deactivated
Notice that the second "Activate mark hook called" is missing.
simple.el has:
(defun activate-mark ()
"Activate the mark."
(when (mark t)
(setq mark-active t)
(unless transient-mark-mode
(setq transient-mark-mode 'lambda))))
The bug is fixed by changing that to:
(defun activate-mark ()
"Activate the mark."
(when (mark t)
(setq mark-active t)
(run-hooks 'activate-mark-hook)
(unless transient-mark-mode
(setq transient-mark-mode 'lambda))))
next reply other threads:[~2012-11-29 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-29 10:08 Kelly Dean [this message]
2012-11-29 20:10 ` bug#13027: Activating mark does not run mark activation hook Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1354183699.65442.YahooMailClassic@web141104.mail.bf1.yahoo.com \
--to=kellydeanch@yahoo.com \
--cc=13027@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.