From: Phillip Lord <phillip.lord@newcastle.ac.uk>
To: Sam Halliday <sam.halliday@gmail.com>,
"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: post-self-insert-hook being reset?
Date: Wed, 17 Jun 2015 16:31:19 +0000 [thread overview]
Message-ID: <35989F6A4F38F84D8F90745AC30F99790ACAFCB5@EXMBDB01.campus.ncl.ac.uk> (raw)
In-Reply-To: <dba4b79c-9f47-4673-bdeb-1f81eabdb2ed@googlegroups.com>
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
next prev parent reply other threads:[~2015-06-17 16:31 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 [this message]
[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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=35989F6A4F38F84D8F90745AC30F99790ACAFCB5@EXMBDB01.campus.ncl.ac.uk \
--to=phillip.lord@newcastle.ac.uk \
--cc=help-gnu-emacs@gnu.org \
--cc=sam.halliday@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).