From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] whitespace.el leaves a spurious entry in post-command-hook Date: Sun, 08 Aug 2010 22:23:46 -0400 Message-ID: <878w4ged71.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281320651 15652 80.91.229.12 (9 Aug 2010 02:24:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Aug 2010 02:24:11 +0000 (UTC) Cc: Emacs development discussions To: Geoff Gole Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 09 04:24:10 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OiI22-0001aZ-21 for ged-emacs-devel@m.gmane.org; Mon, 09 Aug 2010 04:24:06 +0200 Original-Received: from localhost ([127.0.0.1]:43843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiI1r-0004H2-JX for ged-emacs-devel@m.gmane.org; Sun, 08 Aug 2010 22:23:55 -0400 Original-Received: from [140.186.70.92] (port=39385 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiI1m-0004Gu-CG for emacs-devel@gnu.org; Sun, 08 Aug 2010 22:23:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiI1l-00017y-0I for emacs-devel@gnu.org; Sun, 08 Aug 2010 22:23:50 -0400 Original-Received: from pantheon-po44.its.yale.edu ([130.132.50.78]:56731) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiI1k-00017q-Uw for emacs-devel@gnu.org; Sun, 08 Aug 2010 22:23:48 -0400 Original-Received: from furry (adsl-99-69-53-219.dsl.wlfrct.sbcglobal.net [99.69.53.219]) (authenticated bits=0) by pantheon-po44.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o792Nk1J013982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 8 Aug 2010 22:23:47 -0400 Original-Received: by furry (Postfix, from userid 1000) id 2ED5CC013; Sun, 8 Aug 2010 22:23:46 -0400 (EDT) In-Reply-To: (Geoff Gole's message of "Mon, 9 Aug 2010 06:35:26 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128444 Archived-At: Geoff Gole writes: > Start an emacs -Q and do M-x whitespace-mode twice. There will be a > local entry left in post-command-hook. > > The cause is that an appropriate call to remove-hook exists, but lacks > the `local' argument. The fix is to add it: Thanks. I've checked your fix into the emacs-23 branch.