From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: post-self-insert-hook being reset? Date: Thu, 18 Jun 2015 16:51:52 +0100 Message-ID: <87lhfhovzb.fsf@newcastle.ac.uk> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434642748 19846 80.91.229.3 (18 Jun 2015 15:52:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2015 15:52:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 18 17:52:27 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 1Z5c6x-0001RN-Uk for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jun 2015 17:52:16 +0200 Original-Received: from localhost ([::1]:53453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5c6x-0007oR-8j for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jun 2015 11:52:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5c6g-0007nl-PS for help-gnu-emacs@gnu.org; Thu, 18 Jun 2015 11:52:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5c6c-00005g-FG for help-gnu-emacs@gnu.org; Thu, 18 Jun 2015 11:51:58 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:39541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5c6c-00005M-93 for help-gnu-emacs@gnu.org; Thu, 18 Jun 2015 11:51:54 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1Z5c6b-0005b0-EF; Thu, 18 Jun 2015 16:51:53 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1Z5c6a-0006bJ-Dl; Thu, 18 Jun 2015 16:51:52 +0100 In-Reply-To: (Stefan Monnier's message of "Wed, 17 Jun 2015 13:15:19 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 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:105034 Archived-At: Stefan Monnier writes: >> There are a class of hooks (post-command-hook, after-change-functions) >> that nil themselves on error. > > Actually, these have been refined since to only remove the offending > function rather than set themselves straight to nil. > And they emit a warning when that happens. Oh, that's interesting. I've been so used to dealing with this in my packages, that I hadn't seen that change. >> I guess post-self-insert-hook is one of these. > > That was a good guess, but: > > src/cmds.c: run_hook (Qpost_self_insert_hook); > > so, no, it's run "in the normal way". 'Must be something else. Ah, my fantastic guess bought to the grounds by cruel reality. Phil