From: Stefan Monnier <monnier@iro.umontreal.ca>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: post-command-hook
Date: Sat, 02 Apr 2011 17:40:17 -0400 [thread overview]
Message-ID: <jwvaag849js.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4D95F608.8020501@gmx.at> (martin rudalics's message of "Fri, 01 Apr 2011 17:58:00 +0200")
> (defun foo ()
> (message "foo"))
> (defun bar ()
> (message "bar"))
> (add-hook 'post-command-hook 'foo)
> (add-hook 'post-command-hook 'bar nil t)
I think the patch below fixes it,
Stefan
=== modified file 'src/keyboard.c'
--- src/keyboard.c 2011-04-02 18:34:05 +0000
+++ src/keyboard.c 2011-04-02 21:37:19 +0000
@@ -1815,7 +1815,8 @@
safe_run_hooks_1 (void)
{
eassert (CONSP (Vinhibit_quit));
- return call0 (XCDR (Vinhibit_quit));
+ call0 (XCDR (Vinhibit_quit));
+ return Qnil;
}
/* Subroutine for safe_run_hooks: handle an error by clearing out the function
next prev parent reply other threads:[~2011-04-02 21:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-01 15:58 post-command-hook martin rudalics
2011-04-01 18:05 ` post-command-hook Antoine Levitt
2011-04-02 7:02 ` post-command-hook martin rudalics
2011-04-02 8:36 ` post-command-hook Antoine Levitt
2011-04-02 14:25 ` post-command-hook Juanma Barranquero
2011-04-02 21:40 ` Stefan Monnier [this message]
2011-04-02 22:00 ` post-command-hook Antoine Levitt
2011-04-02 22:38 ` post-command-hook Johan Bockgård
2011-04-04 1:09 ` post-command-hook Stefan Monnier
2011-04-03 7:38 ` post-command-hook martin rudalics
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=jwvaag849js.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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.