From unknown Sat Aug 16 18:48:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jan 2016 01:52:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22288 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22288@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.145169951831356 (code B ref -1); Sat, 02 Jan 2016 01:52:04 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jan 2016 01:51:58 +0000 Received: from localhost ([127.0.0.1]:34128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFBMM-00089a-21 for submit@debbugs.gnu.org; Fri, 01 Jan 2016 20:51:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33965) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFBAt-00068D-Ry for submit@debbugs.gnu.org; Fri, 01 Jan 2016 20:40:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF22J-0007Zy-JL for submit@debbugs.gnu.org; Fri, 01 Jan 2016 10:54:40 -0500 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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF22J-0007Zu-GJ for submit@debbugs.gnu.org; Fri, 01 Jan 2016 10:54:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF22I-0002Yb-6i for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2016 10:54:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF22E-0007ZS-6D for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2016 10:54:38 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:57569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF22D-0007ZM-Se for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2016 10:54:34 -0500 Received: from [192.168.1.105] ([67.186.135.89]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MgOZS-1aZTOL20IA-00Nium for ; Fri, 01 Jan 2016 16:54:31 +0100 From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel X-Enigmail-Draft-Status: N1110 Message-ID: <5686A130.1090708@live.com> Date: Fri, 1 Jan 2016 10:54:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7CNp5iquV18Dr5pgcHMLtWuHbkISL6llM" X-Provags-ID: V03:K0:bDqi1FsVSYM41avQl0vxkkp2+s05n6hFG+rwFszFwyo/KWCwNwL 81RaP5IgRF7qOc8866cHF+QpJctwnjw3RZzQhfD7e1Zhagp4M0LD0uJzjzD36wiDsjlm2/v w54JqGgh3xohmTddnBMKDtcPstKZ4rZ3lb6i8iz40x0ZY28Tqm6eQp9B4/gkqTC50g500+o wqK58v/vIHpUCkj60BseQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:a5IL2c4WFbs=:tUlyrWFmMQHxy/phVR1odP tBtzFXJIMzVS4Xf4r0PHuajIFlY719oNXV/nc+1DeQATI4dWG6Vtb8LTBzxGVYC94FPiXydeF cSG/zV6IQA5GOnmaFhl9phMJNCuKRT7HilVgnoT1v3suCZkCUAeLtUJ2zNwGpf//+Eazh+5ld wQNnGd9kyYLw4iwyVaxp0nCYqaZhEKiN2Xmx74lSGuPAm4kmrx+3lzpRD11WjHpFHJXjH/VkN XX20ObBopEEXnIMrG7UXFExDIrDy6nqvTSuI8m00zLNRAmqaIoq0WRA1wEK7wNfvDGZL5bezI a9ujZ2JYdCPrDOIBoGmhGVb/8NI63tFyCN9ULamWN87iWZan5IABCnFRh34xtyruYb3c2x7sJ tbOEIx7peRpDsux5uXqF6WsxkGn7NYpUnVihth2D/xUGj8APW621OFiYm+LH5KKaJqRNOycGb NZQH/5Hxc2+h6Sp304dCIT2ckxAxW/TwcqilrtAYAOg+zbFkA1N09L03lqa3j85At6rLT9w0L V69pRF6lTLqe6Y+hND1MfI33AooAmo5xBtqWM3fu/cuzq/yHOKx5WCzHoPo7fWzDobd1o+ra/ 1pncAu+tcTkWYbY78gOZVbEvQeLZ1MV1oFh03G6u/WTIvNVs9SacIRfq6ar0ACutOK0MLT6zZ s17x3eLZB4TZFJpCLyqSy1P6lR+HNFDe8ij0DviXCdYcEXHl3XcZGhWvBSR0j4FzFy50= 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-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.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7CNp5iquV18Dr5pgcHMLtWuHbkISL6llM Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, The byte-compiler doesn't always report the right line and column numbers= =2E For example for the following program in test.el: (defun test () (let (a)) a) Running M-x byte-compile-file RET test.el RET yields: > Compiling file /home/clement/test.el at Fri Jan 1 10:48:41 2016 > > In test: > test.el:2:9:Warning: reference to free variable =E2=80=98a=E2=80=99 The correct warning would be > test.el:3:2:Warning: reference to free variable =E2=80=98a=E2=80=99 Note that the following program gives the right error: (defun test () (let (b)) a) > test.el:3:3:Warning: reference to free variable =E2=80=98a=E2=80=99 Although one might argue that it should be > test.el:3:2:Warning: reference to free variable =E2=80=98a=E2=80=99 (that is, column 2, not 3) given that Emacs starts counting columns at 0.= Cheers, Cl=C3=A9ment. In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-12-29 built on clem-w50-mint Repository revision: a21bb238ce7bcc9c13a9cf66db77918304daa2fc Windowing system distributor 'The X.Org Foundation', version 11.0.1150100= 0 System Description: Linux Mint 17.2 Rafaela Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec 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 smex mc-mark-more multiple-cursors-core rect ws-butler flyspell ispell ruler-mode markdown-mode thingatpt noutline outline recentf tree-widget company-math math-symbol-lists company-files company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb ido-ubiquitous s ucs-normalize ido-completing-read+ cus-edit cus-start cus-load wid-edit autoloads ido haskell-prettify flycheck-pos-tip pos-tip flycheck find-func rx subr-x jka-compr let-alist proof-site proof-autoloads pg-vars company agda2 smart-mode-line-dark-theme smart-mode-line rich-minority page-break-lines diminish which-key which-func imenu elapsed time eml-mode derived demo-mode dash always-make-directory easy-escape easy-mmode delsel paren saveplace savehist xt-mouse finder-inf edmacro kmacro advice tex-site cl-seq cl eieio eieio-core cl-macs info package epg-config compatibility seq byte-opt gv compile comint ansi-color ring bytecomp byte-compile cl-extra help-mode easymenu cl-loaddefs pcase cl-lib cconv tangomod-dark-theme time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 445068 11836) (symbols 48 34336 0) (miscs 40 91 485) (strings 32 84162 14046) (string-bytes 1 2172652) (vectors 16 49548) (vector-slots 8 1484645 186267) (floats 8 296 222) (intervals 56 3143 1078) (buffers 976 15) (heap 1024 39773 2180)) --7CNp5iquV18Dr5pgcHMLtWuHbkISL6llM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWhqE1AAoJEPqg+cTm90wjuBIP/ROXNMHx50aJl1zb29st8n/L rNxlbrNe8GwI5A1c/8V16jg4rOANt5m2SzrQfpNWosYe4iTY1WilRZ7MoWxJVbcc 6GETM3R+EX13/ODK7BjVCCspldeSKJgZmeVyy2Vly5fMKvOyrtRlMGroxH+g9f5i Wtf985JCPp0RCY99NhkvugLKMoQYarq2tUksgkLYo3HDjU6Hr/cCgkp1bhEULNI1 ylu2/mauKcXknN7GA24Hclds1Hm1rYV2HNiZCxULTG5ba0HgP1xmlY34Ss3dzfld qYuje5VBB+F/lnYP9Ky/hwtMdujIITwIMzTBm2r9aJr+JziIeLWOir2VAXAv9Xoi iYi7puBO5eJuAMaE6/rlGquscySGjlJaOkmCbTQdjA8JEMzRlvHN8A9BGCE7IA0p nFIMwKtjbml/HumLlzNWIuYz6RFyn8GHDe4XO4zz6tKYChFnHHpsxLVk1J+PKbyC Y//ADpopmyQ6dM3sCa4oAK7W4YtuTD8NUNjA9nQSN0BfM7Xubu72SfYWaqIPmbmA CJFSrhjyoGGOlbYWMHS5qA/OQVIcPHRZHUAPGiXOIbk0s37fIXp/Q+cu2tDCTcvT fQADxP6PX91yQEgB6JxWrTnHJ0JqTfXRsX4eYyRKLmZ2upmxOQH0ufyecC5HD+IM 3X/W/QAZe8rKkSTrAy0b =mVB4 -----END PGP SIGNATURE----- --7CNp5iquV18Dr5pgcHMLtWuHbkISL6llM-- From unknown Sat Aug 16 18:48:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jan 2016 17:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22288 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Cc: 22288@debbugs.gnu.org Received: via spool by 22288-submit@debbugs.gnu.org id=B22288.145175684821244 (code B ref 22288); Sat, 02 Jan 2016 17:48:02 +0000 Received: (at 22288) by debbugs.gnu.org; 2 Jan 2016 17:47:28 +0000 Received: from localhost ([127.0.0.1]:35491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFQH2-0005Wa-63 for submit@debbugs.gnu.org; Sat, 02 Jan 2016 12:47:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49134) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFQH0-0005WL-No for 22288@debbugs.gnu.org; Sat, 02 Jan 2016 12:47:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFQGv-0000qt-4H for 22288@debbugs.gnu.org; Sat, 02 Jan 2016 12:47:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 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]:55366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFQGt-0000qh-HD; Sat, 02 Jan 2016 12:47:19 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aFQGr-0000aZ-Om; Sat, 02 Jan 2016 12:47:17 -0500 From: Glenn Morris References: <5686A130.1090708@live.com> X-Spook: BROMURE Al-Qaeda White Water Disaster medical assistance X-Ran: 7!]Xoo_cB?uW[|+4Q2SN=6^xjwAXOo2dMg(SfJYM:#^vPnA!7hwxAd$*Keu[4|_E?#of'\ X-Hue: green X-Attribution: GM Date: Sat, 02 Jan 2016 12:47:17 -0500 In-Reply-To: <5686A130.1090708@live.com> ("=?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel"'s message of "Fri, 1 Jan 2016 10:54:24 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: -5.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: -5.0 (-----) Cl=C3=A9ment Pit--Claudel wrote: > The byte-compiler doesn't always report the right line and column > numbers.=20 I think this is a long-standing known issue. From unknown Sat Aug 16 18:48:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22288: Confirmed for 24.3.1 References: <5686A130.1090708@live.com> In-Reply-To: <5686A130.1090708@live.com> Resent-From: Arseniy Zaostrovnykh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 22:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22288 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22288@debbugs.gnu.org Received: via spool by 22288-submit@debbugs.gnu.org id=B22288.145255174029361 (code B ref 22288); Mon, 11 Jan 2016 22:36:01 +0000 Received: (at 22288) by debbugs.gnu.org; 11 Jan 2016 22:35:40 +0000 Received: from localhost ([127.0.0.1]:46872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIl3s-0007dU-81 for submit@debbugs.gnu.org; Mon, 11 Jan 2016 17:35:40 -0500 Received: from smtp0.epfl.ch ([128.178.224.218]:56898) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIkhh-00075L-8v for 22288@debbugs.gnu.org; Mon, 11 Jan 2016 17:12:45 -0500 Received: (qmail 5634 invoked by uid 107); 11 Jan 2016 22:12:35 -0000 X-Virus-Scanned: ClamAV Received: from vpn-254-249.epfl.ch (HELO [128.179.254.249]) (128.179.254.249) by mail.epfl.ch (AngelmatoPhylax SMTP proxy) with ESMTP; Mon, 11 Jan 2016 23:12:35 +0100 From: Arseniy Zaostrovnykh Message-ID: <569428D2.4020502@epfl.ch> Date: Mon, 11 Jan 2016 23:12:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Mon, 11 Jan 2016 17:35:38 -0500 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 (--) The bug is reproducible in 24.3.1 -- Respectfully, Arseniy. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 01 11:33:43 2016 Received: (at control) by debbugs.gnu.org; 1 Jun 2016 15:33:43 +0000 Received: from localhost ([127.0.0.1]:50027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b889P-0001lW-Bp for submit@debbugs.gnu.org; Wed, 01 Jun 2016 11:33:43 -0400 Received: from mail-oi0-f41.google.com ([209.85.218.41]:36214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b889N-0001l9-JA for control@debbugs.gnu.org; Wed, 01 Jun 2016 11:33:42 -0400 Received: by mail-oi0-f41.google.com with SMTP id j1so33073633oih.3 for ; Wed, 01 Jun 2016 08:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to; bh=Fhk2fh6Xn3btQZJJisUsHsdLzJTNxli9FPbJLI9x4tk=; b=zCpcPg489PAcTCVQSIDUvj41lbBWrMDdjkc49pe9NH3KcKEOrQL8ys6fxusKeneQjq PyRv51EoHpQy8hVCujVHPZjbyLhJEnl046LIK8zVlB7x8ZskQOreeEeZD1V1fw0AT7SC M3oRuK8sZcRybAHeY6x2kgTCF0v7QW4fRPRbPNEgO4NF3EAyB4CyT2aGTfxA5coGBTrC 0Qj7mEHYoVxWi34b4YYhpzNabnqnlX3KNBGCQzrecCz7ZggYrrI45LMCYiXrojfG/Buh 0SJ5JTGnCQ2VlIE037xzSYxlS8NMiFQDmm4Q7MEz0M8uQdSztUL6DRiOUnLm9lRvRJ6M WaqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to; bh=Fhk2fh6Xn3btQZJJisUsHsdLzJTNxli9FPbJLI9x4tk=; b=NiS3OPASmark3LBn2f9yr1OVphXANSf+Fn+UNYSD4Gy48tdls3KwqdV0z8kzSis8CW 8WM9sJ+mT0/UBRo1D6sfBr7v74WF81P/neeq6TD4ngwPcts22uXGJQ6Bxn4U/gcoF3k9 hr93xWhQ8uB4qDgnvLVacX0nrBxwRccwIvZiqe3TqRIX+GlD8rI4LDof5wfSdR0/8rIW YFcvyudj82tbHq60UVhvitt0W1uH1QujIayaysO08G4rIC6l/jWiNQ5sBJPaVMo0tDNd FZ3U4qQTb2xL/t97Lu2kr5RmR/4dfDAe258eB6RHIZOxlhV39cEibPRjAUhhDjIQ5usD Ol0A== X-Gm-Message-State: ALyK8tI2EdgNIqn+mcf97vACl7uMFrYtJHZFTap70sOMGCzQOXa1CncmpS+QS7KQhrS3/OL3Kn5XZjw4w37kag== MIME-Version: 1.0 X-Received: by 10.157.38.185 with SMTP id l54mr1726385otb.112.1464795216141; Wed, 01 Jun 2016 08:33:36 -0700 (PDT) Received: by 10.157.34.169 with HTTP; Wed, 1 Jun 2016 08:33:36 -0700 (PDT) Date: Wed, 1 Jun 2016 11:33:36 -0400 X-Google-Sender-Auth: tHmcui7rv-eAcbFAfJQioavwBf8 Message-ID: Subject: byte compile errors/warnings on wrong line number From: Noam Postavsky To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.5 (/) 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: -0.5 (/) found 2681 23.0.91 found 8774 23.3.1 found 22288 24.3.1 merge 2681 8774 22288 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 04 21:29:21 2016 Received: (at control) by debbugs.gnu.org; 5 Aug 2016 01:29:21 +0000 Received: from localhost ([127.0.0.1]:55993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVTwv-0001bR-Hd for submit@debbugs.gnu.org; Thu, 04 Aug 2016 21:29:21 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:33604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVTwt-0001bD-MG for control@debbugs.gnu.org; Thu, 04 Aug 2016 21:29:19 -0400 Received: by mail-io0-f181.google.com with SMTP id 38so287404836iol.0 for ; Thu, 04 Aug 2016 18:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version; bh=b4MctLSYj6z9YTCZdRzRqpOgvpB7X3HkepoEHB10V08=; b=tQ8epMn+M+5O/+MgTIivkU4o88UkY2pqb6+8cKyiJohjNSQYsp69Ud0cf7khS0dEbB cXLbPkybYhiisXVrIdcom55yQXnKHfPp4kSsIJYSU3+V3syy4MePcx2bbfwq3AW3dqT4 GqKGYhghvLiDkdsW1UaTLDxS83ySDeCWoRFUzATt1Bv4ZPNlDx6Z2omEgwJ57JFZc6Ck /nVTlS6A1xjnbaXLGXQFO/yoXYNCd9PPXVQ/EOR/3V+XJNUFmTDveQf60/j/BNBkkuo6 6p3wsOaTO400EXPAI2ruG6fXr+IkIsGWhj6/vlvTYph1W6Evt78bmV7xL/TzUbmcqP8z pAmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=b4MctLSYj6z9YTCZdRzRqpOgvpB7X3HkepoEHB10V08=; b=efCMswkVgFKWaW+GlEOdkCBetfXeDbZjrMwOrCTcfwcl9TU0IYrfBJKA8jf8IQrQsc 0RmanP123gyOexI2quA6Mjf86KdoWcL328jdKAA+6lgLz3XOdJQqffgYPtwlVqmaYYx9 TwLGe6KdsTwIdj8x6mCWBxuDajUsC0y/MKkLtGpwMkNBuuudA1RpG9Cs1Hr734UoHlA3 NI2ZrnO7OcryHPqgteA4gITrgD8IVp7KM3QLKadcxbG/C3IHjBTdiVsoOML0wFTiOzYx lOM5I2pqdKeR3pTc65+i1rL5WGhjSmMopJ4TFHnxumTyjazzqVpZyJdFG7AkdrgQR+Gq 1Jew== X-Gm-Message-State: AEkoouvsOUtvSUU4wjGD8s5QPO5tOGZym0UDjmK08iN91UFV3eOmyC6c8BWPRzYPZpKe2g== X-Received: by 10.107.142.22 with SMTP id q22mr76158057iod.37.1470360554018; Thu, 04 Aug 2016 18:29:14 -0700 (PDT) Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id d68sm2881736ith.10.2016.08.04.18.29.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 18:29:13 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #9109 Date: Thu, 04 Aug 2016 21:29:21 -0400 Message-ID: <87shuk80lq.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -0.7 (/) merge 9109 2681 quit 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 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 debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 19:59:10 2016 Received: (at control) by debbugs.gnu.org; 4 Oct 2016 23:59:10 +0000 Received: from localhost ([127.0.0.1]:45002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brZc6-0005kd-JV for submit@debbugs.gnu.org; Tue, 04 Oct 2016 19:59:10 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:34018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brZc4-0005kL-7g for control@debbugs.gnu.org; Tue, 04 Oct 2016 19:59:09 -0400 Received: by mail-io0-f170.google.com with SMTP id r30so44914336ioi.1 for ; Tue, 04 Oct 2016 16:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XQCLuH/cSWL07CuztDcfZxTt9HYHsatUcFn9AslgHco=; b=QaI5x9UAewiVJmxm4FK+ww2beGzY3jGYV15MoqHS7ICbe1UZBtqPsV0/dgS7Xc+Wk3 BmaRr6jK1Z42cee3pp3h30g1GjdznJcQZ593CRkNar1MERo/uiT1y4ax5MsV02nAfamU sB/1k4CfjbKe0untOcHXWPi1pylEF7YlKHy15+LkdD4iQeC/YD1FSynLKGltW3z4DnZl JWS55Ou8dywnVneC5mgQjr/Th4lodZbFTowAysxvovwfXcacziMXQFoWqoVblie6Jyn0 zqD+KgEZjCxNL/UfwHL2oxFMs8qqmD4Rln/NVyW5h9dSlvqYL0l5FtiH36mefd4InlMQ bWaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=XQCLuH/cSWL07CuztDcfZxTt9HYHsatUcFn9AslgHco=; b=NZ4usHMYZ1vtR6pEmANMNXU/YAW+ubBgbrIofASmKaQIKaXVB8DUNRszuaG4dS/2nc YW07KeS07FiL39EOfRnSX7KMHSlsAaUN4MDrZGLH6Ut7K2ihseOQUZp14Q90ayqLfKy3 GtQfVsQMGoDCqleOOqgZhNe5hZ8E+G39W/l6PKhABytOruDCSmufKdYaXBogfm/398tC rOLEvWQQmfiETbDi/PYXY8zSyLpYxLAtDBo5EajT/sFIEZrenJ8ixy8VVdkrnBUvrtR0 zwheKwrjJTUtjZI3fgt5bvOgXvxDA6cJTYeCZB3l16LA4DcnxHl4tDTRva2Zn/e1MqCs Gsig== X-Gm-Message-State: AA6/9RmC05Jl5rdCklfh2Yjzn36pmTu4VDPGLAoRWqfyoU8sQk1KO1sFMF0QtZ30Tam9Cg== X-Received: by 10.107.32.75 with SMTP id g72mr8116646iog.136.1475625541825; Tue, 04 Oct 2016 16:59:01 -0700 (PDT) Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id z125sm12837976itc.0.2016.10.04.16.59.01 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2016 16:59:01 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: Re: bug#24592: 25.1; byte-compile warning indicates wrong line References: <87zimm8c2m.fsf@gmail.com> <83shseori5.fsf@gnu.org> Date: Tue, 04 Oct 2016 19:59:34 -0400 In-Reply-To: <83shseori5.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 03 Oct 2016 09:50:42 +0300") Message-ID: <87mvijy8bd.fsf@users.sourceforge.net> 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.5 (/) 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: 0.5 (/) merge 24592 24128 quit 24449 is a special case, which has been fixed Eli Zaretskii writes: > 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. From unknown Sat Aug 16 18:48:09 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: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Subject: bug#22288: closed (Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning) Message-ID: References: <5686A130.1090708@live.com> X-Gnu-PR-Message: they-closed 22288 X-Gnu-PR-Package: emacs Reply-To: 22288@debbugs.gnu.org Date: Sat, 22 Jan 2022 18:18:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1642875482-9217-1" This is a multi-part message in MIME format... ------------=_1642875482-9217-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22288: 25.0.50; Incorrect line and column number in byte-compilation warni= ng 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 22288@debbugs.gnu.org. --=20 22288: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22288 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1642875482-9217-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22288-done) by debbugs.gnu.org; 22 Jan 2022 18:17:10 +0000 Received: from localhost ([127.0.0.1]:37822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBKwo-0002NY-Bh for submit@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:10 -0500 Received: from colin.muc.de ([193.149.48.1]:18317 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nBKwm-0002NK-RV for 22288-done@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:09 -0500 Received: (qmail 74793 invoked by uid 3782); 22 Jan 2022 18:17:02 -0000 Received: from acm.muc.de (p2e5d54f8.dip0.t-ipconnect.de [46.93.84.248]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 22 Jan 2022 19:17:01 +0100 Received: (qmail 16838 invoked by uid 1000); 22 Jan 2022 18:16:58 -0000 Date: Sat, 22 Jan 2022 18:16:58 +0000 To: =?iso-8859-1?Q?Cl=E9ment?= Pit--Claudel Subject: Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning Message-ID: References: <5686A130.1090708@live.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5686A130.1090708@live.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22288-done Cc: 22288-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: -1.0 (-) Hello Everybody. This bug has just been fixed in master by merging in branch scratch/correct-warning-pos. -- Alan Mackenzie (Nuremberg, Germany). On Fri, Jan 01, 2016 at 10:54:24 -0500, Clément Pit--Claudel wrote: > Hi all, > The byte-compiler doesn't always report the right line and column numbers. For example for the following program in test.el: > (defun test () > (let (a)) > a) > Running M-x byte-compile-file RET test.el RET yields: > > Compiling file /home/clement/test.el at Fri Jan 1 10:48:41 2016 > > In test: > > test.el:2:9:Warning: reference to free variable ‘a’ > The correct warning would be > > test.el:3:2:Warning: reference to free variable ‘a’ > Note that the following program gives the right error: > (defun test () > (let (b)) > a) > > test.el:3:3:Warning: reference to free variable ‘a’ > Although one might argue that it should be > > test.el:3:2:Warning: reference to free variable ‘a’ > (that is, column 2, not 3) given that Emacs starts counting columns at 0. > Cheers, > Clément. > In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > of 2015-12-29 built on clem-w50-mint > Repository revision: a21bb238ce7bcc9c13a9cf66db77918304daa2fc > Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 > System Description: Linux Mint 17.2 Rafaela ------------=_1642875482-9217-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Jan 2016 01:51:58 +0000 Received: from localhost ([127.0.0.1]:34128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFBMM-00089a-21 for submit@debbugs.gnu.org; Fri, 01 Jan 2016 20:51:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33965) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFBAt-00068D-Ry for submit@debbugs.gnu.org; Fri, 01 Jan 2016 20:40:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF22J-0007Zy-JL for submit@debbugs.gnu.org; Fri, 01 Jan 2016 10:54:40 -0500 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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF22J-0007Zu-GJ for submit@debbugs.gnu.org; Fri, 01 Jan 2016 10:54:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF22I-0002Yb-6i for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2016 10:54:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF22E-0007ZS-6D for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2016 10:54:38 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:57569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF22D-0007ZM-Se for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2016 10:54:34 -0500 Received: from [192.168.1.105] ([67.186.135.89]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MgOZS-1aZTOL20IA-00Nium for ; Fri, 01 Jan 2016 16:54:31 +0100 From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Subject: 25.0.50; Incorrect line and column number in byte-compilation warning X-Enigmail-Draft-Status: N1110 To: bug-gnu-emacs@gnu.org Message-ID: <5686A130.1090708@live.com> Date: Fri, 1 Jan 2016 10:54:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7CNp5iquV18Dr5pgcHMLtWuHbkISL6llM" X-Provags-ID: V03:K0:bDqi1FsVSYM41avQl0vxkkp2+s05n6hFG+rwFszFwyo/KWCwNwL 81RaP5IgRF7qOc8866cHF+QpJctwnjw3RZzQhfD7e1Zhagp4M0LD0uJzjzD36wiDsjlm2/v w54JqGgh3xohmTddnBMKDtcPstKZ4rZ3lb6i8iz40x0ZY28Tqm6eQp9B4/gkqTC50g500+o wqK58v/vIHpUCkj60BseQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:a5IL2c4WFbs=:tUlyrWFmMQHxy/phVR1odP tBtzFXJIMzVS4Xf4r0PHuajIFlY719oNXV/nc+1DeQATI4dWG6Vtb8LTBzxGVYC94FPiXydeF cSG/zV6IQA5GOnmaFhl9phMJNCuKRT7HilVgnoT1v3suCZkCUAeLtUJ2zNwGpf//+Eazh+5ld wQNnGd9kyYLw4iwyVaxp0nCYqaZhEKiN2Xmx74lSGuPAm4kmrx+3lzpRD11WjHpFHJXjH/VkN XX20ObBopEEXnIMrG7UXFExDIrDy6nqvTSuI8m00zLNRAmqaIoq0WRA1wEK7wNfvDGZL5bezI a9ujZ2JYdCPrDOIBoGmhGVb/8NI63tFyCN9ULamWN87iWZan5IABCnFRh34xtyruYb3c2x7sJ tbOEIx7peRpDsux5uXqF6WsxkGn7NYpUnVihth2D/xUGj8APW621OFiYm+LH5KKaJqRNOycGb NZQH/5Hxc2+h6Sp304dCIT2ckxAxW/TwcqilrtAYAOg+zbFkA1N09L03lqa3j85At6rLT9w0L V69pRF6lTLqe6Y+hND1MfI33AooAmo5xBtqWM3fu/cuzq/yHOKx5WCzHoPo7fWzDobd1o+ra/ 1pncAu+tcTkWYbY78gOZVbEvQeLZ1MV1oFh03G6u/WTIvNVs9SacIRfq6ar0ACutOK0MLT6zZ s17x3eLZB4TZFJpCLyqSy1P6lR+HNFDe8ij0DviXCdYcEXHl3XcZGhWvBSR0j4FzFy50= 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@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.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7CNp5iquV18Dr5pgcHMLtWuHbkISL6llM Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, The byte-compiler doesn't always report the right line and column numbers= =2E For example for the following program in test.el: (defun test () (let (a)) a) Running M-x byte-compile-file RET test.el RET yields: > Compiling file /home/clement/test.el at Fri Jan 1 10:48:41 2016 > > In test: > test.el:2:9:Warning: reference to free variable =E2=80=98a=E2=80=99 The correct warning would be > test.el:3:2:Warning: reference to free variable =E2=80=98a=E2=80=99 Note that the following program gives the right error: (defun test () (let (b)) a) > test.el:3:3:Warning: reference to free variable =E2=80=98a=E2=80=99 Although one might argue that it should be > test.el:3:2:Warning: reference to free variable =E2=80=98a=E2=80=99 (that is, column 2, not 3) given that Emacs starts counting columns at 0.= Cheers, Cl=C3=A9ment. In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-12-29 built on clem-w50-mint Repository revision: a21bb238ce7bcc9c13a9cf66db77918304daa2fc Windowing system distributor 'The X.Org Foundation', version 11.0.1150100= 0 System Description: Linux Mint 17.2 Rafaela Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec 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 smex mc-mark-more multiple-cursors-core rect ws-butler flyspell ispell ruler-mode markdown-mode thingatpt noutline outline recentf tree-widget company-math math-symbol-lists company-files company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb ido-ubiquitous s ucs-normalize ido-completing-read+ cus-edit cus-start cus-load wid-edit autoloads ido haskell-prettify flycheck-pos-tip pos-tip flycheck find-func rx subr-x jka-compr let-alist proof-site proof-autoloads pg-vars company agda2 smart-mode-line-dark-theme smart-mode-line rich-minority page-break-lines diminish which-key which-func imenu elapsed time eml-mode derived demo-mode dash always-make-directory easy-escape easy-mmode delsel paren saveplace savehist xt-mouse finder-inf edmacro kmacro advice tex-site cl-seq cl eieio eieio-core cl-macs info package epg-config compatibility seq byte-opt gv compile comint ansi-color ring bytecomp byte-compile cl-extra help-mode easymenu cl-loaddefs pcase cl-lib cconv tangomod-dark-theme time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 445068 11836) (symbols 48 34336 0) (miscs 40 91 485) (strings 32 84162 14046) (string-bytes 1 2172652) (vectors 16 49548) (vector-slots 8 1484645 186267) (floats 8 296 222) (intervals 56 3143 1078) (buffers 976 15) (heap 1024 39773 2180)) --7CNp5iquV18Dr5pgcHMLtWuHbkISL6llM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWhqE1AAoJEPqg+cTm90wjuBIP/ROXNMHx50aJl1zb29st8n/L rNxlbrNe8GwI5A1c/8V16jg4rOANt5m2SzrQfpNWosYe4iTY1WilRZ7MoWxJVbcc 6GETM3R+EX13/ODK7BjVCCspldeSKJgZmeVyy2Vly5fMKvOyrtRlMGroxH+g9f5i Wtf985JCPp0RCY99NhkvugLKMoQYarq2tUksgkLYo3HDjU6Hr/cCgkp1bhEULNI1 ylu2/mauKcXknN7GA24Hclds1Hm1rYV2HNiZCxULTG5ba0HgP1xmlY34Ss3dzfld qYuje5VBB+F/lnYP9Ky/hwtMdujIITwIMzTBm2r9aJr+JziIeLWOir2VAXAv9Xoi iYi7puBO5eJuAMaE6/rlGquscySGjlJaOkmCbTQdjA8JEMzRlvHN8A9BGCE7IA0p nFIMwKtjbml/HumLlzNWIuYz6RFyn8GHDe4XO4zz6tKYChFnHHpsxLVk1J+PKbyC Y//ADpopmyQ6dM3sCa4oAK7W4YtuTD8NUNjA9nQSN0BfM7Xubu72SfYWaqIPmbmA CJFSrhjyoGGOlbYWMHS5qA/OQVIcPHRZHUAPGiXOIbk0s37fIXp/Q+cu2tDCTcvT fQADxP6PX91yQEgB6JxWrTnHJ0JqTfXRsX4eYyRKLmZ2upmxOQH0ufyecC5HD+IM 3X/W/QAZe8rKkSTrAy0b =mVB4 -----END PGP SIGNATURE----- --7CNp5iquV18Dr5pgcHMLtWuHbkISL6llM-- ------------=_1642875482-9217-1-- From unknown Sat Aug 16 18:48:09 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: Kenichi Handa Subject: bug#2681: closed (Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning) Message-ID: References: X-Gnu-PR-Message: they-closed 2681 X-Gnu-PR-Package: emacs Reply-To: 2681@debbugs.gnu.org Date: Sat, 22 Jan 2022 18:18:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1642875482-9217-3" This is a multi-part message in MIME format... ------------=_1642875482-9217-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22288: 23.0.91; incorrect line shown by lisp compiler 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 2681@debbugs.gnu.org. --=20 22288: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22288 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1642875482-9217-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22288-done) by debbugs.gnu.org; 22 Jan 2022 18:17:10 +0000 Received: from localhost ([127.0.0.1]:37822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBKwo-0002NY-Bh for submit@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:10 -0500 Received: from colin.muc.de ([193.149.48.1]:18317 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nBKwm-0002NK-RV for 22288-done@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:09 -0500 Received: (qmail 74793 invoked by uid 3782); 22 Jan 2022 18:17:02 -0000 Received: from acm.muc.de (p2e5d54f8.dip0.t-ipconnect.de [46.93.84.248]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 22 Jan 2022 19:17:01 +0100 Received: (qmail 16838 invoked by uid 1000); 22 Jan 2022 18:16:58 -0000 Date: Sat, 22 Jan 2022 18:16:58 +0000 To: =?iso-8859-1?Q?Cl=E9ment?= Pit--Claudel Subject: Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning Message-ID: References: <5686A130.1090708@live.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5686A130.1090708@live.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22288-done Cc: 22288-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: -1.0 (-) Hello Everybody. This bug has just been fixed in master by merging in branch scratch/correct-warning-pos. -- Alan Mackenzie (Nuremberg, Germany). On Fri, Jan 01, 2016 at 10:54:24 -0500, Clément Pit--Claudel wrote: > Hi all, > The byte-compiler doesn't always report the right line and column numbers. For example for the following program in test.el: > (defun test () > (let (a)) > a) > Running M-x byte-compile-file RET test.el RET yields: > > Compiling file /home/clement/test.el at Fri Jan 1 10:48:41 2016 > > In test: > > test.el:2:9:Warning: reference to free variable ‘a’ > The correct warning would be > > test.el:3:2:Warning: reference to free variable ‘a’ > Note that the following program gives the right error: > (defun test () > (let (b)) > a) > > test.el:3:3:Warning: reference to free variable ‘a’ > Although one might argue that it should be > > test.el:3:2:Warning: reference to free variable ‘a’ > (that is, column 2, not 3) given that Emacs starts counting columns at 0. > Cheers, > Clément. > In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > of 2015-12-29 built on clem-w50-mint > Repository revision: a21bb238ce7bcc9c13a9cf66db77918304daa2fc > Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 > System Description: Linux Mint 17.2 Rafaela ------------=_1642875482-9217-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 16 Mar 2009 04:16:33 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2G4GTs1013235 for ; Sun, 15 Mar 2009 21:16:31 -0700 Received: from mail.gnu.org ([199.232.76.166]:59435 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lj4FY-0004HH-Ux for emacs-pretest-bug@gnu.org; Mon, 16 Mar 2009 00:16:29 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lj4FW-00083W-MT for emacs-pretest-bug@gnu.org; Mon, 16 Mar 2009 00:16:27 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]:43428) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lj4FW-00082i-38 for emacs-pretest-bug@gnu.org; Mon, 16 Mar 2009 00:16:26 -0400 Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n2G4GIUo029886 for ; Mon, 16 Mar 2009 13:16:18 +0900 (JST) env-from (handa@m17n.org) Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n2G4GIrY015128 for ; Mon, 16 Mar 2009 13:16:18 +0900 (JST) env-from (handa@m17n.org) Received: by smtp1.aist.go.jp with ESMTP id n2G4GHS2011975 for ; Mon, 16 Mar 2009 13:16:17 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1Lj4Fg-0008JF-JP for emacs-pretest-bug@gnu.org; Mon, 16 Mar 2009 13:16:36 +0900 From: Kenichi Handa To: emacs-pretest-bug@gnu.org Subject: 23.0.91; incorrect line shown by lisp compiler Message-Id: Date: Mon, 16 Mar 2009 13:16:36 +0900 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 When I byte compile this file: ---~/temp.el------------------------------------------------ (defun test (vec) (cond ((= (length vec) 0) (message "LEN=0")) ((= (length vec) 1) (message "LEN=1")) ((= (length vec 2)) (message "LEN=2")))) ------------------------------------------------------------ The *Compile-Log* buffer shows these warnings: Compiling file /home/handa/temp.el at Mon Mar 16 13:12:33 2009 In test: temp.el:4:11:Warning: `=' called with 1 arg, but requires 2 temp.el:4:14:Warning: `length' called with 2 args, but requires 1 But the bug is on 6th line, not the 4th line. --- Kenichi Handa handa@m17n.org ------------=_1642875482-9217-3-- From unknown Sat Aug 16 18:48:09 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: Stephen Eglen Subject: bug#8774: closed (Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning) Message-ID: References: X-Gnu-PR-Message: they-closed 8774 X-Gnu-PR-Package: emacs Reply-To: 8774@debbugs.gnu.org Date: Sat, 22 Jan 2022 18:18:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1642875482-9217-5" This is a multi-part message in MIME format... ------------=_1642875482-9217-5 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22288: incorrect line numbers from byte-compile-file 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 8774@debbugs.gnu.org. --=20 22288: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22288 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1642875482-9217-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22288-done) by debbugs.gnu.org; 22 Jan 2022 18:17:10 +0000 Received: from localhost ([127.0.0.1]:37822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBKwo-0002NY-Bh for submit@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:10 -0500 Received: from colin.muc.de ([193.149.48.1]:18317 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nBKwm-0002NK-RV for 22288-done@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:09 -0500 Received: (qmail 74793 invoked by uid 3782); 22 Jan 2022 18:17:02 -0000 Received: from acm.muc.de (p2e5d54f8.dip0.t-ipconnect.de [46.93.84.248]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 22 Jan 2022 19:17:01 +0100 Received: (qmail 16838 invoked by uid 1000); 22 Jan 2022 18:16:58 -0000 Date: Sat, 22 Jan 2022 18:16:58 +0000 To: =?iso-8859-1?Q?Cl=E9ment?= Pit--Claudel Subject: Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning Message-ID: References: <5686A130.1090708@live.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5686A130.1090708@live.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22288-done Cc: 22288-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: -1.0 (-) Hello Everybody. This bug has just been fixed in master by merging in branch scratch/correct-warning-pos. -- Alan Mackenzie (Nuremberg, Germany). On Fri, Jan 01, 2016 at 10:54:24 -0500, Clément Pit--Claudel wrote: > Hi all, > The byte-compiler doesn't always report the right line and column numbers. For example for the following program in test.el: > (defun test () > (let (a)) > a) > Running M-x byte-compile-file RET test.el RET yields: > > Compiling file /home/clement/test.el at Fri Jan 1 10:48:41 2016 > > In test: > > test.el:2:9:Warning: reference to free variable ‘a’ > The correct warning would be > > test.el:3:2:Warning: reference to free variable ‘a’ > Note that the following program gives the right error: > (defun test () > (let (b)) > a) > > test.el:3:3:Warning: reference to free variable ‘a’ > Although one might argue that it should be > > test.el:3:2:Warning: reference to free variable ‘a’ > (that is, column 2, not 3) given that Emacs starts counting columns at 0. > Cheers, > Clément. > In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > of 2015-12-29 built on clem-w50-mint > Repository revision: a21bb238ce7bcc9c13a9cf66db77918304daa2fc > Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 > System Description: Linux Mint 17.2 Rafaela ------------=_1642875482-9217-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 31 May 2011 16:01:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRRNI-0003Td-06 for submit@debbugs.gnu.org; Tue, 31 May 2011 12:01:04 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRQ0l-0001ZX-Qn for submit@debbugs.gnu.org; Tue, 31 May 2011 10:33:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRQ0f-0004jW-UD for submit@debbugs.gnu.org; Tue, 31 May 2011 10:33:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:55938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQ0f-0004jS-Sd for submit@debbugs.gnu.org; Tue, 31 May 2011 10:33:29 -0400 Received: from eggs.gnu.org ([140.186.70.92]:36807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQ0e-0007NS-SV for bug-gnu-emacs@gnu.org; Tue, 31 May 2011 10:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRQ0a-0004iW-CM for bug-gnu-emacs@gnu.org; Tue, 31 May 2011 10:33:28 -0400 Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141]:53407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQ0a-0004iH-8N for bug-gnu-emacs@gnu.org; Tue, 31 May 2011 10:33:24 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from cpc28-cmbg15-2-0-cust3.5-4.cable.virginmedia.com ([86.27.189.4]:59504 helo=localhost) by ppsw-41.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587) with esmtpsa (PLAIN:sje30) (TLSv1:DHE-RSA-AES256-SHA:256) id 1QRQ0Y-0008Vw-Sf (Exim 4.72) (return-path ); Tue, 31 May 2011 15:33:22 +0100 From: Stephen Eglen To: bug-gnu-emacs@gnu.org Subject: incorrect line numbers from byte-compile-file X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.3.1 Date: Tue, 31 May 2011 15:33:21 +0100 Message-Id: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 31 May 2011 12:00:50 -0400 Cc: Stephen Eglen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) With emacs -q, load the following into a file, test.el ---------------------------------------------------------------------- (defun fix-page-breaks () "Fix page breaks in SAS 6 print files." (interactive) (save-excursion (goto-char (point-min)) (if (looking-at "\f") (delete-char 1)) (replace-regexp "^\\(.+\\)\f" "\\1\n\f\n") (goto-char (point-min)) (replace-regexp "^\f\\(.+\\)" "\f\n\\1") (goto-char (point-min)))) ---------------------------------------------------------------------- then M-x byte-compile-file generates: Compiling file /Users/stephen/txt/t/test.el at Tue May 31 15:28:08 2011 In fix-page-breaks: test.el:6:28:Warning: `replace-regexp' used from Lisp code That command is designed for interactive use only test.el:7:6:Warning: `replace-regexp' used from Lisp code That command is designed for interactive use only The first error has the wrong line, although it has caught the two problematic cases. This is with emacs 23.3.1, but same behaviour seen on Emacs 24.0.50 Stephen (emacs-version) "GNU Emacs 23.3.1 (x86_64-apple-darwin10.6.0, NS apple-appkit-1038.35) of 2011-03-10 on teva.local" ------------=_1642875482-9217-5-- From unknown Sat Aug 16 18:48:09 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: Roland Winkler Subject: bug#9109: closed (Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning) Message-ID: References: <20003.424.766669.799272@gargle.gargle.HOWL> X-Gnu-PR-Message: they-closed 9109 X-Gnu-PR-Package: emacs Reply-To: 9109@debbugs.gnu.org Date: Sat, 22 Jan 2022 18:18:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1642875482-9217-7" This is a multi-part message in MIME format... ------------=_1642875482-9217-7 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22288: 24.0.50; Warning: assignment to free variable (unwind-protect) 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 9109@debbugs.gnu.org. --=20 22288: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22288 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1642875482-9217-7 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22288-done) by debbugs.gnu.org; 22 Jan 2022 18:17:10 +0000 Received: from localhost ([127.0.0.1]:37822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBKwo-0002NY-Bh for submit@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:10 -0500 Received: from colin.muc.de ([193.149.48.1]:18317 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nBKwm-0002NK-RV for 22288-done@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:09 -0500 Received: (qmail 74793 invoked by uid 3782); 22 Jan 2022 18:17:02 -0000 Received: from acm.muc.de (p2e5d54f8.dip0.t-ipconnect.de [46.93.84.248]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 22 Jan 2022 19:17:01 +0100 Received: (qmail 16838 invoked by uid 1000); 22 Jan 2022 18:16:58 -0000 Date: Sat, 22 Jan 2022 18:16:58 +0000 To: =?iso-8859-1?Q?Cl=E9ment?= Pit--Claudel Subject: Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning Message-ID: References: <5686A130.1090708@live.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5686A130.1090708@live.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22288-done Cc: 22288-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: -1.0 (-) Hello Everybody. This bug has just been fixed in master by merging in branch scratch/correct-warning-pos. -- Alan Mackenzie (Nuremberg, Germany). On Fri, Jan 01, 2016 at 10:54:24 -0500, Clément Pit--Claudel wrote: > Hi all, > The byte-compiler doesn't always report the right line and column numbers. For example for the following program in test.el: > (defun test () > (let (a)) > a) > Running M-x byte-compile-file RET test.el RET yields: > > Compiling file /home/clement/test.el at Fri Jan 1 10:48:41 2016 > > In test: > > test.el:2:9:Warning: reference to free variable ‘a’ > The correct warning would be > > test.el:3:2:Warning: reference to free variable ‘a’ > Note that the following program gives the right error: > (defun test () > (let (b)) > a) > > test.el:3:3:Warning: reference to free variable ‘a’ > Although one might argue that it should be > > test.el:3:2:Warning: reference to free variable ‘a’ > (that is, column 2, not 3) given that Emacs starts counting columns at 0. > Cheers, > Clément. > In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > of 2015-12-29 built on clem-w50-mint > Repository revision: a21bb238ce7bcc9c13a9cf66db77918304daa2fc > Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 > System Description: Linux Mint 17.2 Rafaela ------------=_1642875482-9217-7 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jul 2011 15:37:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QiTPb-00061D-7v for submit@debbugs.gnu.org; Sun, 17 Jul 2011 11:37:43 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QiTPZ-000612-Ik for submit@debbugs.gnu.org; Sun, 17 Jul 2011 11:37:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiTPS-00041s-Vw for submit@debbugs.gnu.org; Sun, 17 Jul 2011 11:37:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:45136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiTPS-00041n-M8 for submit@debbugs.gnu.org; Sun, 17 Jul 2011 11:37:34 -0400 Received: from eggs.gnu.org ([140.186.70.92]:41385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiTPR-0007sz-2M for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 11:37:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiTPP-00041K-Hr for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 11:37:32 -0400 Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:29258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiTPP-00040y-0A for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 11:37:31 -0400 Received: from regnitz (unknown [218.22.26.51]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id EF74B39814 for ; Sun, 17 Jul 2011 17:37:20 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20003.424.766669.799272@gargle.gargle.HOWL> Date: Sun, 17 Jul 2011 10:37:12 -0500 From: Roland Winkler To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Warning: assignment to free variable (unwind-protect) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) cat > foo.el < Subject: bug#24128: closed (Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning) Message-ID: References: <837fc0ntmw.fsf@gnu.org> X-Gnu-PR-Message: they-closed 24128 X-Gnu-PR-Package: emacs Reply-To: 24128@debbugs.gnu.org Date: Sat, 22 Jan 2022 18:18:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1642875483-9217-9" This is a multi-part message in MIME format... ------------=_1642875483-9217-9 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22288: 25.1; Strange warning from byte compiler in gud.el and gdb-mi.el 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 24128@debbugs.gnu.org. --=20 22288: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22288 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1642875483-9217-9 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22288-done) by debbugs.gnu.org; 22 Jan 2022 18:17:10 +0000 Received: from localhost ([127.0.0.1]:37822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBKwo-0002NY-Bh for submit@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:10 -0500 Received: from colin.muc.de ([193.149.48.1]:18317 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nBKwm-0002NK-RV for 22288-done@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:09 -0500 Received: (qmail 74793 invoked by uid 3782); 22 Jan 2022 18:17:02 -0000 Received: from acm.muc.de (p2e5d54f8.dip0.t-ipconnect.de [46.93.84.248]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 22 Jan 2022 19:17:01 +0100 Received: (qmail 16838 invoked by uid 1000); 22 Jan 2022 18:16:58 -0000 Date: Sat, 22 Jan 2022 18:16:58 +0000 To: =?iso-8859-1?Q?Cl=E9ment?= Pit--Claudel Subject: Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning Message-ID: References: <5686A130.1090708@live.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5686A130.1090708@live.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22288-done Cc: 22288-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: -1.0 (-) Hello Everybody. This bug has just been fixed in master by merging in branch scratch/correct-warning-pos. -- Alan Mackenzie (Nuremberg, Germany). On Fri, Jan 01, 2016 at 10:54:24 -0500, Clément Pit--Claudel wrote: > Hi all, > The byte-compiler doesn't always report the right line and column numbers. For example for the following program in test.el: > (defun test () > (let (a)) > a) > Running M-x byte-compile-file RET test.el RET yields: > > Compiling file /home/clement/test.el at Fri Jan 1 10:48:41 2016 > > In test: > > test.el:2:9:Warning: reference to free variable ‘a’ > The correct warning would be > > test.el:3:2:Warning: reference to free variable ‘a’ > Note that the following program gives the right error: > (defun test () > (let (b)) > a) > > test.el:3:3:Warning: reference to free variable ‘a’ > Although one might argue that it should be > > test.el:3:2:Warning: reference to free variable ‘a’ > (that is, column 2, not 3) given that Emacs starts counting columns at 0. > Cheers, > Clément. > In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > of 2015-12-29 built on clem-w50-mint > Repository revision: a21bb238ce7bcc9c13a9cf66db77918304daa2fc > Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 > System Description: Linux Mint 17.2 Rafaela ------------=_1642875483-9217-9 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Aug 2016 20:04:57 +0000 Received: from localhost ([127.0.0.1]:53183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUJSL-0007WM-Kr for submit@debbugs.gnu.org; Mon, 01 Aug 2016 16:04:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42105) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUJSJ-0007W6-Jf for submit@debbugs.gnu.org; Mon, 01 Aug 2016 16:04:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUJSD-00071C-Di for submit@debbugs.gnu.org; Mon, 01 Aug 2016 16:04:50 -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.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUJSD-000717-AS for submit@debbugs.gnu.org; Mon, 01 Aug 2016 16:04:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUJSA-0000Rn-Sy for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2016 16:04:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUJS4-0006z2-RS for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2016 16:04:45 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUJS4-0006yt-Nl for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2016 16:04:40 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1761 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bUJS0-0001k6-Sl for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2016 16:04:39 -0400 Date: Mon, 01 Aug 2016 23:04:07 +0300 Message-Id: <837fc0ntmw.fsf@gnu.org> From: Eli Zaretskii To: bug-gnu-emacs@gnu.org Subject: 25.1; Strange warning from byte compiler in gud.el and gdb-mi.el 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: -6.2 (------) 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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.2 (------) When these two files are compiled, the byte compiler emits strange warnings: ELC progmodes/gdb-mi.elc In toplevel form: progmodes/gdb-mi.el:675:1:Warning: Unused lexical argument `arg' ELC progmodes/gud.elc In toplevel form: progmodes/gud.el:735:1:Warning: Unused lexical argument `arg' But there's no "arg" anywhere in sight on those lines, which are these: (defun gdb (command-line) (defun gud-gdb (command-line) What is going on here? In GNU Emacs 25.1.7 (i686-pc-mingw32) of 2016-08-01 built on HOME-C4E4A596F7 Repository revision: aa4271ab7299c033760db64bf15476a5e0eee2a5 Windowing system distributor 'Microsoft Corp.', version 5.1.2600 Configured using: 'configure --prefix=/d/usr --enable-checking=yes,glyphs --with-wide-int --with-modules 'CFLAGS=-O0 -gdwarf-4 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: Lisp Interaction 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: For information about GNU Emacs and the GNU system, type C-h C-a. 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 help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-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 16 93412 6661) (symbols 56 20753 0) (miscs 48 46 107) (strings 16 17771 6169) (string-bytes 1 441590) (vectors 16 12447) (vector-slots 8 432678 5024) (floats 8 162 46) (intervals 40 262 119) (buffers 856 21)) ------------=_1642875483-9217-9-- From unknown Sat Aug 16 18:48:09 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: ynyaaa@gmail.com Subject: bug#24592: closed (Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning) Message-ID: References: <87zimm8c2m.fsf@gmail.com> X-Gnu-PR-Message: they-closed 24592 X-Gnu-PR-Package: emacs Reply-To: 24592@debbugs.gnu.org Date: Sat, 22 Jan 2022 18:18:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1642875483-9217-11" This is a multi-part message in MIME format... ------------=_1642875483-9217-11 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22288: 25.1; byte-compile warning indicates wrong line 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 24592@debbugs.gnu.org. --=20 22288: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22288 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1642875483-9217-11 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22288-done) by debbugs.gnu.org; 22 Jan 2022 18:17:10 +0000 Received: from localhost ([127.0.0.1]:37822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBKwo-0002NY-Bh for submit@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:10 -0500 Received: from colin.muc.de ([193.149.48.1]:18317 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nBKwm-0002NK-RV for 22288-done@debbugs.gnu.org; Sat, 22 Jan 2022 13:17:09 -0500 Received: (qmail 74793 invoked by uid 3782); 22 Jan 2022 18:17:02 -0000 Received: from acm.muc.de (p2e5d54f8.dip0.t-ipconnect.de [46.93.84.248]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 22 Jan 2022 19:17:01 +0100 Received: (qmail 16838 invoked by uid 1000); 22 Jan 2022 18:16:58 -0000 Date: Sat, 22 Jan 2022 18:16:58 +0000 To: =?iso-8859-1?Q?Cl=E9ment?= Pit--Claudel Subject: Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning Message-ID: References: <5686A130.1090708@live.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5686A130.1090708@live.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22288-done Cc: 22288-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: -1.0 (-) Hello Everybody. This bug has just been fixed in master by merging in branch scratch/correct-warning-pos. -- Alan Mackenzie (Nuremberg, Germany). On Fri, Jan 01, 2016 at 10:54:24 -0500, Clément Pit--Claudel wrote: > Hi all, > The byte-compiler doesn't always report the right line and column numbers. For example for the following program in test.el: > (defun test () > (let (a)) > a) > Running M-x byte-compile-file RET test.el RET yields: > > Compiling file /home/clement/test.el at Fri Jan 1 10:48:41 2016 > > In test: > > test.el:2:9:Warning: reference to free variable ‘a’ > The correct warning would be > > test.el:3:2:Warning: reference to free variable ‘a’ > Note that the following program gives the right error: > (defun test () > (let (b)) > a) > > test.el:3:3:Warning: reference to free variable ‘a’ > Although one might argue that it should be > > test.el:3:2:Warning: reference to free variable ‘a’ > (that is, column 2, not 3) given that Emacs starts counting columns at 0. > Cheers, > Clément. > In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > of 2015-12-29 built on clem-w50-mint > Repository revision: a21bb238ce7bcc9c13a9cf66db77918304daa2fc > Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 > System Description: Linux Mint 17.2 Rafaela ------------=_1642875483-9217-11 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Oct 2016 01:18:52 +0000 Received: from localhost ([127.0.0.1]:42345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqru8-0004U8-1C for submit@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 ) id 1bqru6-0004Tv-Na for submit@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 ) id 1bqru0-000099-Ee for submit@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 ) id 1bqru0-000095-Bn for submit@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 ) id 1bqrty-0006KL-Kf for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2016 21:18:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqrtu-00007p-Dp for bug-gnu-emacs@gnu.org; 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 ) id 1bqrtu-00007g-6m for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2016 21:18:38 -0400 Received: by mail-pf0-x241.google.com with SMTP id i85so1369884pfa.0 for ; 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 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Oct 2016 18:18:35 -0700 (PDT) From: ynyaaa@gmail.com To: bug-gnu-emacs@gnu.org Subject: 25.1; byte-compile warning indicates wrong line Date: Mon, 03 Oct 2016 10:18:25 +0900 Message-ID: <87zimm8c2m.fsf@gmail.com> 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@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.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)) ------------=_1642875483-9217-11--