From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2016 11:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 24449@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14740255305098 (code B ref -1); Fri, 16 Sep 2016 11:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Sep 2016 11:32:10 +0000 Received: from localhost ([127.0.0.1]:32816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkrNJ-0001KA-TG for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:32:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkrNI-0001Ju-LJ for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkrN9-0000cg-CR for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:32:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrN9-0000c4-9W for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:31:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrN8-0007cF-1G for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:31:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkrN2-0000We-10 for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:31:56 -0400 Received: from mail.muc.de ([193.149.48.3]:48953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrN1-0000V8-Re for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:31:51 -0400 Received: (qmail 60833 invoked by uid 3782); 16 Sep 2016 11:31:49 -0000 Received: from acm.muc.de (p548C6AC0.dip0.t-ipconnect.de [84.140.106.192]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 16 Sep 2016 13:31:48 +0200 Received: (qmail 12737 invoked by uid 1000); 16 Sep 2016 11:31:25 -0000 Date: Fri, 16 Sep 2016 11:31:25 +0000 Message-ID: <20160916113124.GB3630@acm.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) Hello, Emacs. Using Emacs 25.1 RC2, and lisp/progmodes/cc-engine.el from commit 33f856ba01d13f649cf5c848b322ecb0dbfc02fc (Fri Sep 16 10:47:55 2016 +0000), $ emacs -Q -batch -f batch-byte-compile cc-engine.el . This outputs the following warning: In c-forward-decl-or-cast-1: cc-engine.el:8105:22:Warning: reference to free variable `eq' . The use of `eq' on L8105 is entirely correct. The error is at L8636, where the following appears: (and eq context nil (match-beginning 1)) . Clearly parentheses around the `eq' form are missing. The compiler should have output its warning for L8636, not L8105. -- Alan Mackenzie (Nuremberg, Germany). From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2016 13:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Mackenzie Cc: 24449@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147403215215755 (code B ref 24449); Fri, 16 Sep 2016 13:23:02 +0000 Received: (at 24449) by debbugs.gnu.org; 16 Sep 2016 13:22:32 +0000 Received: from localhost ([127.0.0.1]:32861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkt64-00045z-53 for submit@debbugs.gnu.org; Fri, 16 Sep 2016 09:22:32 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkt5y-00045i-H7 for 24449@debbugs.gnu.org; Fri, 16 Sep 2016 09:22:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkt5o-00066C-FA for 24449@debbugs.gnu.org; Fri, 16 Sep 2016 09:22:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkt5o-000667-CV; Fri, 16 Sep 2016 09:22:12 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4047 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bkt5l-000317-HV; Fri, 16 Sep 2016 09:22:12 -0400 Date: Fri, 16 Sep 2016 16:22:08 +0300 Message-Id: <83wpic3rpb.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <20160916113124.GB3630@acm.fritz.box> (message from Alan Mackenzie on Fri, 16 Sep 2016 11:31:25 +0000) References: <20160916113124.GB3630@acm.fritz.box> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.3 (-------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.3 (-------) > Date: Fri, 16 Sep 2016 11:31:25 +0000 > From: Alan Mackenzie > > $ emacs -Q -batch -f batch-byte-compile cc-engine.el > > . This outputs the following warning: > > In c-forward-decl-or-cast-1: > cc-engine.el:8105:22:Warning: reference to free variable `eq' > > . The use of `eq' on L8105 is entirely correct. The error is at L8636, > where the following appears: > > (and eq context nil > (match-beginning 1)) > > . Clearly parentheses around the `eq' form are missing. > > The compiler should have output its warning for L8636, not L8105. Did you look at how the byte compiler determines the line number it will include in the warning/error message? If you didn't, you should, because after you do, you will never again wonder why an incorrect line number is reported. In fact, now that I did look there, I'm surprised it reports a correct line number at all, let alone as often as it does. It's sheer luck. From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2016 13:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 24449@debbugs.gnu.org Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147403287016859 (code B ref 24449); Fri, 16 Sep 2016 13:35:02 +0000 Received: (at 24449) by debbugs.gnu.org; 16 Sep 2016 13:34:30 +0000 Received: from localhost ([127.0.0.1]:32867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bktHd-0004Nn-DH for submit@debbugs.gnu.org; Fri, 16 Sep 2016 09:34:29 -0400 Received: from mail.muc.de ([193.149.48.3]:44792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bktHX-0004NZ-BC for 24449@debbugs.gnu.org; Fri, 16 Sep 2016 09:34:23 -0400 Received: (qmail 83323 invoked by uid 3782); 16 Sep 2016 13:34:17 -0000 Received: from acm.muc.de (p548C6AC0.dip0.t-ipconnect.de [84.140.106.192]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 16 Sep 2016 15:34:15 +0200 Received: (qmail 13165 invoked by uid 1000); 16 Sep 2016 13:33:52 -0000 Date: Fri, 16 Sep 2016 13:33:52 +0000 Message-ID: <20160916133352.GC3630@acm.fritz.box> References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83wpic3rpb.fsf@gnu.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, Eli. On Fri, Sep 16, 2016 at 04:22:08PM +0300, Eli Zaretskii wrote: > > Date: Fri, 16 Sep 2016 11:31:25 +0000 > > From: Alan Mackenzie > > > > $ emacs -Q -batch -f batch-byte-compile cc-engine.el > > > > . This outputs the following warning: > > > > In c-forward-decl-or-cast-1: > > cc-engine.el:8105:22:Warning: reference to free variable `eq' > > > > . The use of `eq' on L8105 is entirely correct. The error is at L8636, > > where the following appears: > > > > (and eq context nil > > (match-beginning 1)) > > > > . Clearly parentheses around the `eq' form are missing. > > > > The compiler should have output its warning for L8636, not L8105. > Did you look at how the byte compiler determines the line number it > will include in the warning/error message? I'm looking at it now, with a view to making it work. > If you didn't, you should, because after you do, you will never again > wonder why an incorrect line number is reported. In fact, now that I > did look there, I'm surprised it reports a correct line number at all, > let alone as often as it does. It's sheer luck. This is not a Good Thing. Even its own comment describes itself as a "gross hack". Surely we can do better? -- Alan Mackenzie (Nuremberg, Germany). From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2016 15:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Mackenzie Cc: 24449@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147403860126253 (code B ref 24449); Fri, 16 Sep 2016 15:10:02 +0000 Received: (at 24449) by debbugs.gnu.org; 16 Sep 2016 15:10:01 +0000 Received: from localhost ([127.0.0.1]:33496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkum6-0006pK-10 for submit@debbugs.gnu.org; Fri, 16 Sep 2016 11:10:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkum1-0006p4-5k for 24449@debbugs.gnu.org; Fri, 16 Sep 2016 11:09:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkulq-0008Cd-Qc for 24449@debbugs.gnu.org; Fri, 16 Sep 2016 11:09:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkulq-0008BC-OM; Fri, 16 Sep 2016 11:09:42 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4143 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bkulm-0004dO-Kv; Fri, 16 Sep 2016 11:09:41 -0400 Date: Fri, 16 Sep 2016 18:09:38 +0300 Message-Id: <83twdf51al.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <20160916133352.GC3630@acm.fritz.box> (message from Alan Mackenzie on Fri, 16 Sep 2016 13:33:52 +0000) References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.3 (-------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.3 (-------) > Date: Fri, 16 Sep 2016 13:33:52 +0000 > Cc: 24449@debbugs.gnu.org > From: Alan Mackenzie > > > If you didn't, you should, because after you do, you will never again > > wonder why an incorrect line number is reported. In fact, now that I > > did look there, I'm surprised it reports a correct line number at all, > > let alone as often as it does. It's sheer luck. > > This is not a Good Thing. Even its own comment describes itself as a > "gross hack". Surely we can do better? I certainly hope we can. But, unless I misunderstood something, the way it's designed makes that really hard. From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2016 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 24449@debbugs.gnu.org Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147404214031684 (code B ref 24449); Fri, 16 Sep 2016 16:09:02 +0000 Received: (at 24449) by debbugs.gnu.org; 16 Sep 2016 16:09:00 +0000 Received: from localhost ([127.0.0.1]:33511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkvhE-0008Ey-LK for submit@debbugs.gnu.org; Fri, 16 Sep 2016 12:09:00 -0400 Received: from mail.muc.de ([193.149.48.3]:39043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkvhC-0008Ep-FK for 24449@debbugs.gnu.org; Fri, 16 Sep 2016 12:08:58 -0400 Received: (qmail 16036 invoked by uid 3782); 16 Sep 2016 16:08:57 -0000 Received: from acm.muc.de (p548C6AC0.dip0.t-ipconnect.de [84.140.106.192]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 16 Sep 2016 18:08:56 +0200 Received: (qmail 13635 invoked by uid 1000); 16 Sep 2016 16:08:33 -0000 Date: Fri, 16 Sep 2016 16:08:33 +0000 Message-ID: <20160916160833.GD3630@acm.fritz.box> References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83twdf51al.fsf@gnu.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, Eli. On Fri, Sep 16, 2016 at 06:09:38PM +0300, Eli Zaretskii wrote: > > Date: Fri, 16 Sep 2016 13:33:52 +0000 > > Cc: 24449@debbugs.gnu.org > > From: Alan Mackenzie > > > If you didn't, you should, because after you do, you will never again > > > wonder why an incorrect line number is reported. In fact, now that I > > > did look there, I'm surprised it reports a correct line number at all, > > > let alone as often as it does. It's sheer luck. > > This is not a Good Thing. Even its own comment describes itself as a > > "gross hack". Surely we can do better? > I certainly hope we can. But, unless I misunderstood something, the > way it's designed makes that really hard. Yes. I understand it better now, though the comments before `byte-compile-set-symbol-position' are not as helpful as they might be. Given that the byte compiler works by first reading an entire top-level form, and only then going to work on it, the only handle the compiler has on the original source is this list `read-symbol-positions-list' produced by the reader. (It was probably invented for the byte compiler). So without rewriting one or both of the byte compiler and the reader, there doesn't seem to be a different strategy available for determining the position in the raw source. Correction: there might be: On processing a symbol, at the moment the earliest occurrence of that symbol in `read-symbol-positions-list' is removed from it. Instead, we could remove everything up to and including that symbol. Maybe. What I'm guessing happened in my particular case is that several instances of 'eq in that list failed to get removed because it's a function that undergoes compiler optimisation. Or something like that. So, the thing for me to check first is that `byte-compile-set-symbol-position' gets called for _everything_ it should be. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 16 12:45:39 2016 Received: (at control) by debbugs.gnu.org; 16 Sep 2016 16:45:39 +0000 Received: from localhost ([127.0.0.1]:33517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkwGh-0000ha-K6 for submit@debbugs.gnu.org; Fri, 16 Sep 2016 12:45:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkwGf-0000hM-Pl for control@debbugs.gnu.org; Fri, 16 Sep 2016 12:45:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkwGZ-0002OY-OX for control@debbugs.gnu.org; Fri, 16 Sep 2016 12:45:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkwGZ-0002O3-Li for control@debbugs.gnu.org; Fri, 16 Sep 2016 12:45:31 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bkwGY-0000zB-9I for control@debbugs.gnu.org; Fri, 16 Sep 2016 12:45:30 -0400 Subject: control message for bug 24449 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 16 Sep 2016 12:45:30 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.3 (-------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.3 (-------) forcemerge 2681 24449 From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 16 12:47:11 2016 Received: (at control) by debbugs.gnu.org; 16 Sep 2016 16:47:11 +0000 Received: from localhost ([127.0.0.1]:33521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkwIA-0000kq-VI for submit@debbugs.gnu.org; Fri, 16 Sep 2016 12:47:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkwI9-0000kN-9F for control@debbugs.gnu.org; Fri, 16 Sep 2016 12:47:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkwI3-0003Dk-DT for control@debbugs.gnu.org; Fri, 16 Sep 2016 12:47:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkwI3-0003D4-A5 for control@debbugs.gnu.org; Fri, 16 Sep 2016 12:47:03 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bkwI1-000172-Qr for control@debbugs.gnu.org; Fri, 16 Sep 2016 12:47:01 -0400 Subject: control message for bug 24128 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 16 Sep 2016 12:47:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.3 (-------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.3 (-------) forcemerge 2681 24128 From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2016 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 24449@debbugs.gnu.org Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147405092119964 (code B ref 24449); Fri, 16 Sep 2016 18:36:02 +0000 Received: (at 24449) by debbugs.gnu.org; 16 Sep 2016 18:35:21 +0000 Received: from localhost ([127.0.0.1]:33549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkxyq-0005Bw-UJ for submit@debbugs.gnu.org; Fri, 16 Sep 2016 14:35:21 -0400 Received: from mail.muc.de ([193.149.48.3]:15406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkxyp-0005Bk-1A for 24449@debbugs.gnu.org; Fri, 16 Sep 2016 14:35:19 -0400 Received: (qmail 41262 invoked by uid 3782); 16 Sep 2016 18:35:15 -0000 Received: from acm.muc.de (p548C6AC0.dip0.t-ipconnect.de [84.140.106.192]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 16 Sep 2016 20:35:14 +0200 Received: (qmail 14281 invoked by uid 1000); 16 Sep 2016 18:34:51 -0000 Date: Fri, 16 Sep 2016 18:34:51 +0000 Message-ID: <20160916183451.GE3630@acm.fritz.box> References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83twdf51al.fsf@gnu.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On Fri, Sep 16, 2016 at 06:09:38PM +0300, Eli Zaretskii wrote: > > Date: Fri, 16 Sep 2016 13:33:52 +0000 > > Cc: 24449@debbugs.gnu.org > > From: Alan Mackenzie > > > > > If you didn't, you should, because after you do, you will never again > > > wonder why an incorrect line number is reported. In fact, now that I > > > did look there, I'm surprised it reports a correct line number at all, > > > let alone as often as it does. It's sheer luck. > > > > This is not a Good Thing. Even its own comment describes itself as a > > "gross hack". Surely we can do better? > I certainly hope we can. But, unless I misunderstood something, the > way it's designed makes that really hard. After studying `byte-compile-set-symbol-position' for several hours, I can now see what it's meant to do, and the bug that prevents it doing it. The variable `last' was intended to record the previous value of byte-compile-last-position to ensure that its next value would be higher than the previous one. Part of the comment was intended to express this. But in some sort of coding error, `last' ended up being set at each iteration of the loop, making it purposeless. By binding `last' to its intended value at the start of `b-c-set-symbol-position', and amending the loop condition to avoid an infinite loop, the warning message for the faulty cc-engine.el now comes out at the right place. I'm not sure my new version provides any guarantee of correctness either, but I think it's more likely. Here is my patch. I still think I should amend the comment preceding it. diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index b6bb1d6..2502323 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -1042,19 +1042,20 @@ byte-compile-delete-first ;; gross hack? And the answer, of course, would be yes. (defun byte-compile-set-symbol-position (sym &optional allow-previous) (when byte-compile-read-position - (let (last entry) + (let ((last byte-compile-last-position) + entry) (while (progn - (setq last byte-compile-last-position - entry (assq sym read-symbol-positions-list)) + (setq entry (assq sym read-symbol-positions-list)) (when entry (setq byte-compile-last-position (+ byte-compile-read-position (cdr entry)) read-symbol-positions-list (byte-compile-delete-first entry read-symbol-positions-list))) - (or (and allow-previous - (not (= last byte-compile-last-position))) - (> last byte-compile-last-position))))))) + (and entry + (or (and allow-previous + (not (= last byte-compile-last-position))) + (> last byte-compile-last-position)))))))) (defvar byte-compile-last-warned-form nil) (defvar byte-compile-last-logged-file nil) Comments? -- Alan Mackenzie (Nuremberg, Germany). From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2016 19:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Mackenzie Cc: 24449@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147405264722681 (code B ref 24449); Fri, 16 Sep 2016 19:05:01 +0000 Received: (at 24449) by debbugs.gnu.org; 16 Sep 2016 19:04:07 +0000 Received: from localhost ([127.0.0.1]:33554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkyQh-0005tl-Cn for submit@debbugs.gnu.org; Fri, 16 Sep 2016 15:04:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkyQf-0005tF-0T for 24449@debbugs.gnu.org; Fri, 16 Sep 2016 15:04:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkyQW-0002hZ-S8 for 24449@debbugs.gnu.org; Fri, 16 Sep 2016 15:03:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkyQW-0002hC-OS; Fri, 16 Sep 2016 15:03:56 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4409 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bkyQR-0006Vi-DP; Fri, 16 Sep 2016 15:03:55 -0400 Date: Fri, 16 Sep 2016 22:03:54 +0300 Message-Id: <83poo34qg5.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <20160916183451.GE3630@acm.fritz.box> (message from Alan Mackenzie on Fri, 16 Sep 2016 18:34:51 +0000) References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> <20160916183451.GE3630@acm.fritz.box> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.3 (-------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.3 (-------) > Date: Fri, 16 Sep 2016 18:34:51 +0000 > Cc: 24449@debbugs.gnu.org > From: Alan Mackenzie > > Comments? Please perform a full bootstrap and compare the warning messages before and after the change. Then tell what you found. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 16 16:33:00 2016 Received: (at control) by debbugs.gnu.org; 16 Sep 2016 20:33:00 +0000 Received: from localhost ([127.0.0.1]:33576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkzoh-000839-OE for submit@debbugs.gnu.org; Fri, 16 Sep 2016 16:32:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkzog-00082t-6R for control@debbugs.gnu.org; Fri, 16 Sep 2016 16:32:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkzoa-0004Mw-4t for control@debbugs.gnu.org; Fri, 16 Sep 2016 16:32:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkzoa-0004Mg-2b for control@debbugs.gnu.org; Fri, 16 Sep 2016 16:32:52 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bkzoY-0007hW-OS for control@debbugs.gnu.org; Fri, 16 Sep 2016 16:32:50 -0400 Subject: control message for bug 24449 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 16 Sep 2016 16:32:50 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.3 (-------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.3 (-------) unmerge 24449 From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2016 08:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 24449@debbugs.gnu.org Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.14741010207118 (code B ref 24449); Sat, 17 Sep 2016 08:31:02 +0000 Received: (at 24449) by debbugs.gnu.org; 17 Sep 2016 08:30:20 +0000 Received: from localhost ([127.0.0.1]:33693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blB0t-0001qj-O0 for submit@debbugs.gnu.org; Sat, 17 Sep 2016 04:30:19 -0400 Received: from mail.muc.de ([193.149.48.3]:18227) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blB0r-0001qZ-Lj for 24449@debbugs.gnu.org; Sat, 17 Sep 2016 04:30:18 -0400 Received: (qmail 41474 invoked by uid 3782); 17 Sep 2016 08:30:16 -0000 Received: from acm.muc.de (p4FC46536.dip0.t-ipconnect.de [79.196.101.54]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 17 Sep 2016 10:30:15 +0200 Received: (qmail 3735 invoked by uid 1000); 17 Sep 2016 08:29:52 -0000 Date: Sat, 17 Sep 2016 08:29:52 +0000 Message-ID: <20160917082952.GA3410@acm.fritz.box> References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> <20160916183451.GE3630@acm.fritz.box> <83poo34qg5.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83poo34qg5.fsf@gnu.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, Eli. On Fri, Sep 16, 2016 at 10:03:54PM +0300, Eli Zaretskii wrote: > > Date: Fri, 16 Sep 2016 18:34:51 +0000 > > Cc: 24449@debbugs.gnu.org > > From: Alan Mackenzie > > > > Comments? > Please perform a full bootstrap and compare the warning messages > before and after the change. Then tell what you found. This was actually very interesting. I've never really looked at warning messages all that closely before. Here's what I saw: 1. The column numbers of all positions are irritatingly 1-based, so are 1 off from the column number displayed in Emacs's mode line. 2. Most of the warnings are "foo is an obsolete function", for which the position given is only vaguely in the same area as the offending function, both with and without the change. It seems that for this warning, `byte-compile-set-symbol-position' is not being called at all. As an example of where the positions in the warnings differ: (Before change): emulation/viper.el:986:44:Warning: `interactive-p' is an obsolete function (as of 23.2); use `called-interactively-p' instead. (After change): emulation/viper.el:1023:69:Warning: `interactive-p' is an obsolete function (as of 23.2); use `called-interactively-p' instead. The actual occurrence of `interactive-p' is at 937:15. Both of the positions given are at occurrences of the symbol `vi-state'. It is perhaps a little worrying that the output positions are both beyond the actual position, suggesting that some call of `byte-compile-set-symbol-position' has already moved the position too far before this warning gets generated. 3. Most of the other warnings actually output were similarly vague in their positions. This includes warnings generated by packages other than the byte compiler, e.g. cedet. 4. The three "free variable" warnings' inaccurate positions (before change) were given accurate positions (after change). As well as the occurrence in cc-engine.el, we have: (Before change): org/org.el:12842:19:Warning: assignment to free variable `e' org/org.el:12842:19:Warning: reference to free variable `e (After change): org/org.el:12840:20:Warning: assignment to free variable `e' org/org.el:12840:20:Warning: reference to free variable `e' 5. The change I made yesterday appears not to have made anything any worse. ========================================================================= What I would suggest should get done: we should make the column numbers 0-based; suitable places to call `byte-compile-set-symbol-position' for the error messages we see should be identified, the calls inserted, and another bootstrap build done to see how much this helps. > Thanks. -- Alan Mackenzie (Nuremberg, Germany). From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2016 09:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Mackenzie Cc: 24449@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147410490913498 (code B ref 24449); Sat, 17 Sep 2016 09:36:02 +0000 Received: (at 24449) by debbugs.gnu.org; 17 Sep 2016 09:35:09 +0000 Received: from localhost ([127.0.0.1]:33699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blC1c-0003Ve-Rw for submit@debbugs.gnu.org; Sat, 17 Sep 2016 05:35:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blC1a-0003V7-Kj for 24449@debbugs.gnu.org; Sat, 17 Sep 2016 05:35:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blC1S-0007Di-5W for 24449@debbugs.gnu.org; Sat, 17 Sep 2016 05:35:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blC1S-0007DM-2h; Sat, 17 Sep 2016 05:34:58 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1489 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1blC1P-0000ZV-H6; Sat, 17 Sep 2016 05:34:56 -0400 Date: Sat, 17 Sep 2016 12:35:05 +0300 Message-Id: <83intu50om.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <20160917082952.GA3410@acm.fritz.box> (message from Alan Mackenzie on Sat, 17 Sep 2016 08:29:52 +0000) References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> <20160916183451.GE3630@acm.fritz.box> <83poo34qg5.fsf@gnu.org> <20160917082952.GA3410@acm.fritz.box> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.3 (-------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.3 (-------) > Date: Sat, 17 Sep 2016 08:29:52 +0000 > Cc: 24449@debbugs.gnu.org > From: Alan Mackenzie > > 5. The change I made yesterday appears not to have made anything any > worse. Thanks, I guess that means you should push it. > What I would suggest should get done: we should make the column numbers > 0-based This should be a separate change, and before doing it, we should make sure to fix code that assumes the columns to be 1-based (e.g, what does "C-x `" do?). > suitable places to call `byte-compile-set-symbol-position' for > the error messages we see should be identified, the calls inserted, and > another bootstrap build done to see how much this helps. Sounds a good idea, thanks. From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2016 10:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 24449@debbugs.gnu.org, Alan Mackenzie Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147410680716837 (code B ref 24449); Sat, 17 Sep 2016 10:07:01 +0000 Received: (at 24449) by debbugs.gnu.org; 17 Sep 2016 10:06:47 +0000 Received: from localhost ([127.0.0.1]:33728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blCWF-0004NV-HY for submit@debbugs.gnu.org; Sat, 17 Sep 2016 06:06:47 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:46060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blCWD-0004NM-KT for 24449@debbugs.gnu.org; Sat, 17 Sep 2016 06:06:46 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3sbnqm4kTXz3hjjh; Sat, 17 Sep 2016 12:06:43 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3sbnql57MVzvlkQ; Sat, 17 Sep 2016 12:06:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id KUuwCiKFf_IZ; Sat, 17 Sep 2016 12:06:41 +0200 (CEST) X-Auth-Info: PRLACp+3lKYhFMy+UH07SZff1TlzFULjIewwAkc95ww7dRMFsOYKhTrUqEycDf5U Received: from linux.local (ppp-88-217-17-160.dynamic.mnet-online.de [88.217.17.160]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 17 Sep 2016 12:06:41 +0200 (CEST) Received: by linux.local (Postfix, from userid 501) id DDDEE1E5468; Sat, 17 Sep 2016 12:06:39 +0200 (CEST) From: Andreas Schwab References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> <20160916183451.GE3630@acm.fritz.box> <83poo34qg5.fsf@gnu.org> <20160917082952.GA3410@acm.fritz.box> <83intu50om.fsf@gnu.org> X-Yow: They collapsed.... like nuns in the street... they had no teen appeal! Date: Sat, 17 Sep 2016 12:06:39 +0200 In-Reply-To: <83intu50om.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Sep 2016 12:35:05 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sep 17 2016, Eli Zaretskii wrote: > This should be a separate change, and before doing it, we should make > sure to fix code that assumes the columns to be 1-based (e.g, what > does "C-x `" do?). It uses compilation-first-column. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Mon Aug 18 19:22:45 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Alan Mackenzie Subject: bug#24449: closed (Re: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place.) Message-ID: References: <20160917125836.GB3410@acm.fritz.box> <20160916113124.GB3630@acm.fritz.box> X-Gnu-PR-Message: they-closed 24449 X-Gnu-PR-Package: emacs Reply-To: 24449@debbugs.gnu.org Date: Sat, 17 Sep 2016 13:00:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1474117203-7118-1" This is a multi-part message in MIME format... ------------=_1474117203-7118-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 24449@debbugs.gnu.org. --=20 24449: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D24449 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1474117203-7118-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 24449-done) by debbugs.gnu.org; 17 Sep 2016 12:59:05 +0000 Received: from localhost ([127.0.0.1]:33773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blFCz-0001pE-4D for submit@debbugs.gnu.org; Sat, 17 Sep 2016 08:59:05 -0400 Received: from mail.muc.de ([193.149.48.3]:16648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blFCw-0001oo-9O for 24449-done@debbugs.gnu.org; Sat, 17 Sep 2016 08:59:03 -0400 Received: (qmail 10759 invoked by uid 3782); 17 Sep 2016 12:59:00 -0000 Received: from acm.muc.de (p4FC46536.dip0.t-ipconnect.de [79.196.101.54]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 17 Sep 2016 14:58:58 +0200 Received: (qmail 3736 invoked by uid 1000); 17 Sep 2016 12:58:36 -0000 Date: Sat, 17 Sep 2016 12:58:36 +0000 To: Eli Zaretskii Subject: Re: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Message-ID: <20160917125836.GB3410@acm.fritz.box> References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> <20160916183451.GE3630@acm.fritz.box> <83poo34qg5.fsf@gnu.org> <20160917082952.GA3410@acm.fritz.box> <83intu50om.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83intu50om.fsf@gnu.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 24449-done Cc: 24449-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, Eli. On Sat, Sep 17, 2016 at 12:35:05PM +0300, Eli Zaretskii wrote: > > Date: Sat, 17 Sep 2016 08:29:52 +0000 > > Cc: 24449@debbugs.gnu.org > > From: Alan Mackenzie > > 5. The change I made yesterday appears not to have made anything any > > worse. > Thanks, I guess that means you should push it. Done. I took the liberty of amending the comment before `byte-compile-set-symbol-position'. > > What I would suggest should get done: we should make the column numbers > > 0-based > This should be a separate change, and before doing it, we should make > sure to fix code that assumes the columns to be 1-based (e.g, what > does "C-x `" do?). Ah. OK. > > suitable places to call `byte-compile-set-symbol-position' for > > the error messages we see should be identified, the calls inserted, and > > another bootstrap build done to see how much this helps. > Sounds a good idea, thanks. Done this too, in one place, which causes the "obsolete function" messages to get the correct position. Messages generated by `macroexp--warn-and-return' continue to have wrong positions. I'm not sure it's possible to fix this, and my intellect isn't up to working out how it works, at least not today. The messages about unknown functions, or not known to be defined at runtime functions continue to give EOF as their position. This was the use case for the parameter `allow-previous' in `byte-compile-set-symbol-position', but it didn't work before, and it continues not to work just as well now. It would be possible to fix this by not deleting elements from `read-symbol-positions-list', but this would slow down compilation (even if only a little), and generally seems not to be worth the trouble. -- Alan Mackenzie (Nuremberg, Germany). ------------=_1474117203-7118-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Sep 2016 11:32:10 +0000 Received: from localhost ([127.0.0.1]:32816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkrNJ-0001KA-TG for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:32:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkrNI-0001Ju-LJ for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkrN9-0000cg-CR for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:32:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrN9-0000c4-9W for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:31:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrN8-0007cF-1G for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:31:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkrN2-0000We-10 for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:31:56 -0400 Received: from mail.muc.de ([193.149.48.3]:48953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrN1-0000V8-Re for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:31:51 -0400 Received: (qmail 60833 invoked by uid 3782); 16 Sep 2016 11:31:49 -0000 Received: from acm.muc.de (p548C6AC0.dip0.t-ipconnect.de [84.140.106.192]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 16 Sep 2016 13:31:48 +0200 Received: (qmail 12737 invoked by uid 1000); 16 Sep 2016 11:31:25 -0000 Date: Fri, 16 Sep 2016 11:31:25 +0000 To: bug-gnu-emacs@gnu.org Subject: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Message-ID: <20160916113124.GB3630@acm.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) Hello, Emacs. Using Emacs 25.1 RC2, and lisp/progmodes/cc-engine.el from commit 33f856ba01d13f649cf5c848b322ecb0dbfc02fc (Fri Sep 16 10:47:55 2016 +0000), $ emacs -Q -batch -f batch-byte-compile cc-engine.el . This outputs the following warning: In c-forward-decl-or-cast-1: cc-engine.el:8105:22:Warning: reference to free variable `eq' . The use of `eq' on L8105 is entirely correct. The error is at L8636, where the following appears: (and eq context nil (match-beginning 1)) . Clearly parentheses around the `eq' form are missing. The compiler should have output its warning for L8636, not L8105. -- Alan Mackenzie (Nuremberg, Germany). ------------=_1474117203-7118-1-- From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2016 19:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 24449@debbugs.gnu.org Cc: acm@muc.de Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147414221711168 (code B ref 24449); Sat, 17 Sep 2016 19:57:01 +0000 Received: (at 24449) by debbugs.gnu.org; 17 Sep 2016 19:56:57 +0000 Received: from localhost ([127.0.0.1]:34094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blLjN-0002u4-MK for submit@debbugs.gnu.org; Sat, 17 Sep 2016 15:56:57 -0400 Received: from mout.web.de ([212.227.17.12]:56635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blLjM-0002tr-4G for 24449@debbugs.gnu.org; Sat, 17 Sep 2016 15:56:56 -0400 Received: from drachen.dragon ([90.186.0.208]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0LaCbS-1bI2rn1asI-00m6dE; Sat, 17 Sep 2016 21:56:49 +0200 From: Michael Heerdegen References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> <20160916183451.GE3630@acm.fritz.box> <83poo34qg5.fsf@gnu.org> <20160917082952.GA3410@acm.fritz.box> <83intu50om.fsf@gnu.org> <20160917125836.GB3410@acm.fritz.box> Date: Sat, 17 Sep 2016 21:56:46 +0200 In-Reply-To: <20160917125836.GB3410@acm.fritz.box> (Alan Mackenzie's message of "Sat, 17 Sep 2016 12:58:36 +0000") Message-ID: <87k2eauwox.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:L/+6Vx/euIdyryywTZhpHbP0pGkYj2l+DEX0NIBwqs9HIh5dTn/ 38zGpe1+ULgvhqLTDha8SrqNBbTlGqpzmvIIa4gfhE1xScinCCAtXpTdz62GGib1YiypxRb tDNic/h7dx+1pkJvjQx1+oF4MBK+kHSAm07dRTtjSNjG6zyaGL1SVgfbWMc1OWvWW3EZrb+ 5gpjacdg4Rvp050mlg1Yw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Vl1+65lWf3g=:I5qoSqV532O0qwstpclboR T6gRHKXSa+RBhwLL4cKd2betCcBW2mrC1iMu4TXfo55vQ/2vfLp/xsWqQGWEyHWTBvuMrlNGL qr5QFLjLASSbiHGod3iAqN7bhBrgnBllZMbOEBtVl9TnRThYFD9gh9RKg1IHvbrC2Z3fspcEr 4ItuRIvT0ePX2GRiFruIDOJhwg1NmVQ0Cdle9uRz9oa+7O5oX62bhbbCWYB4fN7e+BYrUOrxL kc5Rl6GpfVQZkb75suzt2FxPKEIaRDww9va1zvwO6NqrQfw0fFBiPb3QbilfcGXEnitX4k/mL MINODIPAg6ZCKezFXkBpyqgK/u5hqmYa+oPipn95zx3a+gitAH2fWrzeOhkysy0WdND8nvGc4 LDEuz/JBakMhZmMPel9Mzap5Ta/NAuVn3KAeog4yQWeVKaSm6fi4FG50+uyRbQzBRA1C4YeTj Yd4lhi9Bp97SjYU6iPYWgWXOK6tnsqcUY0zyOO5mzVNjvNbCnkvJ4zmYOiwZcMRwrW+C7h2ca ICM5VrE1hcjmZ7YVq6Lx8GNKEsMFJXjPCpkvwHmKc1EI73hhSFogznbpoe24A9Bj+mpT3bf4Q 9of2KXkK/YFK1iIG0AmV7Q/p9lhQo+VBhqUNyTBzdkbWs4EF+hMr500stuThnAKxN4SI6LjPA /+aoCNka8V33ZFnFvayscZHsZJYjGOoVkCnufFfl/x2nq/sKg7aDLyiL/3os5yF1UMqwvWvs4 2qCXxm9Yn1aiQS3eAKZFhdV4jgoodPxZqvcVmcPBnMhqlwy1Y2oMKeT0vgRT4rUNYoptJp69W xZ+f+ntZSOkpgtcBS2zsH4VltEOpg== X-Spam-Score: -3.0 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) Hello Alan, do your commits maybe fix any of the bugs related to #22288 25.0.50; Incorrect line and column number in byte-compilation warning (22288,2681,8774,9109,24128)? Thanks, Michael. From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2016 20:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen Cc: 24449@debbugs.gnu.org Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147414518715612 (code B ref 24449); Sat, 17 Sep 2016 20:47:01 +0000 Received: (at 24449) by debbugs.gnu.org; 17 Sep 2016 20:46:27 +0000 Received: from localhost ([127.0.0.1]:34111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blMVH-00043k-Iq for submit@debbugs.gnu.org; Sat, 17 Sep 2016 16:46:27 -0400 Received: from mail.muc.de ([193.149.48.3]:25533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blMVF-00043b-KR for 24449@debbugs.gnu.org; Sat, 17 Sep 2016 16:46:26 -0400 Received: (qmail 6433 invoked by uid 3782); 17 Sep 2016 20:46:24 -0000 Received: from acm.muc.de (p4FC46536.dip0.t-ipconnect.de [79.196.101.54]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 17 Sep 2016 22:46:22 +0200 Received: (qmail 17926 invoked by uid 1000); 17 Sep 2016 20:46:00 -0000 Date: Sat, 17 Sep 2016 20:46:00 +0000 Message-ID: <20160917204600.GC3410@acm.fritz.box> References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> <20160916183451.GE3630@acm.fritz.box> <83poo34qg5.fsf@gnu.org> <20160917082952.GA3410@acm.fritz.box> <83intu50om.fsf@gnu.org> <20160917125836.GB3410@acm.fritz.box> <87k2eauwox.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k2eauwox.fsf@web.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, Michael. On Sat, Sep 17, 2016 at 09:56:46PM +0200, Michael Heerdegen wrote: > Hello Alan, > do your commits maybe fix any of the bugs related to #22288 > 25.0.50; Incorrect line and column number in byte-compilation warning > (22288,2681,8774,9109,24128)? Outch! I was so angry with myself for making that stupid commit to cc-engine.el (which I wouldn't have done without the bug), that I raised bug #24449 before checking for existing bugs. To answer your question: #24449 should fix #22288 (though I haven't verified this). I doubt it will fix #24128. (Though I might be able to knock this one down with a bit of hacking.) I think it will fix #9109. I think it will fix #8774. I think it will fix #2681 At this point, we should decide which one of us is going to check these earlier bugs. It would be a waste of effort if we both did. I will definitely be having a look at #24128. > Thanks, > Michael. -- Alan Mackenzie (Nuremberg, Germany). From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2016 20:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Mackenzie Cc: 24449@debbugs.gnu.org Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147414552616145 (code B ref 24449); Sat, 17 Sep 2016 20:53:02 +0000 Received: (at 24449) by debbugs.gnu.org; 17 Sep 2016 20:52:06 +0000 Received: from localhost ([127.0.0.1]:34119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blMak-0004CL-AI for submit@debbugs.gnu.org; Sat, 17 Sep 2016 16:52:06 -0400 Received: from mout.web.de ([212.227.15.3]:60295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blMai-0004Bq-Bu for 24449@debbugs.gnu.org; Sat, 17 Sep 2016 16:52:04 -0400 Received: from drachen.dragon ([90.186.0.208]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0M8iaa-1bqocq3lIi-00C6ij; Sat, 17 Sep 2016 22:51:57 +0200 From: Michael Heerdegen References: <20160916113124.GB3630@acm.fritz.box> <83wpic3rpb.fsf@gnu.org> <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> <20160916183451.GE3630@acm.fritz.box> <83poo34qg5.fsf@gnu.org> <20160917082952.GA3410@acm.fritz.box> <83intu50om.fsf@gnu.org> <20160917125836.GB3410@acm.fritz.box> <87k2eauwox.fsf@web.de> <20160917204600.GC3410@acm.fritz.box> Date: Sat, 17 Sep 2016 22:51:55 +0200 In-Reply-To: <20160917204600.GC3410@acm.fritz.box> (Alan Mackenzie's message of "Sat, 17 Sep 2016 20:46:00 +0000") Message-ID: <87fuoyuu50.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:i/IOZcPAEZ0KISdTu7tiqTXNf3xn9nDxc6VB26EBnY+7DYPJfv8 WNVDCnV3hHdLkUu4ZmAatdppgxvfecKrT3aJs/wfvOAbYbr7RuHZDjYhnZxq1b1CLc0hpdn 8Vfl+O8YbkyjJEP2Wrmc80WHX+VF+W5B+U93GMNNnY7avv7tdM/zdgShxjIwYWZ8XTPFfI2 U4dVDgw2zUy83Dn2NowoQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:6N11DmHpSLU=:M5srUYgN9ks2s4kpeLZaUI SX+7R4Ja+OFCj+jEZ+Cr5dIbyC3E1/tlZOgM9W4q1pkX0PbJOla8RVxhNhBXNn+Zzx02UhaUQ qus6c1Rc3CSQJLe0C0b2X1e6gcGzqvg7X+REEsnQ7YIzobiMbptfY+qd0eUQthWAvFZB+LjvR eUSWZATYgk1sexlY8mJ8YvTpjL6mzCu9uOYYLSb3abyl+WfRz3YDDrXh/Ky3ytet29SP0q4Vo z6GzCKzmUp9zy9kknxErJApFbDcbrc5poRoRCcnI6Z4WVSziy6DoYnpSp35IKGtsQHDbx5l3e APmY1F9CHKpbLF3pOp1tF9pgq2eVGHaqd60457/F1MVa+3o3arXA3ZIqAarARK4GD1DYfnQII c3VgEYaElKzXO0v6uzaIbyvH9JeLGGRn5A4w2He1e/cv61GxV8+TV5H+drtmPvUaJmmnJCmKP xAe5FMBzFNRscP8R9MmUG5h9l6VVDtfMnANr7U/qqcdND+5lduYnI7Ad9fHrFjTgbz1eLUvZy ri4wKhWednQHhC2neBlQsPp3YLf0+xvB0VONOebewBlNhQ28JCShWHOIsQYNsz63Q6Yyvm+ew ZgIz5LMGyM1djB/VT4ggNENKg6OIz/jgAh9XlTcKENX2KTcxvFUO53wdZQq7gmH53fA450cXm d7CxLG8ezfbNIip5AyAh5JHsxjnlXVjT13J3PNFH3mgYyCuHIa3XBRW5AHJQ5eMMXTgIWc65w lk+MD5w5XdW0Io8piz19V6Q2mKfM2ksRMF/zcaKsAkPFPn++grfl4LTg4O0/Yhn0X2iNqvdig CAyendMNKiGEzRVA10aME6jrzhcwg== X-Spam-Score: -3.0 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) Alan Mackenzie writes: > At this point, we should decide which one of us is going to check > these earlier bugs. It would be a waste of effort if we both did. Since I'm very busy currently, I would be glad if you could care about this stuff. Some more days don't count given how long the general issue existed, so no hurry. Thanks, Michael. From unknown Mon Aug 18 19:22:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2016 21:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen Cc: 24449@debbugs.gnu.org Received: via spool by 24449-submit@debbugs.gnu.org id=B24449.147414599616784 (code B ref 24449); Sat, 17 Sep 2016 21:00:02 +0000 Received: (at 24449) by debbugs.gnu.org; 17 Sep 2016 20:59:56 +0000 Received: from localhost ([127.0.0.1]:34124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blMiK-0004Me-4C for submit@debbugs.gnu.org; Sat, 17 Sep 2016 16:59:56 -0400 Received: from mail.muc.de ([193.149.48.3]:39725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blMiI-0004MW-18 for 24449@debbugs.gnu.org; Sat, 17 Sep 2016 16:59:54 -0400 Received: (qmail 8448 invoked by uid 3782); 17 Sep 2016 20:59:53 -0000 Received: from acm.muc.de (p4FC46536.dip0.t-ipconnect.de [79.196.101.54]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 17 Sep 2016 22:59:51 +0200 Received: (qmail 17980 invoked by uid 1000); 17 Sep 2016 20:59:29 -0000 Date: Sat, 17 Sep 2016 20:59:29 +0000 Message-ID: <20160917205929.GD3410@acm.fritz.box> References: <20160916133352.GC3630@acm.fritz.box> <83twdf51al.fsf@gnu.org> <20160916183451.GE3630@acm.fritz.box> <83poo34qg5.fsf@gnu.org> <20160917082952.GA3410@acm.fritz.box> <83intu50om.fsf@gnu.org> <20160917125836.GB3410@acm.fritz.box> <87k2eauwox.fsf@web.de> <20160917204600.GC3410@acm.fritz.box> <87fuoyuu50.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fuoyuu50.fsf@web.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, Michael. On Sat, Sep 17, 2016 at 10:51:55PM +0200, Michael Heerdegen wrote: > Alan Mackenzie writes: > > At this point, we should decide which one of us is going to check > > these earlier bugs. It would be a waste of effort if we both did. > Since I'm very busy currently, I would be glad if you could care about > this stuff. Some more days don't count given how long the general issue > existed, so no hurry. OK, I'll look at these either today (:-) or tomorrow. > Thanks, > Michael. -- Alan Mackenzie (Nuremberg, Germany).