From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Herbert Euler Newsgroups: gmane.emacs.devel Subject: RE: wrong-type-argument in gud-tooltip-mode Date: Sun, 27 Jan 2008 13:22:29 +0800 Message-ID: References: <18331.51852.195134.607586@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1201411365 2242 80.91.229.12 (27 Jan 2008 05:22:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jan 2008 05:22:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 27 06:23:04 2008 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.50) id 1JIzyy-0006qb-8x for ged-emacs-devel@m.gmane.org; Sun, 27 Jan 2008 06:23:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIzyX-0008Qs-L0 for ged-emacs-devel@m.gmane.org; Sun, 27 Jan 2008 00:22:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIzyT-0008Py-2m for emacs-devel@gnu.org; Sun, 27 Jan 2008 00:22:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIzyR-0008Oy-Df for emacs-devel@gnu.org; Sun, 27 Jan 2008 00:22:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIzyR-0008Ov-6C for emacs-devel@gnu.org; Sun, 27 Jan 2008 00:22:31 -0500 Original-Received: from bay0-omc1-s29.bay0.hotmail.com ([65.54.246.101]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIzyR-0006y8-0b for emacs-devel@gnu.org; Sun, 27 Jan 2008 00:22:31 -0500 Original-Received: from BAY143-W5 ([65.55.154.40]) by bay0-omc1-s29.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 26 Jan 2008 21:22:29 -0800 X-Originating-IP: [221.223.211.21] Importance: Normal In-Reply-To: <18331.51852.195134.607586@kahikatea.snap.net.nz> X-OriginalArrivalTime: 27 Jan 2008 05:22:29.0453 (UTC) FILETIME=[9C6077D0:01C860A4] X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:87628 Archived-At: >>> Buffers whose name start with a space character do not visit files, >> >> Sorry, this is not precise. I meant the buffers whose names looks like >> " *string-output*", " *Echo Area 0*" etc. > > I don't follow, gud-tooltip-mode is not trying to match these buffer names. > They should be excluded because the value of gud-minor-mode should be nil > in them. What value do thay have for gud-minor-mode? > > Clearly there's a bug but I think it's elsewhere. I do not follow that, too. I was too anxious to post the description so that I posted it without careful checking of the situation. The buffer that satisfies both the two predicates there is the buffer " *partial-output-*", the value of its variable `gud-minor-mode' is copied from the one inside `gud-comint-buffer', in my case it is 'gdba. Its name, " *partial-output-*", does not match the regular expression too. And of course it does not visit any file. This is where the bug is. Since buffers like " *partial-output-*" are created with the function `gdb-get-buffer-create', perhaps we should prevent all buffers that can be created with this function, besides the ones prevented by the existing predicates. Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/