GNU bug report logs - #24592
25.1; byte-compile warning indicates wrong line

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: ynyaaa@HIDDEN; merged with #2681, #8774, #9109, #22288, #24128; dated Mon, 3 Oct 2016 01:19:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 2681 8774 9109 22288 24128 24592. Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.
Severity set to 'minor' from 'normal' Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 24592 <at> debbugs.gnu.org:


Received: (at 24592) by debbugs.gnu.org; 3 Oct 2016 06:50:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 03 02:50:54 2016
Received: from localhost ([127.0.0.1]:42449 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bqx5R-0006xb-VG
	for submit <at> debbugs.gnu.org; Mon, 03 Oct 2016 02:50:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36519)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1bqx5Q-0006xJ-KC
 for 24592 <at> debbugs.gnu.org; Mon, 03 Oct 2016 02:50:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1bqx5G-0002zu-LC
 for 24592 <at> debbugs.gnu.org; Mon, 03 Oct 2016 02:50:47 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53912)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1bqx55-0002yc-Rj; Mon, 03 Oct 2016 02:50:32 -0400
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 <eliz@HIDDEN>)
 id 1bqx53-0006Y2-Op; Mon, 03 Oct 2016 02:50:30 -0400
Date: Mon, 03 Oct 2016 09:50:42 +0300
Message-Id: <83shseori5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: ynyaaa@HIDDEN
In-reply-to: <87zimm8c2m.fsf@HIDDEN> (ynyaaa@HIDDEN)
Subject: Re: bug#24592: 25.1; byte-compile warning indicates wrong line
References: <87zimm8c2m.fsf@HIDDEN>
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: -8.1 (--------)
X-Debbugs-Envelope-To: 24592
Cc: 24592 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -8.1 (--------)

severity 24592 minor
merge 24592 24449
merge 24449 24128
thanks

> From: ynyaaa@HIDDEN
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24592; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Oct 2016 01:18:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 02 21:18:52 2016
Received: from localhost ([127.0.0.1]:42345 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bqru8-0004U8-1C
	for submit <at> debbugs.gnu.org; Sun, 02 Oct 2016 21:18:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45837)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ynyaaa@HIDDEN>) id 1bqru6-0004Tv-Na
 for submit <at> debbugs.gnu.org; Sun, 02 Oct 2016 21:18:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ynyaaa@HIDDEN>) id 1bqru0-000099-Ee
 for submit <at> debbugs.gnu.org; Sun, 02 Oct 2016 21:18:45 -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,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50007)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ynyaaa@HIDDEN>) id 1bqru0-000095-Bn
 for submit <at> debbugs.gnu.org; Sun, 02 Oct 2016 21:18:44 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36808)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ynyaaa@HIDDEN>) id 1bqrty-0006KL-Kf
 for bug-gnu-emacs@HIDDEN; Sun, 02 Oct 2016 21:18:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ynyaaa@HIDDEN>) id 1bqrtu-00007p-Dp
 for bug-gnu-emacs@HIDDEN; Sun, 02 Oct 2016 21:18:41 -0400
Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:32867)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ynyaaa@HIDDEN>) id 1bqrtu-00007g-6m
 for bug-gnu-emacs@HIDDEN; Sun, 02 Oct 2016 21:18:38 -0400
Received: by mail-pf0-x241.google.com with SMTP id i85so1369884pfa.0
 for <bug-gnu-emacs@HIDDEN>; Sun, 02 Oct 2016 18:18:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version;
 bh=nFr5PCZ3KRvFFQC7pAqosl1UdbYXloZbQO3tFA7IL5s=;
 b=syWKRxC1inFUKbjS85XPhKUX3R//lwyf0sLwjRHA55p8R66r7MAIhDOXx63otzSCox
 Bq/HpeshQTnaino57NGZJRBIpmtPfGg6p7rD8AFU8SnrU9fAfY08V+lTkKUdhRTbSeGA
 tewbn7v3KZZsJpcK14Sc+DQlgpz1YybcL+Q2ptAAwVWCy7A1NRqhumZ3EyyjLM4Znp4t
 Td+b6/gH35wGH0TJRpRxBOs9w0/B//RLnY/yYGbSfI8J7nXE/Rp5Qo1l68MK+u4TRQps
 gyax8V5iqTCDXBQu3dKsiXPufHk29wFjPZyGEpPpLugWhFO9BLMkfZJ50hzNVLrprBBB
 S2Og==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=nFr5PCZ3KRvFFQC7pAqosl1UdbYXloZbQO3tFA7IL5s=;
 b=YwrRl2mk9P+ZVG8iOynMhZibOieKjoKmjl/zOoVS9/aeK7VxRGT3oANjl5RvPoBYs3
 aal9WIU2T/pECg4772lKpTOCzKawPfBZ3hVn4IkYwKJMvIhEsjCJgRyJev3Nn3huiVLw
 T0St2ArvsSMV3/ge8VXoJP91OEhmHxa1jUIykBnsMQjOxgfscKSXawHv49h+kuVZ/xgW
 6CY5Yn/hrETrb7gO7ajK7v0ofNg0oMCBjVu4q0DQMcbQg9ZuvjPL+bYv5bzWc+3a7tG4
 4YjZZhESGyybQ6/n3kR9aZpIGNe6GU3rUpPFqD8hHaueOLBLeQP+QnUdh5oClc6y1qDF
 a4HA==
X-Gm-Message-State: AA6/9RljAB5yNNkdgI2jsUy6j/GSH0WFGK6qou5ctYEsVcekS75WTwQytHGoBvQxLjl2KQ==
X-Received: by 10.98.219.196 with SMTP id f187mr32462847pfg.39.1475457515935; 
 Sun, 02 Oct 2016 18:18:35 -0700 (PDT)
Received: from PNUT-PC (east49-p99.eaccess.hi-ho.ne.jp. [219.105.5.100])
 by smtp.gmail.com with ESMTPSA id ak3sm42547721pad.19.2016.10.02.18.18.34
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 02 Oct 2016 18:18:35 -0700 (PDT)
From: ynyaaa@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 25.1; byte-compile warning indicates wrong line
Date: Mon, 03 Oct 2016 10:18:25 +0900
Message-ID: <87zimm8c2m.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
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.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


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.



In GNU Emacs 25.1.1 (i686-w64-mingw32)
 of 2016-09-18 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.0.6002
Configured using:
 'configure --host=i686-w64-mingw32 --without-dbus
 --without-compress-install CFLAGS=-static'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS

Important settings:
  value of $LANG: JPN
  locale-coding-system: cp932

Major mode: Emacs-Lisp

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils advice
warnings byte-opt compile comint ansi-color ring bytecomp byte-compile
cl-extra help-mode easymenu cl-loaddefs pcase cl-lib cconv time-date
mule-util japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
w32notify w32 multi-tty make-network-process emacs)

Memory information:
((conses 8 103501 6163)
 (symbols 32 20830 0)
 (miscs 32 72 238)
 (strings 16 19286 4465)
 (string-bytes 1 554956)
 (vectors 8 14798)
 (vector-slots 4 535204 5216)
 (floats 8 173 246)
 (intervals 28 315 13)
 (buffers 520 22))




Acknowledgement sent to ynyaaa@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#24592; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 5 Oct 2016 00:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.