From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: menu-bar-update-hook performance problems Date: Tue, 04 Mar 2003 09:06:38 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84vfyzo8s1.fsf@lucy.is.informatik.uni-duisburg.de> References: <87llzws4wz.fsf@nodewarrior.org> <84adgctdx2.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1046769245 21324 80.91.224.249 (4 Mar 2003 09:14:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 4 Mar 2003 09:14:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 04 10:14:04 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18q8Ut-0005Xi-00 for ; Tue, 04 Mar 2003 10:14:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18q8RU-0004gW-05 for gnu-help-gnu-emacs@m.gmane.org; Tue, 04 Mar 2003 04:10:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1046768865 62307596 134.91.35.216 (16 [73968]) User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:eM7fDinNU9heSUQRPKOChcV8sIE= Original-Xref: shelby.stanford.edu gnu.emacs.help:110788 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7291 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7291 kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes: > It's much easier: put your own function on the hook that invokes > (debug). From there you can examine the backtrace and then continue. > > Hm. OTOH, whether this simple approach works for > menu-bar-update-hook, of all places, I'm not so sure. Invoking the > debugger changes the menu bar... Another idea: put a function on menu-bar-update-hook that let-binds menu-bar-update-hook to nil, then invokes (debug). Maybe it works. -- A preposition is not a good thing to end a sentence with.