From unknown Fri Sep 05 22:44:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8460: 24.0.50; Doc string of `lexical-binding' Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Apr 2011 18:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8460@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.13023723982337 (code B ref -1); Sat, 09 Apr 2011 18:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Apr 2011 18:06:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8cYP-0000be-SH for submit@debbugs.gnu.org; Sat, 09 Apr 2011 14:06:38 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8cYO-0000bR-TH for submit@debbugs.gnu.org; Sat, 09 Apr 2011 14:06:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8cYI-0001ww-Qw for submit@debbugs.gnu.org; Sat, 09 Apr 2011 14:06:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:44997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8cYI-0001wn-P2 for submit@debbugs.gnu.org; Sat, 09 Apr 2011 14:06:30 -0400 Received: from [140.186.70.92] (port=47677 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8cYH-00063x-Q7 for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2011 14:06:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8cYG-0001vv-IS for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2011 14:06:29 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:18235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8cYG-0001vl-8I for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2011 14:06:28 -0400 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p39I6QeP018659 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 9 Apr 2011 18:06:27 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p39I6PbE008315 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 9 Apr 2011 18:06:25 GMT Received: from abhmt008.oracle.com (abhmt008.oracle.com [141.146.116.17]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p39I6Ofd025495 for ; Sat, 9 Apr 2011 13:06:24 -0500 Received: from dradamslap1 (/10.159.37.106) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 09 Apr 2011 11:06:24 -0700 From: "Drew Adams" Date: Sat, 9 Apr 2011 11:06:28 -0700 Message-ID: <17D4B6B946FD4F9EB9FF1E76E746E68D@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: Acv24Nkl0LbzGyaWQ9KVX1vt7j7LOA== X-Source-IP: acsmt358.oracle.com [141.146.40.158] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4DA0A022.0004:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) It says that it "only applies to code evaluated by `eval-buffer' and `eval-region'." That is at best misleading. `C-M-x' eventually calls `eval-region', but a user would not guess that the doc string applies also to `C-M-x'. It would perhaps be better to characterize the situations where it does _not_ apply to code evaluation. It is also misleading in that it is sufficient to visit a file, such as `minibuffer.el', that has "-*- lexical-binding: t -*-" in its first line, for the value to be non-nil and thus affect pretty much anything you do in that buffer. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-04-04 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/imagesupport/include' From unknown Fri Sep 05 22:44:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8460: 24.0.50; Doc string of `lexical-binding' Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2011 13:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Drew Adams" Cc: 8460@debbugs.gnu.org Received: via spool by 8460-submit@debbugs.gnu.org id=B8460.131073592618968 (code B ref 8460); Fri, 15 Jul 2011 13:19:02 +0000 Received: (at 8460) by debbugs.gnu.org; 15 Jul 2011 13:18:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhiHx-0004vn-VO for submit@debbugs.gnu.org; Fri, 15 Jul 2011 09:18:46 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhiHq-0004vP-Am for 8460@debbugs.gnu.org; Fri, 15 Jul 2011 09:18:38 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QhiHc-0001V9-OR; Fri, 15 Jul 2011 15:18:20 +0200 From: Lars Magne Ingebrigtsen In-Reply-To: <17D4B6B946FD4F9EB9FF1E76E746E68D@us.oracle.com> (Drew Adams's message of "Sat, 9 Apr 2011 11:06:28 -0700") Date: Fri, 15 Jul 2011 14:59:01 +0200 Message-ID: References: <17D4B6B946FD4F9EB9FF1E76E746E68D@us.oracle.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Joni Mitchell's _Joni Mitchell_: "Cactus Tree" X-Hashcash: 1:23:110715:drew.adams@oracle.com::qgyc3gxAKuu0FNjO:0000000000000000000000000000000000000001UflS X-Hashcash: 1:23:110715:8460@debbugs.gnu.org::PyFjqNtvg58BDCKY:00000000000000000000000000000000000000001lxGo MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1QhiHc-0001V9-OR X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311340700.89938@ottbtZkEn49w6uWYqwS6yg X-Spam-Status: No X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Drew Adams" writes: > It says that it "only applies to code evaluated by `eval-buffer' and > `eval-region'." That is at best misleading. `C-M-x' eventually calls > `eval-region', but a user would not guess that the doc string applies > also to `C-M-x'. It would perhaps be better to characterize the > situations where it does _not_ apply to code evaluation. True. But I've, at least, changed the doc text to clarify that it doesn't "only" apply to these functions. > It is also misleading in that it is sufficient to visit a file, such as > `minibuffer.el', that has "-*- lexical-binding: t -*-" in its first > line, for the value to be non-nil and thus affect pretty much anything > you do in that buffer. The doc string says: This variable is automatically set from the file variables of an interpreted Lisp file read using `load'. Do you have a suggestion as to how to clarify this? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From unknown Fri Sep 05 22:44:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8460: 24.0.50; Doc string of `lexical-binding' Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2011 14:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "'Lars Magne Ingebrigtsen'" Cc: 8460@debbugs.gnu.org Received: via spool by 8460-submit@debbugs.gnu.org id=B8460.13107384911677 (code B ref 8460); Fri, 15 Jul 2011 14:02:02 +0000 Received: (at 8460) by debbugs.gnu.org; 15 Jul 2011 14:01:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhixO-0000Qy-HA for submit@debbugs.gnu.org; Fri, 15 Jul 2011 10:01:30 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhixJ-0000QO-RH for 8460@debbugs.gnu.org; Fri, 15 Jul 2011 10:01:26 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6FE1HM5015886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Jul 2011 14:01:19 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6FE1GvF004387 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Jul 2011 14:01:17 GMT Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6FE1BAe028530; Fri, 15 Jul 2011 09:01:11 -0500 Received: from dradamslap1 (/10.159.34.212) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 15 Jul 2011 07:01:10 -0700 From: "Drew Adams" References: <17D4B6B946FD4F9EB9FF1E76E746E68D@us.oracle.com> Date: Fri, 15 Jul 2011 07:01:10 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcxC8bW13zkzhxeEQjC1G46Jgfs+KwABTnYg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090201.4E20482F.018E:SCFSTAT5015188, ss=1, re=-4.000, fgs=0 X-Spam-Score: -4.3 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) > > It says that it "only applies to code evaluated by `eval-buffer' and > > `eval-region'." That is at best misleading. `C-M-x' > > eventually calls `eval-region', but a user would not guess that the > > doc string applies also to `C-M-x'. It would perhaps be better to > > characterize the situations where it does _not_ apply to code > > evaluation. > > True. But I've, at least, changed the doc text to clarify that it > doesn't "only" apply to these functions. Good. But it needs to somehow characterize what contexts it applies to and what it does not apply to (when it has an effect or does not). I haven't seen your fix, but it could be misleading to just mention `eval-*' even if you remove "only". > > It is also misleading in that it is sufficient to visit a > > file, such as `minibuffer.el', that has "-*- lexical-binding: t -*-" > > in its first line, for the value to be non-nil and thus affect pretty > > much anything you do in that buffer. > > The doc string says: > > This variable is automatically set from the file variables of an > interpreted Lisp file read using `load'. > > Do you have a suggestion as to how to clarify this? I think the problem was that sentence coming after the "only" statement. The impression was that it might well be set from file variables but it still "only applies..." etc. The end result needs to somehow characterize when it does and does not apply. From unknown Fri Sep 05 22:44:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8460: 24.0.50; Doc string of `lexical-binding' Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2011 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Drew Adams" Cc: 8460@debbugs.gnu.org Received: via spool by 8460-submit@debbugs.gnu.org id=B8460.13107389992425 (code B ref 8460); Fri, 15 Jul 2011 14:10:02 +0000 Received: (at 8460) by debbugs.gnu.org; 15 Jul 2011 14:09:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qhj5X-0000d0-6d for submit@debbugs.gnu.org; Fri, 15 Jul 2011 10:09:59 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qhj5R-0000cd-MQ for 8460@debbugs.gnu.org; Fri, 15 Jul 2011 10:09:53 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qhj5D-00031o-Op; Fri, 15 Jul 2011 16:09:35 +0200 From: Lars Magne Ingebrigtsen In-Reply-To: (Drew Adams's message of "Fri, 15 Jul 2011 07:01:10 -0700") Date: Fri, 15 Jul 2011 16:09:32 +0200 Message-ID: References: <17D4B6B946FD4F9EB9FF1E76E746E68D@us.oracle.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEWJn51XRzrP0c0xJCFV dW/u8u4WDxBPNClkWEdRPDK5jiW4AAACR0lEQVQ4jV2TQYrjMBBFRchili3ajOVdE5gDBAUl3jm0 FskBfAKD9qEHZO8i2uDyUqiZWLedkqV43FNgAv/l66vKZdLwudhLJe9bMLorOs+sARJ1XlUBjNPD +5aO1hdr8CKN1Vq3cPXerkCPYLJFkReF9Z5w8Q1M0zhcL9BLdAjVPEF+m6b8bIzJfhChgs6rvjSn s24HDPGFp4YopcJR8sXlp1wzMAOYCwALANHh/cv538OthYEyCgamGXBefgIfjzqn8ICpRUNLXMMx 5eR6N/JOMzOwcTIwdkTsf6Ln9LnnHHO7h20HABgZXhf1Zu+citdDqi0DiOGKCiWESCxAHkETsWqa huvjPIr/AQ+yttSnPlaOo+4sjaBRQj0J6qG6YgaN4K9KlaX3LmV3PoGRyopU5G231JwhuJRbWUkS Kqi/6hqBEH9eA8Ai22oB2JF7/ZSpiKw2bxHs95Ze35N+xo3YJMfhK5PnBUh5f4KvLJPyuoBttdm9 7WoEQZfXTC4puycIf6T0qVfppJrINSBk1iPIsqu33JeZ7Gc5Gur0opqSstA8+QYablk4HrubHfXi iHtNJT88o+NIYh0/OG83JBlqkt4M1sMXjPxz4A7HolhsMdSEzgI+QHGbNpsVCAoyb1ne3lcOwKXH 9cZCB+yWcN1LedEGw29ah5dBUngfZhRMSyUQp3eBeZvWACcbJg/zN9AGkDI8LfCuGKPx5xvAT9Rb Kodb7GQBRejaWnpp04XvCThXco6IoXiHFcC5lq509ozavJ+p878Nd2dXfIPfEQAAAABJRU5ErkJg gg== X-Now-Playing: Joni Mitchell's _Miles of Aisles_: "Woman of Heart and Mind" X-Hashcash: 1:23:110715:8460@debbugs.gnu.org::Qk7rvcI3UaHfGAQO:00000000000000000000000000000000000000000hd5m X-Hashcash: 1:23:110715:drew.adams@oracle.com::3KVZ0YHk912Wz8Lb:0000000000000000000000000000000000000001J+ad MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1Qhj5D-00031o-Op X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311343775.85729@NzURChemR/ohRcAJJDxP2Q X-Spam-Status: No X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Drew Adams" writes: > I haven't seen your fix, but it could be misleading to just mention `eval-*' > even if you remove "only". The current text is: --- If non-nil, use lexical binding when evaluating code. This applies to code evaluated by `eval-buffer' and `eval-region' and other commands that call these functions, like `eval-defun' and the like. This variable is automatically set from the file variables of an interpreted Lisp file read using `load'. --- I'm not sure that that's much clearer than the original, actually. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From unknown Fri Sep 05 22:44:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8460: 24.0.50; Doc string of `lexical-binding' Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2011 15:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "'Lars Magne Ingebrigtsen'" Cc: 8460@debbugs.gnu.org Received: via spool by 8460-submit@debbugs.gnu.org id=B8460.131074319719250 (code B ref 8460); Fri, 15 Jul 2011 15:20:03 +0000 Received: (at 8460) by debbugs.gnu.org; 15 Jul 2011 15:19:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhkBI-00050R-Qg for submit@debbugs.gnu.org; Fri, 15 Jul 2011 11:19:57 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhkBG-00050A-Gj for 8460@debbugs.gnu.org; Fri, 15 Jul 2011 11:19:54 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6FFJkKN012565 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Jul 2011 15:19:48 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6FFJjYn000585 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Jul 2011 15:19:46 GMT Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6FFJed0006435; Fri, 15 Jul 2011 10:19:40 -0500 Received: from dradamslap1 (/10.159.34.212) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 15 Jul 2011 08:19:39 -0700 From: "Drew Adams" References: <17D4B6B946FD4F9EB9FF1E76E746E68D@us.oracle.com> Date: Fri, 15 Jul 2011 08:19:39 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcxC+N30cj+ie5SmRlyGufTwgFeR8QACKDaA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4E205A94.003F:SCFMA922111,ss=1,re=-4.000,fgs=0 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) > > I haven't seen your fix, but it could be misleading to just > > mention `eval-*' even if you remove "only". > > The current text is: > > --- > If non-nil, use lexical binding when evaluating code. > This applies to code evaluated by `eval-buffer' and `eval-region' and > other commands that call these functions, like `eval-defun' and > the like. > This variable is automatically set from the file variables of an > interpreted Lisp file read using `load'. > --- > > I'm not sure that that's much clearer than the original, actually. The problem is this: We say that it "applies to" a certain number of cases. That begs the question, "What does it _not_ apply to?" IOW, why don't we just say this? "Non-nil means use lexical binding when evaluating code." Presumably there is some good reason why we don't. And that good reason remains a mystery: in what cases does non-nil _not_ mean to use lexical binding when evaluating code? Or if there are really no such cases, and the only reason for mentioning `eval-*' in the first place was to give some examples, then make that clear. Say, in that case, "For example, ... `eval-buffer'...". Currently it is not clear (I have no idea, in fact) whether non-nil always means use lexical binding or not. And if not, I have no idea what those "not" cases are. In sum, I haven't a clue what the value does, except that at least in some cases it means use lexical binding when evaluating code. It's not about the _wording_. I can help with the wording if you provide the content. What is it that we are trying to communicate to users, exactly? From unknown Fri Sep 05 22:44:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8460: 24.0.50; Doc string of `lexical-binding' Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jul 2011 13:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Drew Adams" Cc: 8460@debbugs.gnu.org, 'Lars Magne Ingebrigtsen' Received: via spool by 8460-submit@debbugs.gnu.org id=B8460.131099629013115 (code B ref 8460); Mon, 18 Jul 2011 13:39:01 +0000 Received: (at 8460) by debbugs.gnu.org; 18 Jul 2011 13:38:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qio1S-0003PU-6y for submit@debbugs.gnu.org; Mon, 18 Jul 2011 09:38:10 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qio1Q-0003PJ-I5 for 8460@debbugs.gnu.org; Mon, 18 Jul 2011 09:38:09 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAB42JE5MCqt8/2dsb2JhbABUp3N4iHzCEoY8BJ8nhDA X-IronPort-AV: E=Sophos;i="4.67,222,1309752000"; d="scan'208";a="126488962" Received: from 76-10-171-124.dsl.teksavvy.com (HELO ceviche.home) ([76.10.171.124]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 18 Jul 2011 09:38:02 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 00CB56660D; Mon, 18 Jul 2011 09:38:01 -0400 (EDT) From: Stefan Monnier Message-ID: References: <17D4B6B946FD4F9EB9FF1E76E746E68D@us.oracle.com> Date: Mon, 18 Jul 2011 09:38:01 -0400 In-Reply-To: (Drew Adams's message of "Fri, 15 Jul 2011 08:19:39 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > The problem is this: We say that it "applies to" a certain number of cases. > That begs the question, "What does it _not_ apply to?" > IOW, why don't we just say this? > "Non-nil means use lexical binding when evaluating code." We could indeed. Tho I think a better docstring could be: Non-nil means that the code in the current buffer should be evaluated with lexical binding. -- Stefan From unknown Fri Sep 05 22:44:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8460: 24.0.50; Doc string of `lexical-binding' Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jul 2011 13:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "'Stefan Monnier'" Cc: 8460@debbugs.gnu.org, 'Lars Magne Ingebrigtsen' Received: via spool by 8460-submit@debbugs.gnu.org id=B8460.131099678413804 (code B ref 8460); Mon, 18 Jul 2011 13:47:02 +0000 Received: (at 8460) by debbugs.gnu.org; 18 Jul 2011 13:46:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qio9P-0003ab-E4 for submit@debbugs.gnu.org; Mon, 18 Jul 2011 09:46:23 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qio9N-0003aO-Bj for 8460@debbugs.gnu.org; Mon, 18 Jul 2011 09:46:21 -0400 Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6IDkDAZ029391 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 18 Jul 2011 13:46:15 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6IDkBo1007096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 18 Jul 2011 13:46:12 GMT Received: from abhmt110.oracle.com (abhmt110.oracle.com [141.146.116.62]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6IDk6hv002176; Mon, 18 Jul 2011 08:46:06 -0500 Received: from dradamslap1 (/10.159.41.201) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 18 Jul 2011 06:46:06 -0700 From: "Drew Adams" References: <17D4B6B946FD4F9EB9FF1E76E746E68D@us.oracle.com> Date: Mon, 18 Jul 2011 06:45:55 -0700 Message-ID: <2DFDC90C56E94F9383E5A5CE0E31B0FC@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 In-Reply-To: Thread-Index: AcxFT/AbafV1OVgYSp6JqFyofDZUSgAAPV4Q X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090203.4E243927.006D:SCFSTAT5015188, ss=1, re=-4.000, fgs=0 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) > I think a better docstring could be: > Non-nil means that the code in the current buffer should > be evaluated with lexical binding. Agreed. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 19 11:22:17 2011 Received: (at control) by debbugs.gnu.org; 19 Jul 2011 15:22:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjC7k-0007iz-RC for submit@debbugs.gnu.org; Tue, 19 Jul 2011 11:22:17 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjC7i-0007ik-7g for control@debbugs.gnu.org; Tue, 19 Jul 2011 11:22:15 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QjC7W-0006iY-Q9 for control@debbugs.gnu.org; Tue, 19 Jul 2011 17:22:02 +0200 Date: Tue, 19 Jul 2011 17:22:02 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #8460 X-MailScanner-ID: 1QjC7W-0006iY-Q9 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311693722.87478@sDarnLM1ymOOmexadEc3ng X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) tags 8460 fixed close 8460 24.1 From unknown Fri Sep 05 22:44:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8460: 24.0.50; Doc string of `lexical-binding' Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jul 2011 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Stefan Monnier Cc: 8460@debbugs.gnu.org, Drew Adams Received: via spool by 8460-submit@debbugs.gnu.org id=B8460.131108905429923 (code B ref 8460); Tue, 19 Jul 2011 15:25:02 +0000 Received: (at 8460) by debbugs.gnu.org; 19 Jul 2011 15:24:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjC9a-0007mR-9A for submit@debbugs.gnu.org; Tue, 19 Jul 2011 11:24:14 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjC9K-0007lL-Of for 8460@debbugs.gnu.org; Tue, 19 Jul 2011 11:24:04 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QjC93-0006lK-SX; Tue, 19 Jul 2011 17:23:37 +0200 From: Lars Magne Ingebrigtsen In-Reply-To: (Stefan Monnier's message of "Mon, 18 Jul 2011 09:38:01 -0400") Date: Tue, 19 Jul 2011 17:18:00 +0200 Message-ID: References: <17D4B6B946FD4F9EB9FF1E76E746E68D@us.oracle.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEXXFh78+/e3AQX+/fzv fWniSUjqyryqAAD48Or+//31n4Tyt57////+//7v3tFwuiWvAAACD0lEQVQ4jZXTQYvTQBQA4CEY FDzqyQ1ScvEHiLBIlD2MlwjSQyKuJw9aiu3mUJCcRYVSSmERQaUWxOyCE1wQMUhGFkJAEpnk7KFe FEuwNb/ByWQzSZr14BAyyfvy3ptkCFAU8l3yyNHwlexsdFYzICkklPwzpDrSNJmB7CIqIi/YOZ4M 0wmoPuk742wKFpM1iK+v2Bx05rMavHzPIBh20/OA+CVsLPp5QmrUS3UWf7IppMfVGjh5Bnl68Upc hWA/XfF1VGFj3+gfC0v8j4xl0aMAb5IMJTphZ8EzAgqb9xFC2EiWGCc7FfjmWlCDCLnYdbsfKvAE wgxUhGzjsDMv4R60VAtC+/ARbb+USngMkYOdh9NsU770dkoYQbX7qrjFnypg3T4oWoYYj/MrD5DL UFPzyrRYz33DIYY6pC88Z+vp4RscAkuHn8k57XV2/xshpQB/ry2+jU+aD7LICFnjAsK7bfHWM9k0 +5vGcGTbHMjZNhB/DExTB0Cnn2bFIdYFIFNoAVFDCEoc/C0WN2WaYKOffFUk2hJoB3MgA03FjlIC oXCBQgtodrf4BhmE1wSZ1hoA8SAhVYiO4AR/vCj1kQIdp6J1+MWgtU3W4VIO7xrwlYFY7OqcQ8zg NGmAJ8gtAGqVcoiEluoY0yb4ws16NIuxjDv99TgF+l9NvUacZexKzbjig2aw7HHc2P1veP4X8esQ FQnOWRwAAAAASUVORK5CYII= X-Now-Playing: Coil's _The Ape Of Naples_: "Going Up" X-Hashcash: 1:23:110719:monnier@iro.umontreal.ca::TVkcvF4leyTGY2U4:00000000000000000000000000000000000004P8a X-Hashcash: 1:23:110719:drew.adams@oracle.com::kmkMpg0TJAfe0XYt:00000000000000000000000000000000000000009NLA X-Hashcash: 1:23:110719:8460@debbugs.gnu.org::stL4Q2QFy4KTpl1O:000000000000000000000000000000000000000007SFK MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1QjC93-0006lK-SX X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311693818.01444@LmfGomqnIFtqJzqDBRdNCA X-Spam-Status: No X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Stefan Monnier writes: > We could indeed. Tho I think a better docstring could be: > > Non-nil means that the code in the current buffer should be evaluated > with lexical binding. I've now changed the doc string and added this. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/