GNU bug report logs -
#22288
25.0.50; Incorrect line and column number in byte-compilation warning
Previous Next
Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
Date: Sat, 2 Jan 2016 01:52:04 UTC
Severity: minor
Merged with 2681,
8774,
9109,
24128,
24592
Found in versions 23.0.91, 23.3.1, 24.0.50, 24.3.1, 25.0.50, 25.1
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22288 in the body.
You can then email your comments to 22288 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22288
; Package
emacs
.
(Sat, 02 Jan 2016 01:52:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Clément Pit--Claudel <clement.pitclaudel <at> live.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 02 Jan 2016 01:52:05 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
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=ibus
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))
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22288
; Package
emacs
.
(Sat, 02 Jan 2016 17:48:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 22288 <at> debbugs.gnu.org (full text, mbox):
Clément Pit--Claudel wrote:
> The byte-compiler doesn't always report the right line and column
> numbers.
I think this is a long-standing known issue.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22288
; Package
emacs
.
(Mon, 11 Jan 2016 22:36:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 22288 <at> debbugs.gnu.org (full text, mbox):
The bug is reproducible in 24.3.1
--
Respectfully,
Arseniy.
bug Marked as found in versions 24.3.1.
Request was from
Noam Postavsky <npostavs <at> users.sourceforge.net>
to
control <at> debbugs.gnu.org
.
(Wed, 01 Jun 2016 15:34:03 GMT)
Full text and
rfc822 format available.
Merged 2681 8774 22288.
Request was from
Noam Postavsky <npostavs <at> users.sourceforge.net>
to
control <at> debbugs.gnu.org
.
(Wed, 01 Jun 2016 15:34:03 GMT)
Full text and
rfc822 format available.
Disconnected #24449 from all other report(s).
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 16 Sep 2016 20:33:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Alan Mackenzie <acm <at> muc.de>
:
You have taken responsibility.
(Sat, 22 Jan 2022 18:18:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Clément Pit--Claudel <clement.pitclaudel <at> live.com>
:
bug acknowledged by developer.
(Sat, 22 Jan 2022 18:18:02 GMT)
Full text and
rfc822 format available.
Message #30 received at 22288-done <at> debbugs.gnu.org (full text, mbox):
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
Reply sent
to
Alan Mackenzie <acm <at> muc.de>
:
You have taken responsibility.
(Sat, 22 Jan 2022 18:18:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kenichi Handa <handa <at> m17n.org>
:
bug acknowledged by developer.
(Sat, 22 Jan 2022 18:18:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Alan Mackenzie <acm <at> muc.de>
:
You have taken responsibility.
(Sat, 22 Jan 2022 18:18:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk>
:
bug acknowledged by developer.
(Sat, 22 Jan 2022 18:18:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Alan Mackenzie <acm <at> muc.de>
:
You have taken responsibility.
(Sat, 22 Jan 2022 18:18:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Roland Winkler <winkler <at> gnu.org>
:
bug acknowledged by developer.
(Sat, 22 Jan 2022 18:18:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Alan Mackenzie <acm <at> muc.de>
:
You have taken responsibility.
(Sat, 22 Jan 2022 18:18:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
bug acknowledged by developer.
(Sat, 22 Jan 2022 18:18:03 GMT)
Full text and
rfc822 format available.
Reply sent
to
Alan Mackenzie <acm <at> muc.de>
:
You have taken responsibility.
(Sat, 22 Jan 2022 18:18:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
ynyaaa <at> gmail.com
:
bug acknowledged by developer.
(Sat, 22 Jan 2022 18:18:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 20 Feb 2022 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 118 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.