help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: post-self-insert-hook being reset?


From: Phillip Lord
Subject: RE: post-self-insert-hook being reset?
Date: Wed, 17 Jun 2015 16:31:19 +0000

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.
________________________________________
From: help-gnu-emacs-bounces+phillip.lord=newcastle.ac.uk@gnu.org 
[help-gnu-emacs-bounces+phillip.lord=newcastle.ac.uk@gnu.org] on behalf of Sam 
Halliday [sam.halliday@gmail.com]
Sent: 17 June 2015 17:02
To: help-gnu-emacs@gnu.org
Subject: post-self-insert-hook being reset?

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]