From: Sam Halliday <sam.halliday@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: post-self-insert-hook being reset?
Date: Wed, 17 Jun 2015 13:46:37 -0700 (PDT) [thread overview]
Message-ID: <ce6239ae-06d3-448e-890d-7638643f6b38@googlegroups.com> (raw)
In-Reply-To: <jwv616mdzrz.fsf-monnier+gnu.emacs.help@gnu.org>
On Wednesday, 17 June 2015 18:15:21 UTC+1, Stefan Monnier wrote:
> > 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.
>
> > 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.
Thanks Stefan.
Is there anything else that could be removing the member? The only place I can see where the list is wiped is the lisp/subr.el function when reading a password and I don't think that's relevant. And I can't see anywhere where a single hook is removed.
I noticed that scala-mode is setting post-self-insert-hook to be a local variable, but that doesn't explain why this specific post-self-insert-hook is being wiped from all major modes. https://github.com/hvesalai/scala-mode2/blob/master/scala-mode2.el#L92
I'm not seeing any errors in the *Messages* buffer.
Best regards,
Sam
next prev parent reply other threads:[~2015-06-17 20:46 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 [this message]
2015-06-18 1:43 ` Stefan Monnier
2015-06-18 1:44 ` Stefan Monnier
2015-06-18 15:51 ` Phillip Lord
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=ce6239ae-06d3-448e-890d-7638643f6b38@googlegroups.com \
--to=sam.halliday@gmail.com \
--cc=help-gnu-emacs@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.