From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Ernst Newsgroups: gmane.emacs.bugs Subject: bug#1282: Improvement to gud.el error message Date: Fri, 31 Oct 2008 05:54:47 +0100 Message-ID: <18698.36759.322749.276498@swsmde.ds.mpi-sws.mpg.de> Reply-To: Michael Ernst , 1282@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225462622 3101 80.91.229.12 (31 Oct 2008 14:17:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2008 14:17:02 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 31 15:18:04 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kvup2-0003Tm-Hv for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Oct 2008 15:17:57 +0100 Original-Received: from localhost ([127.0.0.1]:60475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kvuns-0000Gg-Ji for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Oct 2008 10:16:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KvmGu-0008Nw-Vo for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2008 01:10:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KvmGs-0008LT-PT for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2008 01:10:08 -0400 Original-Received: from [199.232.76.173] (port=46499 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvmGs-0008LJ-IB for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2008 01:10:06 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49921) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KvmGs-0005E9-Lc for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2008 01:10:06 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9V5A4Z4000652; Thu, 30 Oct 2008 22:10:04 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9V554aX031955; Thu, 30 Oct 2008 22:05:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Michael Ernst Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 31 Oct 2008 05:05:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1282 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122542894929842 (code B ref -1); Fri, 31 Oct 2008 05:05:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 31 Oct 2008 04:55:49 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9V4tjin029836 for ; Thu, 30 Oct 2008 21:55:46 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kvm2z-0003gr-1q for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2008 00:55:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kvm2v-0003fk-DX for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2008 00:55:42 -0400 Original-Received: from [199.232.76.173] (port=59293 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kvm2v-0003fh-BR for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2008 00:55:41 -0400 Original-Received: from hera.mpi-sb.mpg.de ([139.19.1.49]:35503) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kvm2v-0003GV-3e for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2008 00:55:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mpi-sb.mpg.de; s=mail200803; h=MIME-Version:Content-Type: Content-Transfer-Encoding:Message-ID:Date:From:To:Subject; bh=bN woeX8a0CixOKUPsthlIO7wwKCcNxVSah01ES2Rww8=; b=BZbZtIg7nH5yBusqCm C8Vf6cgf+2GlxE2yL3/kZLx00/T0U+FCVEV3hP6GsztI7ZjWING0gvkMWSggF+pZ BbQvAP9/X+D9pwUmyExPxacuPltANWN09FbAkKejubO0QWGMeR7IJJ00X73Yudz5 TN5RRcnOYVsmDUmj9oTlSYvL0= Original-Received: from maildist0.mpi-sb.mpg.de ([139.19.3.135]:40710) by hera.mpi-sb.mpg.de (envelope-from ) with esmtp (Exim 4.69) id 1Kvm28-0004EO-1x; Fri, 31 Oct 2008 05:55:04 +0100 Original-Received: from swsao0713.ds.mpi-sws.mpg.de ([139.19.131.44]:58737 helo=swsmde.ds.mpi-sws.mpg.de) by maildist0.mpi-sb.mpg.de with esmtp (Exim 4.63) (envelope-from ) id 1Kvm27-0000SP-Mp; Fri, 31 Oct 2008 05:54:51 +0100 Original-Received: from mernst by swsmde.ds.mpi-sws.mpg.de with local (Exim 4.63) (envelope-from ) id 1Kvm27-00063F-LK; Fri, 31 Oct 2008 05:54:51 +0100 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 31 Oct 2008 01:10:08 -0400 X-Mailman-Approved-At: Fri, 31 Oct 2008 10:16:39 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22056 Archived-At: This patch improves an error message in gud.el, by indicating the name of the file that cannot be found. -Michael Ernst diff -u -b -r --exclude=CVS --exclude=.bzr --exclude=.hg --exclude=.hgtags --exclude=.svn /DS/home-0/mernst/.synchronized/gud.el-orig /DS/home-0/mernst/.synchronized/gud.el-patched --- /DS/home-0/mernst/.synchronized/gud.el-orig 2008-10-25 11:28:35.918786020 +0200 +++ /DS/home-0/mernst/.synchronized/gud.el-patched 2008-10-25 11:28:12.635390729 +0200 @@ -2223,8 +2223,9 @@ (if (< n gud-jdb-lowest-stack-level) (progn (setq gud-jdb-lowest-stack-level n) t))) t) + (let ((filename (match-string 2 gud-marker-acc))) (if (setq file-found - (gud-jdb-find-source (match-string 2 gud-marker-acc))) + (gud-jdb-find-source filename)) (setq gud-last-frame (cons file-found (string-to-number @@ -2233,7 +2234,7 @@ (if (string-match "[.,]" numstr) (replace-match "" nil nil numstr) numstr))))) - (message "Could not find source file."))) + (message "Could not find source file %s" filename)))) ;; Set the accumulator to the remaining text. (setq gud-marker-acc (substring gud-marker-acc (match-end 0)))) Diff finished. Fri Oct 31 05:54:35 2008