[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: post-self-insert-hook being reset?
From: |
Sam Halliday |
Subject: |
Re: post-self-insert-hook being reset? |
Date: |
Wed, 17 Jun 2015 10:14:03 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Wednesday, 17 June 2015 17:31:41 UTC+1, Phil Lord wrote:
> There are a class of hooks (post-command-hook, after-change-functions) that
> nil themselves on error.
>
> This normally happens at the C layer, and is there to prevent Emacs from
> getting hung. I guess post-self-insert-hook
> is one of these.
>
> It's a PITA to debug from lisp I am afraid.
Thanks. The weird thing is it looks like just this one hook is being removed...
does that sound right? If that's the case I can start to look at putting some
error handling into the hook and find the bug.
> ________________________________________
> Sent: 17 June 2015 17:02
>
> Hi all,
>
> I am using smartparens and it adds a really useful post-self-insert-hook
> called sp--post-self-insert-hook-handler.
>
> However, after a while of just general editing, the hook disappears!
>
> I've grepped my entire config, all my packages from MELPA etc, to see if
> anything is resetting the post-self-insert-hook list, but everything looks
> well behaved.
>
> Is there any standard emacs package, or error handling, that would remove a
> hook for some reason?
>
> FYI, my .emacs https://github.com/fommil/dotfiles/blob/master/.emacs.d/init.el
>
> Best regards,
> Sam