From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#23781: 25.0.95; read-string with HIST lexically bound Date: Thu, 23 Jun 2016 19:01:51 -0400 Message-ID: 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 1466722955 16417 80.91.229.3 (23 Jun 2016 23:02:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2016 23:02:35 +0000 (UTC) Cc: Tino Calancha , 23781@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 24 01:02:23 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 1bGDda-0004yF-TL for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 01:02:19 +0200 Original-Received: from localhost ([::1]:39876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGDda-0005tt-6E for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jun 2016 19:02:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGDdP-0005ra-QF for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 19:02:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGDdK-0003J1-Pw for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 19:02:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGDdK-0003Ix-MS for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 19:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bGDdK-0002gf-FA for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 19:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jun 2016 23:02:02 +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.146672291910167 (code B ref 23781); Thu, 23 Jun 2016 23:02:02 +0000 Original-Received: (at 23781) by debbugs.gnu.org; 23 Jun 2016 23:01:59 +0000 Original-Received: from localhost ([127.0.0.1]:53104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGDdH-0002dm-64 for submit@debbugs.gnu.org; Thu, 23 Jun 2016 19:01:59 -0400 Original-Received: from mail-oi0-f41.google.com ([209.85.218.41]:35487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGDdF-0002YM-7V for 23781@debbugs.gnu.org; Thu, 23 Jun 2016 19:01:57 -0400 Original-Received: by mail-oi0-f41.google.com with SMTP id r2so92574934oih.2 for <23781@debbugs.gnu.org>; Thu, 23 Jun 2016 16:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=H+MjYpMFwdGNGKuR7BPaE2QOSNyN4NdN4SJKUuPidrY=; b=svned9iVVAQ9IHogo3zn6eFoRD73Wpg+dsED1NKi30iw5WdgvQ46TYY9B9NTXAywSv BcfdlCpyeQBEtjeni4MM9C42xxrYJm1WVS5i/jzppXEJ9/FrsbdeYYt6vQdeEYkK+4qI 2y3z/bzSVLbaGrumLlkyZB6hWPUskqTLzqZ5C3ZYQgl+j5VPG0mvkKVyNiXihhy2vhRS dUmcRtctA9mweibELK9XjCss99rmgvEvEVjgHodrGEQWcZioTYVXapmO5SIdXwVD4iab 5YXghA/4uz7ppCO9zJXqvzH4oi6v2ujOvxD7ARmMBHo+HVdDmLrW8eRE40NvMBAiqNKC gnNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=H+MjYpMFwdGNGKuR7BPaE2QOSNyN4NdN4SJKUuPidrY=; b=QmMdFzDZuJNXUv7Wx79oJjr5SKbxwN6M9xTeDIiSkCyzAIryz+q4n/jFZ1JH7z7FP3 m+ro28dV2ywhKYB4WOigRzRVLeB9Dj9ZWaPOngF0v3yKDAkTR+txAvpnTNu5DxHwA0Re hDkyIvxK6Q1SuXgUYbLIV56IIIOjM2A54TK5UGBIKP1CUfzpWDMS+vkt6+UETe4kQdad 6Pk7XcITzn/vvz5v3Wqlmn1uXjkruxtKQnIlylZGubnnlmQNdMCgpQ5pZ94dO0GK8evR smiP7VDOo7wV6vCqMCjPTttQjiPwwxoFDLgEBoe3nCMITwl8qseQbZs0Idm6FmaP9ZM0 Qa9Q== X-Gm-Message-State: ALyK8tK2hw7TZWYmbb/HxHr2qFDpYhZFgvSKm0ANfJ6v2HHfdLTkVlZyYWHx0E5Zpw0NQiYVsVdHWC7S4YxUgQ== X-Received: by 10.202.219.135 with SMTP id s129mr762439oig.144.1466722911596; Thu, 23 Jun 2016 16:01:51 -0700 (PDT) Original-Received: by 10.157.52.238 with HTTP; Thu, 23 Jun 2016 16:01:51 -0700 (PDT) In-Reply-To: <877fdn96sv.fsf@web.de> X-Google-Sender-Auth: UBjSDk72vx4vMkHEP4gsDC32HhA 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:119991 Archived-At: On Fri, Jun 17, 2016 at 11:25 AM, Michael Heerdegen wrote: > > 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. Right, it's sort of hinted at in the elisp manual (11.9.3 Lexical Binding): Note that functions like =E2=80=98symbol-value=E2=80=99, =E2=80=98bound= p=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). I think we should be a little more specific, not just give examples, something like: 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=98= set=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). Sort of releated: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21185