From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Newsgroups: gmane.emacs.help Subject: Re: What's the difference between (defvar foo) and (declare (special foo)), with lexical-binding on? Date: Sun, 27 Jul 2014 12:00:31 +0300 Message-ID: <86k36zi3bk.fsf@yandex.ru> References: <53D472DC.7070405@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1406451667 18894 80.91.229.3 (27 Jul 2014 09:01:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jul 2014 09:01:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 27 11:01:00 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1XBKKB-0002pk-GS for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jul 2014 11:00:59 +0200 Original-Received: from localhost ([::1]:34288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBKKB-0000v2-7s for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jul 2014 05:00:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBKJv-0000u5-AE for help-gnu-emacs@gnu.org; Sun, 27 Jul 2014 05:00:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBKJp-0004ZP-TF for help-gnu-emacs@gnu.org; Sun, 27 Jul 2014 05:00:43 -0400 Original-Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:51573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBKJp-0004Yv-GR for help-gnu-emacs@gnu.org; Sun, 27 Jul 2014 05:00:37 -0400 Original-Received: by mail-wg0-f48.google.com with SMTP id x13so5938004wgg.31 for ; Sun, 27 Jul 2014 02:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=tt4vS9GN6OljqI47brC3Yjj4kego9XJqMMozzJ++1gk=; b=V0yAgb9AQCo92U8fg7Q/uFEWdi2svRoH3KVMVuPx0Q5R1/OM7CPzinMWLPM/0bw2YM TblzGpHfRUgYcMzsu2itidcvjNJGSS41y/pu6VELi5AFNpFgJFBSP16OdhRydgxkdfWl kc1HLoGb6L/G+5tt0y9bqS8leQswYhr6GV+eSl+wfcn+Yz1K48GS7qGP66MA253IaU2z rhuJasE42nrCYub/LN1UWRKyYI234ZFFRAqI5uJc9dDpBYeCjg+IBA/nknXH4U3qPJFH TjUp/Z6KU+EUssCyk+4rT62Zr6bS/DKXnL/YuJQX4tEb1lJQQAvXQmfJqD7Mkb2G0CG9 A+5g== X-Received: by 10.194.133.1 with SMTP id oy1mr36672828wjb.87.1406451636451; Sun, 27 Jul 2014 02:00:36 -0700 (PDT) Original-Received: from axl (93-109-244.netrun.cytanet.com.cy. [93.109.109.244]) by mx.google.com with ESMTPSA id q5sm14872533wiw.5.2014.07.27.02.00.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 27 Jul 2014 02:00:35 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 27 Jul 2014 04:16:11 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::230 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98956 Archived-At: Stefan Monnier writes: > (declare (special foo)) > > is a hack defined in CL. It predates lexical-binding and I don't > think anyone has tried to adapt it to lexical-binding, so I don't know > what it does in the case of lexical-binding. Thanks! So, you would advise not to use it in lexical-binding code at all? I think the biggest problem with it is it sorta-works-but-not-exactly.