From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.help Subject: RE: post-self-insert-hook being reset? Date: Wed, 17 Jun 2015 16:31:19 +0000 Message-ID: <35989F6A4F38F84D8F90745AC30F99790ACAFCB5@EXMBDB01.campus.ncl.ac.uk> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1434558724 24474 80.91.229.3 (17 Jun 2015 16:32:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2015 16:32:04 +0000 (UTC) To: Sam Halliday , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 17 18:31:53 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 1Z5GFj-00037g-HH for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2015 18:31:51 +0200 Original-Received: from localhost ([::1]:48020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5GFi-000309-Oe for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2015 12:31:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5GFS-0002sn-8g for help-gnu-emacs@gnu.org; Wed, 17 Jun 2015 12:31:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5GFM-0000pA-S8 for help-gnu-emacs@gnu.org; Wed, 17 Jun 2015 12:31:34 -0400 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:48231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5GFM-0000iD-I1 for help-gnu-emacs@gnu.org; Wed, 17 Jun 2015 12:31:28 -0400 Original-Received: from exhubvm01.ncl.ac.uk ([128.240.234.5] helo=EXHUBVM01.campus.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1Z5GFK-00043G-Br; Wed, 17 Jun 2015 17:31:26 +0100 Original-Received: from EXMBDB01.campus.ncl.ac.uk ([fe80::20fe:2208:9f88:3e6e]) by EXHUBVM01.campus.ncl.ac.uk ([2002:80f0:ea05::80f0:ea05]) with mapi id 14.03.0158.001; Wed, 17 Jun 2015 17:31:19 +0100 Thread-Topic: post-self-insert-hook being reset? Thread-Index: AQHQqRdwmEHGgLN7b0SoNNB+9bsQ+52w45NQ In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.4.160.7] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.12 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:105008 Archived-At: 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 ge= tting hung. I guess post-self-insert-hook=20 is one of these. It's a PITA to debug from lisp I am afraid. ________________________________________ From: help-gnu-emacs-bounces+phillip.lord=3Dnewcastle.ac.uk@gnu.org [help-g= nu-emacs-bounces+phillip.lord=3Dnewcastle.ac.uk@gnu.org] on behalf of Sam H= alliday [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 ca= lled 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 an= ything is resetting the post-self-insert-hook list, but everything looks we= ll 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