From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: david@adboyd.com (J. David Boyd) Newsgroups: gmane.emacs.help Subject: Re: Modifying a hook while it's being executed Date: Mon, 08 Aug 2005 11:42:32 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123516675 19587 80.91.229.2 (8 Aug 2005 15:57:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2005 15:57:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 08 17:57:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2A0b-0005pj-Bj for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Aug 2005 17:57:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2A3c-00025x-4u for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Aug 2005 12:00:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2A1I-0001RX-4j for help-gnu-emacs@gnu.org; Mon, 08 Aug 2005 11:58:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2A1D-0001Px-Km for help-gnu-emacs@gnu.org; Mon, 08 Aug 2005 11:58:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2A1A-0001I8-7R for help-gnu-emacs@gnu.org; Mon, 08 Aug 2005 11:58:24 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E2A48-0001wK-7h for help-gnu-emacs@gnu.org; Mon, 08 Aug 2005 12:01:28 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E29of-0004Ef-1d for help-gnu-emacs@gnu.org; Mon, 08 Aug 2005 17:45:29 +0200 Original-Received: from 6532248hfc164.tampabay.res.rr.com ([65.32.248.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Aug 2005 17:45:29 +0200 Original-Received: from david by 6532248hfc164.tampabay.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Aug 2005 17:45:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 11 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 6532248hfc164.tampabay.res.rr.com User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:rE1xQLrR5bAM/9EeDjjH2O5cqj0= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28552 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28552 PT writes: > Is it safe? I haven't seen it anywhere stated explicitly. > > For example, I add a hook function to pre-command-hook or > post-command-hook which removes itself from the hook when invoked. > Does it blow up emacs? If not, then it is probably safe! Dave