From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#23781: 25.0.95; read-string with HIST lexically bound Date: Thu, 23 Jun 2016 16:18:52 -0700 (PDT) Message-ID: <321d46ee-407f-4a6e-93be-302a55da6196@default> References: <6bd7ad5e-7319-5f07-4612-26cda5621291@gmail.com> <877fdn96sv.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1466724028 31423 80.91.229.3 (23 Jun 2016 23:20:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2016 23:20:28 +0000 (UTC) Cc: Tino Calancha , 23781@debbugs.gnu.org To: Noam Postavsky , Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 24 01:20:16 2016 Return-path: Envelope-to: geb-bug-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 1bGDuw-0003by-Co for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 01:20:14 +0200 Original-Received: from localhost ([::1]:39972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGDuv-0001rT-8N for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jun 2016 19:20:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGDuo-0001pj-EB for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 19:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGDuk-0008Pr-55 for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 19:20:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGDuk-0008Pn-1o for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 19:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bGDuj-0004tF-NI for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 19:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jun 2016 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23781 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23781-submit@debbugs.gnu.org id=B23781.146672394318716 (code B ref 23781); Thu, 23 Jun 2016 23:20:01 +0000 Original-Received: (at 23781) by debbugs.gnu.org; 23 Jun 2016 23:19:03 +0000 Original-Received: from localhost ([127.0.0.1]:53124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGDtn-0004ro-Ea for submit@debbugs.gnu.org; Thu, 23 Jun 2016 19:19:03 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:29173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGDtl-0004rI-L4 for 23781@debbugs.gnu.org; Thu, 23 Jun 2016 19:19:02 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5NNItHU013678 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Jun 2016 23:18:55 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u5NNIsW0003851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Jun 2016 23:18:54 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u5NNIqik002990; Thu, 23 Jun 2016 23:18:54 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119992 Archived-At: > > AFAICT this is expected and not specific to `read-string': A quoted > > symbol can never refer to a lexical binding - and `symbol-value' or > > `eval' always return the dynamic binding. >=20 > Right, it's sort of hinted at in the elisp manual (11.9.3 Lexical Binding= ): >=20 > Note that functions like =E2=80=98symbol-value=E2=80=99, =E2=80=98bou= ndp=E2=80=99, and =E2=80=98set=E2=80=99 only > retrieve or modify a variable=E2=80=99s dynamic binding (i.e., the > contents of its symbol=E2=80=99s value cell). >=20 > I think we should be a little more specific, not > just give examples, something like: >=20 > Note that functions which take a symbol argument (like > =E2=80=98symbol-value=E2=80=99, =E2=80=98boundp=E2=80=99, and =E2=80= =98set=E2=80=99) can only retrieve or modify a > variable=E2=80=99s dynamic binding (i.e., the contents of its symbol= =E2=80=99s > value cell). >=20 > Sort of releated: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21185 Be even more specific: A Lisp symbol is a dynamic thing. It is an object. Lexical binding has nothing to do with symbols. A given _name_ in code can sometimes be lexically bound.