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: wrong-type-argument in gud-tooltip-mode Date: Sat, 26 Jan 2008 18:39:52 +0800 Message-ID: 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 1201344041 26941 80.91.229.12 (26 Jan 2008 10:40:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jan 2008 10:40:41 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 26 11:41:01 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 1JIiT6-0007no-GM for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 11:41:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIiSg-00019V-33 for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 05:40:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIiS4-0000nE-JI for emacs-devel@gnu.org; Sat, 26 Jan 2008 05:39:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIiS3-0000lt-3K for emacs-devel@gnu.org; Sat, 26 Jan 2008 05:39:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIiS2-0000lX-FT for emacs-devel@gnu.org; Sat, 26 Jan 2008 05:39:54 -0500 Original-Received: from bay0-omc2-s27.bay0.hotmail.com ([65.54.246.163]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIiS2-0006nY-4v for emacs-devel@gnu.org; Sat, 26 Jan 2008 05:39:54 -0500 Original-Received: from BAY143-W36 ([65.55.154.71]) by bay0-omc2-s27.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 26 Jan 2008 02:39:52 -0800 X-Originating-IP: [216.145.54.7] Importance: Normal X-OriginalArrivalTime: 26 Jan 2008 10:39:52.0807 (UTC) FILETIME=[C8AFEF70:01C86007] 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:87562 Archived-At: In emacs-unicode-2, toggling gud-tooltip-mode results in an error (wrong-type-argument stringp nil) in `gdb-create-define-alist'. This function is invoked by `gud-tooltip-mode' on every buffer that satisfies the conditions specified in its definition: [definition of `gud-tooltip-mode'] (dolist (buffer (buffer-list)) (unless (eq buffer gud-comint-buffer) (with-current-buffer buffer (when (and (memq gud-minor-mode '(gdbmi gdba)) (not (string-match "\\`\\*.+\\*\\'" (buffer-name)))) (make-local-variable 'gdb-define-alist) (gdb-create-define-alist) (add-hook 'after-save-hook 'gdb-create-define-alist nil t)))))) Unfortunately, the regular expression here is not complete. Buffers whose name start with a space character do not visit files, but they satisfy the above conditions too. Hence `gdb-create-define-alist' is invoked on these buffers too, which causes the error, when `gdb-create-define-alist' checks the existence of the file that current buffer visits. I did not try the HEAD version, but since the definition of `gud-tooltip-mode' is the same as that in the emacs-unicode-2 branch, I guess this bug exists in HEAD too. Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/