all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 8460@debbugs.gnu.org
Subject: bug#8460: 24.0.50; Doc string of `lexical-binding'
Date: Fri, 15 Jul 2011 14:59:01 +0200	[thread overview]
Message-ID: <m3oc0vbsyy.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <17D4B6B946FD4F9EB9FF1E76E746E68D@us.oracle.com> (Drew Adams's message of "Sat, 9 Apr 2011 11:06:28 -0700")

"Drew Adams" <drew.adams@oracle.com> 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/





  reply	other threads:[~2011-07-15 12:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-09 18:06 bug#8460: 24.0.50; Doc string of `lexical-binding' Drew Adams
2011-07-15 12:59 ` Lars Magne Ingebrigtsen [this message]
2011-07-15 14:01   ` Drew Adams
2011-07-15 14:09     ` Lars Magne Ingebrigtsen
2011-07-15 15:19       ` Drew Adams
2011-07-18 13:38         ` Stefan Monnier
2011-07-18 13:45           ` Drew Adams
2011-07-19 15:18           ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3oc0vbsyy.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=8460@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.