From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: With lexical-binding t, how do I bind an external symbol dynamicall? Date: Sat, 29 Aug 2015 16:35:44 +0000 Message-ID: <20150829163544.GB20484@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1440866096 26058 80.91.229.3 (29 Aug 2015 16:34:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Aug 2015 16:34:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 29 18:34:49 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZVj5b-0001as-W2 for ged-emacs-devel@m.gmane.org; Sat, 29 Aug 2015 18:34:48 +0200 Original-Received: from localhost ([::1]:53501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVj5b-0000wG-Da for ged-emacs-devel@m.gmane.org; Sat, 29 Aug 2015 12:34:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVj5Y-0000vm-2b for emacs-devel@gnu.org; Sat, 29 Aug 2015 12:34:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVj5U-0001An-Sn for emacs-devel@gnu.org; Sat, 29 Aug 2015 12:34:44 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:24334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVj5U-0001AL-NK for emacs-devel@gnu.org; Sat, 29 Aug 2015 12:34:40 -0400 Original-Received: (qmail 51051 invoked by uid 3782); 29 Aug 2015 16:34:39 -0000 Original-Received: from acm.muc.de (p5B1468D1.dip0.t-ipconnect.de [91.20.104.209]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 29 Aug 2015 18:34:38 +0200 Original-Received: (qmail 20692 invoked by uid 1000); 29 Aug 2015 16:35:44 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) 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 X-Received-From: 193.149.48.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189296 Archived-At: Hello, Emacs! In some Elisp with no knowledge of the variable `some-flag', which will be defined elsewhere, I want to write (let (some-flag) ....) to bind `some-flag' dynamically. The byte-compiler give me the warning: Unused lexical variable `some-flag' . Somehow, I need to tell the byte-compiler that `some-flag' will be an external dynamic variable. How do I do this? I've had a look around the "Variables" page, and its sub-pages, in the elisp manual, yet didn't find any instructions on how to get round this problem. Where in the manual is it described? -- Alan Mackenzie (Nuremberg, Germany).