From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kcin@mytrashmail.com Newsgroups: gmane.emacs.help Subject: Re: Modifying a hook while it's being executed Date: 8 Aug 2005 13:21:13 -0700 Organization: http://groups.google.com Message-ID: <1123532473.866506.127840@g49g2000cwa.googlegroups.com> References: <1123527107.210947.112180@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1123532620 5921 80.91.229.2 (8 Aug 2005 20:23:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2005 20:23:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 08 22:23:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2E8T-00043k-MR for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Aug 2005 22:22:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2EBV-0002tX-5v for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Aug 2005 16:25:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g49g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 81.183.148.224 Original-X-Trace: posting.google.com 1123532485 30311 127.0.0.1 (8 Aug 2005 20:21:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 8 Aug 2005 20:21:25 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g49g2000cwa.googlegroups.com; posting-host=81.183.148.224; posting-account=G5bQEgwAAADqPxbZjispQ9P3KRK-n6tJ Original-Xref: shelby.stanford.edu gnu.emacs.help:133042 Original-To: help-gnu-emacs@gnu.org 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:28561 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28561 rgb wrote: > > This line appears in remove-hook. > > (setq hook-value (delete function (copy-sequence hook-value))) > > It makes me think that a change to the hook's value will not > be visible to the present execution of the run-hooks command. > So I'd say it appears to be perfectly safe. Yes, it seems OK. However I wonder why it is not simply (setq hook-value (remove function hook-value)) remove also returns a copy. Is there a difference?