From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eric M. Ludlam" Newsgroups: gmane.emacs.devel Subject: Re: speedbar refresh hangs emacs when visited directory is deleted Date: Thu, 28 Mar 2002 10:53:39 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <200203281553.g2SFrdi00856@beta.siege-engine.com> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1017331079 8752 127.0.0.1 (28 Mar 2002 15:57:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 28 Mar 2002 15:57:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16qcHn-0002H2-00 for ; Thu, 28 Mar 2002 16:57:59 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16qcRE-0004B1-00 for ; Thu, 28 Mar 2002 17:07:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16qcH3-0003jA-00; Thu, 28 Mar 2002 10:57:13 -0500 Original-Received: from choochoo.ultranet.com ([146.115.254.62] helo=beta.siege-engine.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16qcE5-0003VM-00 for ; Thu, 28 Mar 2002 10:54:10 -0500 Original-Received: (from zappo@localhost) by beta.siege-engine.com (8.11.6/8.11.2) id g2SFrdi00856; Thu, 28 Mar 2002 10:53:39 -0500 Original-To: clf@zurich.ibm.com Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2241 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2241 >> Richard Stallman seems to think that: >He says this still happens in the latest CVS sources. >Could you please take a look at the problem? > [...] >From: Claudio Favi >To: bug-gnu-emacs@gnu.org [...] >this is what happens: > start emacs; start speedbar > visit a directory with the speedbar (by clicking on the + > signs); > now in a terminal erase that directory; > go back to the speedbar and refresh it; > emacs hangs and i get 100% CPU utilization. Hi, This patch should fix it. The patch is against my working version of speedbar, but the function it patches has not changed. speedbar.el (speedbar-default-directory-list): Made robust against deleted directories. Enjoy Eric *** speedbar.el.~1.219.~ Fri Mar 22 15:50:54 2002 --- speedbar.el Tue Mar 26 19:59:20 2002 *************** *** 2013,2020 **** (if (looking-at "[0-9]+:[ ]*<") (progn (goto-char (match-end 0)) ! (speedbar-do-function-pointer))) ! (setq sf (cdr sf))))) ))) ;;; Generic List support ;; --- 2013,2020 ---- (if (looking-at "[0-9]+:[ ]*<") (progn (goto-char (match-end 0)) ! (speedbar-do-function-pointer))))) ! (setq sf (cdr sf))) ))) ;;; Generic List support ;; -- Eric Ludlam: zappo@gnu.org, eric@siege-engine.com Home: www.ultranet.com/~zappo Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel