From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: Re: post-self-insert-hook being reset? Date: Wed, 17 Jun 2015 10:14:03 -0700 (PDT) Message-ID: <229e776e-94ed-4e10-9522-07efd46f9e9d@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1434561389 4483 80.91.229.3 (17 Jun 2015 17:16:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2015 17:16:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 17 19:16:21 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z5Gwf-0002eI-VW for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2015 19:16:14 +0200 Original-Received: from localhost ([::1]:48225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Gwf-0007rG-50 for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2015 13:16:13 -0400 X-Received: by 10.140.129.199 with SMTP id 190mr8567801qhb.2.1434561243799; Wed, 17 Jun 2015 10:14:03 -0700 (PDT) X-Received: by 10.140.109.35 with SMTP id k32mr43336qgf.34.1434561243784; Wed, 17 Jun 2015 10:14:03 -0700 (PDT) Original-Path: usenet.stanford.edu!q107no1768452qgd.0!news-out.google.com!4ni2037qgh.1!nntp.google.com!q107no1768451qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.244.128.25; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 83.244.128.25 User-Agent: G2/1.0 Injection-Date: Wed, 17 Jun 2015 17:14:03 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:212727 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105011 Archived-At: 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