all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: phillip.lord@newcastle.ac.uk (Phillip Lord)
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: post-self-insert-hook being reset?
Date: Thu, 18 Jun 2015 16:51:52 +0100	[thread overview]
Message-ID: <87lhfhovzb.fsf@newcastle.ac.uk> (raw)
In-Reply-To: <jwv616mdzrz.fsf-monnier+gnu.emacs.help@gnu.org> (Stefan Monnier's message of "Wed, 17 Jun 2015 13:15:19 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> There are a class of hooks (post-command-hook, after-change-functions)
>> that nil themselves on error.
>
> Actually, these have been refined since to only remove the offending
> function rather than set themselves straight to nil.
> And they emit a warning when that happens.


Oh, that's interesting. I've been so used to dealing with this in my
packages, that I hadn't seen that change.


>> I guess post-self-insert-hook  is one of these.
>
> That was a good guess, but:
>
>    src/cmds.c:  run_hook (Qpost_self_insert_hook);
>
> so, no, it's run "in the normal way".  'Must be something else.


Ah, my fantastic guess bought to the grounds by cruel reality.

Phil



      parent reply	other threads:[~2015-06-18 15:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17 16:02 post-self-insert-hook being reset? Sam Halliday
2015-06-17 16:31 ` Phillip Lord
     [not found] ` <mailman.5172.1434558699.904.help-gnu-emacs@gnu.org>
2015-06-17 17:14   ` Sam Halliday
2015-06-17 17:15   ` Stefan Monnier
2015-06-17 20:46     ` Sam Halliday
2015-06-18  1:43       ` Stefan Monnier
2015-06-18  1:44       ` Stefan Monnier
2015-06-18 15:51     ` Phillip Lord [this message]

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=87lhfhovzb.fsf@newcastle.ac.uk \
    --to=phillip.lord@newcastle.ac.uk \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.