GNU bug report logs -
#24128
25.1; Strange warning from byte compiler in gud.el and gdb-mi.el
Previous Next
Reported by: Eli Zaretskii <eliz <at> gnu.org>
Date: Mon, 1 Aug 2016 20:05:02 UTC
Severity: minor
Merged with 2681,
8774,
9109,
22288,
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 24128 in the body.
You can then email your comments to 24128 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#24128
; Package
emacs
.
(Mon, 01 Aug 2016 20:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 01 Aug 2016 20:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24128
; Package
emacs
.
(Mon, 01 Aug 2016 20:35:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 24128 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> progmodes/gud.el:735:1:Warning: Unused lexical argument `arg'
(gud-def gud-jump
(progn (gud-call "tbreak %f:%l") (gud-call "jump %f:%l"))
"\C-j" "Set execution address to current line.")
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24128
; Package
emacs
.
(Mon, 01 Aug 2016 20:38:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 24128 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> 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'
>
> What is going on here?
I think the warnings come from compiling some lambda created by the
macro `gud-def', and the determined positions are just incorrect.
Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24128
; Package
emacs
.
(Tue, 02 Aug 2016 02:36:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 24128 <at> debbugs.gnu.org (full text, mbox):
> From: Michael Heerdegen <michael_heerdegen <at> web.de>
> Cc: 24128 <at> debbugs.gnu.org
> Date: Mon, 01 Aug 2016 22:37:39 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > 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'
> >
>
> > What is going on here?
>
> I think the warnings come from compiling some lambda created by the
> macro `gud-def', and the determined positions are just incorrect.
We should make the reported line correct, then. Right?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24128
; Package
emacs
.
(Tue, 02 Aug 2016 03:27:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 24128 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> We should make the reported line correct, then. Right?
Seems the reported line number names the start of the according
top-level defun. I wonder whether the compiler code knows at all to
which line the reported warning exactly refers (I don't know, but
somewhat doubt it). Maybe someone else can help more.
Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24128
; Package
emacs
.
(Tue, 02 Aug 2016 03:50:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 24128 <at> debbugs.gnu.org (full text, mbox):
On Mon, Aug 1, 2016 at 11:25 PM, Michael Heerdegen
<michael_heerdegen <at> web.de> wrote:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> We should make the reported line correct, then. Right?
>
> Seems the reported line number names the start of the according
> top-level defun. I wonder whether the compiler code knows at all to
> which line the reported warning exactly refers (I don't know, but
> somewhat doubt it). Maybe someone else can help more.
>
It's a fairly long-standing bug, see
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2681 and merged bugs.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24128
; Package
emacs
.
(Tue, 02 Aug 2016 14:51:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 24128 <at> debbugs.gnu.org (full text, mbox):
> From: Noam Postavsky <npostavs <at> users.sourceforge.net>
> Date: Mon, 1 Aug 2016 23:48:59 -0400
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 24128 <at> debbugs.gnu.org
>
> On Mon, Aug 1, 2016 at 11:25 PM, Michael Heerdegen
> <michael_heerdegen <at> web.de> wrote:
> > Eli Zaretskii <eliz <at> gnu.org> writes:
> >
> >> We should make the reported line correct, then. Right?
> >
> > Seems the reported line number names the start of the according
> > top-level defun. I wonder whether the compiler code knows at all to
> > which line the reported warning exactly refers (I don't know, but
> > somewhat doubt it). Maybe someone else can help more.
> >
>
> It's a fairly long-standing bug, see
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2681 and merged bugs.
So it's high time we had it fixed, IMO.
Thanks.
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.
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.