From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Debertin Newsgroups: gmane.emacs.help Subject: menu-bar-update-hook performance problems Date: 03 Mar 2003 12:04:12 -0600 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87llzws4wz.fsf@nodewarrior.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046715202 28162 80.91.224.249 (3 Mar 2003 18:13:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 3 Mar 2003 18:13:22 +0000 (UTC) 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 18puRF-0007Jm-00 for ; Mon, 03 Mar 2003 19:13:21 +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 18puQk-0004ji-05 for gnu-help-gnu-emacs@m.gmane.org; Mon, 03 Mar 2003 13:12:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!gemini.bitstream.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 33 Original-NNTP-Posting-Host: 144c77c6.news.bitstream.net Original-X-Trace: 1046714769 gemini.bitstream.net 79558 216.243.168.26 Original-X-Complaints-To: abuse@bitstream.net Original-Xref: shelby.stanford.edu gnu.emacs.help:110763 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:7264 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7264 -- One of the extensions in my .emacs is causing performance problems, but I'm having trouble figuring out which one it is. From everything elp.el is telling me, menu-bar-update-hook is being called *way* too many times a second, but I can't seem to find a way to tell what's causing it to be called. One of these bits of information would get me most of the way there: o Under exactly what circumstances menu-bar-update-hook is called. A usenet search shows that some think it gets called too frequently, but I can't find any information in the elisp manual about it apart from "This normal hook is run whenever the user clicks on the menu bar, before displaying a submenu". I'm definitely not clicking on the menu-bar several times a second; in fact I'm not touching it at all. o How to instrument built-in functions for Edebug, so I can get a backtrace and figure out what's calling (run-hooks 'menu-bar-update-hook). The documentation says that you have to re-evaluate the defun with C-u C-M-x, but I obviously can't do that with built-ins. Right? TIA, Dan -- /^Dan Debertin$/ | airboss@nodewarrior.org | www.nodewarrior.org |