GNU bug report logs - #18971
25.0.50; incorrect warning from byte compiler

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

Package: emacs; Severity: minor; Reported by: Tom Tromey <tom@HIDDEN>; dated Thu, 6 Nov 2014 04:16:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 18971) by debbugs.gnu.org; 6 Nov 2014 15:29:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 06 10:29:56 2014
Received: from localhost ([127.0.0.1]:51975 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XmP0W-00036A-JE
	for submit <at> debbugs.gnu.org; Thu, 06 Nov 2014 10:29:56 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40460)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1XmP0U-000363-VX
 for 18971 <at> debbugs.gnu.org; Thu, 06 Nov 2014 10:29:55 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvAMAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+yDmDGgQCAoEcFwEBfIQDAQEEViMQCzQSFBgNJIhUy3IBAQEBAQEEAQEBAR6RCAeESwWLZKY8gW+EFh+CegEBAQ
X-IPAS-Result: AvAMAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+yDmDGgQCAoEcFwEBfIQDAQEEViMQCzQSFBgNJIhUy3IBAQEBAQEEAQEBAR6RCAeESwWLZKY8gW+EFh+CegEBAQ
X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96108906"
Received: from 75-119-235-29.dsl.teksavvy.com (HELO ceviche.home)
 ([75.119.235.29])
 by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA;
 06 Nov 2014 10:29:54 -0500
Received: by ceviche.home (Postfix, from userid 20848)
 id 243BE660D4; Thu,  6 Nov 2014 10:29:54 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Tom Tromey <tom@HIDDEN>
Subject: Re: bug#18971: 25.0.50; incorrect warning from byte compiler
Message-ID: <jwv8ujoqreh.fsf-monnier+emacsbugs@HIDDEN>
References: <87egthoti4.fsf@HIDDEN>
Date: Thu, 06 Nov 2014 10:29:54 -0500
In-Reply-To: <87egthoti4.fsf@HIDDEN> (Tom Tromey's message of "Wed, 05 Nov
 2014 21:14:27 -0700")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 18971
Cc: 18971 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> ; -*- lexical-binding:t -*-
> (require 'bytecomp)
> (defun z ()
>   (byte-compile-close-variables
>    (message "hi")))

If it hurts, don't do that.

`byte-compile-close-variables' is an internal macro in bytecomp.el.
Why do you need to use it elsewhere?


        Stefan




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

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


Received: (at submit) by debbugs.gnu.org; 6 Nov 2014 04:15:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 05 23:15:11 2014
Received: from localhost ([127.0.0.1]:50772 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XmETW-0001Bm-Ob
	for submit <at> debbugs.gnu.org; Wed, 05 Nov 2014 23:15:11 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45653)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <tom@HIDDEN>) id 1XmETS-0001Bd-Vy
 for submit <at> debbugs.gnu.org; Wed, 05 Nov 2014 23:15:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <tom@HIDDEN>) id 1XmETK-0001hk-IS
 for submit <at> debbugs.gnu.org; Wed, 05 Nov 2014 23:15:06 -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,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39913)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <tom@HIDDEN>) id 1XmETK-0001hf-Fn
 for submit <at> debbugs.gnu.org; Wed, 05 Nov 2014 23:14:58 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47337)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <tom@HIDDEN>) id 1XmETD-00029l-Bs
 for bug-gnu-emacs@HIDDEN; Wed, 05 Nov 2014 23:14:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <tom@HIDDEN>) id 1XmET6-0001ey-8m
 for bug-gnu-emacs@HIDDEN; Wed, 05 Nov 2014 23:14:51 -0500
Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:34679)
 by eggs.gnu.org with smtp (Exim 4.71)
 (envelope-from <tom@HIDDEN>) id 1XmET5-0001eZ-Vm
 for bug-gnu-emacs@HIDDEN; Wed, 05 Nov 2014 23:14:44 -0500
Received: (qmail 11608 invoked by uid 0); 6 Nov 2014 04:14:39 -0000
Received: from unknown (HELO cmgw3) (10.0.90.84)
 by gproxy7.mail.unifiedlayer.com with SMTP; 6 Nov 2014 04:14:39 -0000
Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with 
 id CAEX1p00B2f2jeq01AEajR; Thu, 06 Nov 2014 03:14:38 -0700
X-Authority-Analysis: v=2.1 cv=ON60g0qB c=1 sm=1 tr=0
 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8
 a=f5113yIGAAAA:8 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=X1qvojbhiZEA:10
 a=XcNDXOJVOLORrFxHvb8A:9 a=6H20P_xO7qywqrzK:21 a=l0mEdJ8x2JOLIwEu:21
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com;
 s=default; 
 h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From;
 bh=NnvH7XyGmvB57ptaoY5b1OgZIV/y1gEN0yV8YxqO0Mc=; 
 b=rHytd/SyoMFFKRgo6YZ6VOlyZBybvokxgt+dbLjADz77f9vptHhgKYSJD4xPhdBNG0pa9+T4082pszqhY8snTf6RwshTQGHvoqau43hQ0JwmpeFUnMvY4GVxUceROdlV;
Received: from [71.33.139.67] (port=35390 helo=bapiya)
 by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128)
 (Exim 4.82) (envelope-from <tom@HIDDEN>) id 1XmESt-0004ep-SP
 for bug-gnu-emacs@HIDDEN; Wed, 05 Nov 2014 21:14:32 -0700
From: Tom Tromey <tom@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.50; incorrect warning from byte compiler
Date: Wed, 05 Nov 2014 21:14:27 -0700
Message-ID: <87egthoti4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com}
 {sentby:smtp auth 71.33.139.67 authed with tom+tromey.com}
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


Byte compile this file:

; -*- lexical-binding:t -*-
(require 'bytecomp)
(defun z ()
  (byte-compile-close-variables
   (message "hi")))

I get:

In toplevel form:
q.el:3:1:Warning: Unused lexical variable `byte-compile-free-assignments'
q.el:3:1:Warning: Unused lexical variable `byte-compile-free-references'
q.el:3:1:Warning: Unused lexical variable `byte-compile--outbuffer'

I think the warning seems wrong.  bytecomp.el has a defvar for each of
these variables, so I expected them not to be considered lexical.




In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9)
 of 2014-11-05 on bapiya
Repository revision: 118301 monnier@HIDDEN
Windowing system distributor `Fedora Project', version 11.0.11404000
Configured using:
 `configure --prefix=/home/tromey/Emacs/install'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  flyspell-mode: t
  which-function-mode: t
  global-auto-revert-mode: t
  desktop-save-mode: t
  erc-services-mode: t
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  savehist-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill

Recent messages:
C-x C-g is undefined
Saving file /home/tromey/Emacs/ET/q.el...
Wrote /home/tromey/Emacs/ET/q.el
Saving file /home/tromey/Emacs/ET/q.el...
Wrote /home/tromey/Emacs/ET/q.el
Making completion list...
Mark saved where search started [2 times]
Mark set
Mark saved where search started
Mark set [2 times]
Quit

Load-path shadows:
/home/tromey/.emacs.d/elpa/css-mode-1.0/css-mode hides /home/tromey/Emacs/install/share/emacs/25.0.50/lisp/textmodes/css-mode
/home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /home/tromey/Emacs/install/share/emacs/25.0.50/lisp/play/bubbles

Features:
(shadow sort mail-extr warnings emacsbug sendmail copyright dabbrev
misearch multi-isearch shell message dired rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mailabbrev mail-utils gmm-utils mailheader make-mode texinfo sh-script
smie executable sgml-mode smerge-mode bug-reference goto-addr add-log
cc-mode cc-fonts cc-guess cc-menus cc-cmds vc-arch vc-mtn vc-hg vc-sccs
vc-svn vc-cvs vc-rcs jka-compr vc-bzr vc-git diff-mode easy-mmode
flyspell ispell diminish projectile edmacro kmacro pkg-info find-func
lisp-mnt epl grep compile dash s appt diary-lib diary-loaddefs cal-menu
calendar cal-loaddefs which-func imenu minimap autorevert filenotify
desktop frameset cus-start cus-load status erc-services erc-list
erc-menu erc-join erc-ring erc-networks erc-pcomplete pcomplete
erc-track erc-match erc-button wid-edit erc-fill erc-stamp erc-netsplit
erc-goodies erc erc-backend erc-compat format-spec auth-source cl-macs
gv eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core
gnus-util mm-util mail-prsvr password-cache thingatpt pp advice help-fns
vc-dir ewoc vc cl-loaddefs cl-lib vc-dispatcher cc-styles cc-align
cc-engine cc-vars cc-defs bbdb timezone ange-ftp comint ansi-color ring
server savehist dwarf-mode-autoloads gdb-shell-autoloads
jabber-autoloads lisppaste-autoloads pydoc-info-autoloads info-look info
easymenu weblogger-autoloads package epg-config bbdb-autoloads time-date
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-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 cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 421995 36333)
 (symbols 48 36948 0)
 (miscs 40 21361 845)
 (strings 32 76233 10784)
 (string-bytes 1 2288448)
 (vectors 16 30564)
 (vector-slots 8 656796 18204)
 (floats 8 151 435)
 (intervals 56 16761 235)
 (buffers 976 171)
 (heap 1024 59018 1707))




Acknowledgement sent to Tom Tromey <tom@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#18971; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 6 Nov 2014 15:30:03 UTC

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