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 17:10:48 +0800 Message-ID: References: <18331.51852.195134.607586@kahikatea.snap.net.nz> <18332.10233.967027.718374@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 1201425077 28261 80.91.229.12 (27 Jan 2008 09:11:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jan 2008 09:11:17 +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 10:11:37 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 1JJ3Y8-00025o-0o for ged-emacs-devel@m.gmane.org; Sun, 27 Jan 2008 10:11:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJ3Xh-0006nk-89 for ged-emacs-devel@m.gmane.org; Sun, 27 Jan 2008 04:11:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJ3XS-0006nF-4u for emacs-devel@gnu.org; Sun, 27 Jan 2008 04:10:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJ3XO-0006mX-VI for emacs-devel@gnu.org; Sun, 27 Jan 2008 04:10:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJ3XO-0006m9-1V for emacs-devel@gnu.org; Sun, 27 Jan 2008 04:10:50 -0500 Original-Received: from bay0-omc1-s38.bay0.hotmail.com ([65.54.246.110]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJ3XN-0005Eu-FC for emacs-devel@gnu.org; Sun, 27 Jan 2008 04:10:49 -0500 Original-Received: from BAY143-W19 ([65.55.154.54]) by bay0-omc1-s38.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 27 Jan 2008 01:10:48 -0800 X-Originating-IP: [221.223.211.21] Importance: Normal In-Reply-To: <18332.10233.967027.718374@kahikatea.snap.net.nz> X-OriginalArrivalTime: 27 Jan 2008 09:10:48.0545 (UTC) FILETIME=[81AC0510:01C860C4] 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:87631 Archived-At: >> 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. > > OK, I see I added a space in Dec 2006 to make the buffer invisible in > list-buffers but I still don't see why there is an error because > gdb-create-define-alist only uses the file as input if one exists: > > ... > (call-process shell-file-name > (if (file-exists-p file) file nil) > (concat gdb-cpp-define-alist-program " " > gdb-cpp-define-alist-flags))... > > Also I've tried to reproduce the error in emacs-unicode-2 and on the trunk > but can't. It is easy to reproduce now, even without gdb. Since the buffer " *partial-output-*" does not visit any file, the FILE argument provided to `file-exists-p' will be nil. However, (file-exists-p nil) error--> Wrong type argument: stringp, nil That is the error. > Can you please set debug-on-error to t, recreate the error and post the > lisp backtrace here? Starting with the -Q option, I got Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-exists-p(nil) gdb-create-define-alist() gud-tooltip-mode(toggle) call-interactively(gud-tooltip-mode t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/