From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24592: 25.1; byte-compile warning indicates wrong line Date: Mon, 03 Oct 2016 09:50:42 +0300 Message-ID: <83shseori5.fsf@gnu.org> References: <87zimm8c2m.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1475477501 591 195.159.176.226 (3 Oct 2016 06:51:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2016 06:51:41 +0000 (UTC) Cc: 24592@debbugs.gnu.org To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 08:51:36 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqx5r-0005nO-24 for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 08:51:19 +0200 Original-Received: from localhost ([::1]:34069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqx5p-0000ok-K6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 02:51:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqx5c-0000n5-Gr for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 02:51:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqx5a-00032O-KB for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 02:51:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqx5a-00032J-GR for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 02:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bqx5a-0006xy-Bx for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 02:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Oct 2016 06:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24592 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24592-submit@debbugs.gnu.org id=B24592.147547745426763 (code B ref 24592); Mon, 03 Oct 2016 06:51:02 +0000 Original-Received: (at 24592) by debbugs.gnu.org; 3 Oct 2016 06:50:54 +0000 Original-Received: from localhost ([127.0.0.1]:42449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqx5R-0006xb-VG for submit@debbugs.gnu.org; Mon, 03 Oct 2016 02:50:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqx5Q-0006xJ-KC for 24592@debbugs.gnu.org; Mon, 03 Oct 2016 02:50:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqx5G-0002zu-LC for 24592@debbugs.gnu.org; Mon, 03 Oct 2016 02:50:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqx55-0002yc-Rj; Mon, 03 Oct 2016 02:50:32 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4943 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bqx53-0006Y2-Op; Mon, 03 Oct 2016 02:50:30 -0400 In-reply-to: <87zimm8c2m.fsf@gmail.com> (ynyaaa@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123937 Archived-At: severity 24592 minor merge 24592 24449 merge 24449 24128 thanks > From: ynyaaa@gmail.com > Date: Mon, 03 Oct 2016 10:18:25 +0900 > > > Let the contents of the file "tmp.el" be: > (defun test (files) > (and t (string-match 1)) > (and t (string-match 1 2))) > > Then input M-x byte-compile-file RET tmp.el RET > > *Compile-Log* buffer shows: > In test: > tmp.el:3:11:Warning: string-match called with 1 argument, but requires 2-3 > > The warning must indicate the line 2. It's a known issue that the byte compiler cannot report the lines for warnings and errors accurately. See, for example, bug#24449, bug#24128, etc.