From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.devel Subject: Re: post-command-hook Date: Fri, 01 Apr 2011 20:05:54 +0200 Message-ID: <87k4fd3kzh.fsf@gmail.com> References: <4D95F608.8020501@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301681614 1680 80.91.229.12 (1 Apr 2011 18:13:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2011 18:13:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 01 20:13:30 2011 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 1Q5iqf-0007Wc-1y for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2011 20:13:29 +0200 Original-Received: from localhost ([127.0.0.1]:56823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5iqd-0007cp-Kw for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2011 14:13:27 -0400 Original-Received: from [140.186.70.92] (port=39214 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5ijh-0004e2-2g for emacs-devel@gnu.org; Fri, 01 Apr 2011 14:06:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5ijd-0000az-Ml for emacs-devel@gnu.org; Fri, 01 Apr 2011 14:06:14 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:49498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5ijd-0000al-Dt for emacs-devel@gnu.org; Fri, 01 Apr 2011 14:06:13 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q5ijW-0003xK-Sj for emacs-devel@gnu.org; Fri, 01 Apr 2011 20:06:06 +0200 Original-Received: from uni14-1-82-233-220-106.fbx.proxad.net ([82.233.220.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Apr 2011 20:06:06 +0200 Original-Received: from antoine.levitt by uni14-1-82-233-220-106.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Apr 2011 20:06:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: uni14-1-82-233-220-106.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:138015 Archived-At: 01/04/11 17:58, martin rudalics > After updating my trunk I'm completely lost with the following issue: > With emacs -Q, switch to the buffer *Messages*, make it empty and > evaluate the following forms in it: > > (defun foo () > (message "foo")) > > (defun bar () > (message "bar")) > > (add-hook 'post-command-hook 'foo) > (add-hook 'post-command-hook 'bar nil t) > > Now move around that buffer. Here it only runs the local hook function > "bar". It does _not_ run the global hook function "foo". > > All my earlier Emacs versions run both hooks alternately. > > GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) > of 2011-04-01 on NESTOR > > Help appreciated, martin Ah, this is probably related to the bug I'm seeing (http://permalink.gmane.org/gmane.emacs.devel/137894). This setup should be easier to debug though. I think buffer-local post-command-hooks are messed up somehow (the other code that triggers the bug also uses local hooks), but I can't figure out the part that introduced it in 5e4cb836580a8ef2f9ea9b4b8317005941920027