From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19519 invoked from network); 23 Aug 2020 17:02:56 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 23 Aug 2020 17:02:56 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1k9tNo-009JUI-JU; Sun, 23 Aug 2020 12:02:16 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1k9tNk-009JSQ-3t for ding@lists.math.uh.edu; Sun, 23 Aug 2020 12:02:12 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1k9tNi-00GeEV-Gu for ding@lists.math.uh.edu; Sun, 23 Aug 2020 12:02:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:References:Message-ID:In-Reply-To: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4RluRunoum3/S3vgJ9aTiBLo7tB3XqZ9ZO28iFDAvDY=; b=fuTm2oqRg1AGzGqZgpdpkJi19r e3R5k2G+eajWoUEaAu1qjh0XcnNwGceUzBgHfdS7b1CzRJa1LDVMXxGxofAthC69gmUBT3DqJPnnW dLZuy1exdfZT80A/GGD0ETrjT1rxWfBfDg7YLSoFvP4JmpbbPhi/iBQlxncfpNmGz0Nw=; Received: from mailbackend.panix.com ([166.84.1.89]) by quimby with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9tNa-0001r6-TH for ding@gnus.org; Sun, 23 Aug 2020 19:02:06 +0200 Received: from panix1.panix.com (panix1.panix.com [166.84.1.1]) by mailbackend.panix.com (Postfix) with ESMTP id 4BZM485684z1f7b; Sun, 23 Aug 2020 13:02:00 -0400 (EDT) Received: by panix1.panix.com (Postfix, from userid 20712) id 4BZM484PRlzcbY; Sun, 23 Aug 2020 13:02:00 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by panix1.panix.com (Postfix) with ESMTP id 4BZM483v8RzcbW; Sun, 23 Aug 2020 13:02:00 -0400 (EDT) Date: Sun, 23 Aug 2020 13:02:00 -0400 From: Jude DaShiell To: Harry Putnam , ding@gnus.org Subject: Re: How to make a warning message reveal the file it involves In-Reply-To: <87imd9qzbo.fsf@local.lan> Message-ID: References: <87imd9qzbo.fsf@local.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII List-ID: Precedence: bulk Even better would be the problem line in that file along with the file name. Emacs has a --debug option for this, but I haven't been able to figure out how to use it. Maybe improve the emacs tutorial by showing a file with one or more deliberate errors in it then have emacs --debug run and show what to do to find the error(s) and how to fix them. That would likely beneficially effect most users especially new users. On Sun, 23 Aug 2020, Harry Putnam wrote: > Date: Sun, 23 Aug 2020 09:14:19 > From: Harry Putnam > To: ding@gnus.org > Subject: How to make a warning message reveal the file it involves > > I've been getting this warning message: > > Warning (bytecomp): Use ?with-current-buffer? .... > rather than save-excursion+set-buffer > > ... (for some months now) ... > > emacs version: > ,---- > | GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo > | version 1.14.8, Xaw3d scroll bars) of 2020-05-31 > `---- > > I've searched obvious files like ~/.emacs ~/.gnus ...site-start.el > with no result. > > How can I make the warning message tell me which file it is finding > the problem code in? > > > > > > --