From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Can't M-x compile-defun `edebug' because dynamic variables are falsely taken as lexical. Date: Tue, 3 Jan 2017 14:14:44 +0000 Message-ID: <20170103141444.GA4649@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1483452949 27970 195.159.176.226 (3 Jan 2017 14:15:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2017 14:15:49 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 03 15:15:45 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOPsJ-00066T-V5 for ged-emacs-devel@m.gmane.org; Tue, 03 Jan 2017 15:15:40 +0100 Original-Received: from localhost ([::1]:33956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOPsN-0002Nh-T1 for ged-emacs-devel@m.gmane.org; Tue, 03 Jan 2017 09:15:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOPrn-0002KI-GQ for emacs-devel@gnu.org; Tue, 03 Jan 2017 09:15:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOPrk-00040c-BO for emacs-devel@gnu.org; Tue, 03 Jan 2017 09:15:07 -0500 Original-Received: from ocolin.muc.de ([193.149.48.4]:19210 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1cOPrj-00040G-WB for emacs-devel@gnu.org; Tue, 03 Jan 2017 09:15:04 -0500 Original-Received: (qmail 92790 invoked by uid 3782); 3 Jan 2017 14:15:00 -0000 Original-Received: from acm.muc.de (p548C6A5F.dip0.t-ipconnect.de [84.140.106.95]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 03 Jan 2017 15:14:59 +0100 Original-Received: (qmail 4842 invoked by uid 1000); 3 Jan 2017 14:14:44 -0000 Content-Disposition: inline X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211078 Archived-At: Hello, Emacs. I'm in Emacs 25.1. I want to M-x compile-defun the function `edebug'. When I attempt this, I get the "warning" messages: Warning: Unused lexical variable `edebug-break' Warning: Unused lexical variable `edebug-global-break' Warning: Unused lexical variable `edebug-break-condition' Warning: Unused lexical variable `edebug-break-data' Warning: Unused lexical variable `edebug-breakpoints' . These variables are dynamic ones, declared earlier on in the file like this: (defvar edebug-breakpoints) , i.e. without initialising expressions. I tried C-x C-e on each such declaration, then repeating the compile-defun, to no avail. lexical-binding is set in edebug.el. Emacs should be able to compile successfully in such circumstances, surely?. What am I doing wrong, here? -- Alan Mackenzie (Nuremberg, Germany).