From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#8332: Acknowledgement (24.0.9999; lexbind-new branch errors on M-x describe-variable lexical-binding) Date: Thu, 24 Mar 2011 16:27:07 +0100 Message-ID: <87mxkkczec.fsf@member.fsf.org> References: <87fwqd60fe.fsf@member.fsf.org> <87mxklufp8.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300981044 28309 80.91.229.12 (24 Mar 2011 15:37:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2011 15:37:24 +0000 (UTC) Cc: 8332@debbugs.gnu.org, rubikitch , Thierry Volpiatto To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 24 16:37:19 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2mb8-0002Nn-5s for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 16:37:18 +0100 Original-Received: from localhost ([127.0.0.1]:60592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2mb7-0006MY-LZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 11:37:17 -0400 Original-Received: from [140.186.70.92] (port=48880 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2mb0-0006Lx-Ld for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2011 11:37:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2maw-0001R6-Cd for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2011 11:37:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2maw-0001R2-B3 for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2011 11:37:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q2mS9-0001S1-LQ; Thu, 24 Mar 2011 11:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Mar 2011 15:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8332-submit@debbugs.gnu.org id=B8332.13009804355524 (code B ref 8332); Thu, 24 Mar 2011 15:28:01 +0000 Original-Received: (at 8332) by debbugs.gnu.org; 24 Mar 2011 15:27:15 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2mRP-0001R3-IS for submit@debbugs.gnu.org; Thu, 24 Mar 2011 11:27:15 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2mRO-0001Qq-3v for 8332@debbugs.gnu.org; Thu, 24 Mar 2011 11:27:14 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 0E6137816FEC; Thu, 24 Mar 2011 16:27:08 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07031-06; Thu, 24 Mar 2011 16:27:07 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 1B1AE7816FF1; Thu, 24 Mar 2011 16:27:07 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Thu, 24 Mar 2011 11:01:33 -0400") User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.9999 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 24 Mar 2011 11:28:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45322 Archived-At: Stefan Monnier writes: Hi Stefan, >> After some bisectioning, I found out the culprit is anything. >> Commenting out >> (require 'anything) >> in my .emacs, so I'll Cc-ed Thierry and Rubykitch. > > Please try to only set lexical-binding via file-local variables. This > should be 100% backward compatible (i.e. only affect the files where > you've set that variable), so any new error like the above is not > normal. I don't set lexical-binding globally (anymore). The following recipe produces the aformentioned error for me. 1. emacs -Q 2. C-h v lexical-binding RET shows its value is nil, and it shows its docs. 3. In *scratch* eval: (add-to-list 'load-path "~/repos/el/anything-config/") (require 'anything) 4. M-x toggle-debug-on-error (only to get the backtrace in 5.) 5. C-h v lexical-binding RET, and I get --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (void-variable symbol) (eq symbol (quote anything-type-attributes)) (if (eq symbol (quote anything-type-attributes)) (progn (setq ad-return-value (concat ad-return-value "\n\n++++ Types currently defined ++++\n" (mapconcat (lambda (sym) (get sym (quote anything-typeattrdoc))) anything-types "\n"))))) (when (eq symbol (quote anything-type-attributes)) (setq ad-return-value (concat ad-return-value "\n\n++++ Types currently defined ++++\n" (mapconcat (lambda (sym) (get sym (quote anything-typeattrdoc))) anything-types "\n")))) (let (ad-return-value) (setq ad-return-value (apply (quote ad-Orig-documentation-property) arg1 arg2 rest)) (when (eq symbol (quote anything-type-attributes)) (setq ad-return-value (concat ad-return-value "\n\n++++ Types currently defined ++++\n" (mapconcat (lambda (sym) (get sym (quote anything-typeattrdoc))) anything-types "\n")))) (when (eq symbol (quote anything-sources)) (setq ad-return-value (concat ad-return-value "\n" (mapconcat (lambda (sym) (get sym (quote anything-attrdoc))) anything-additional-attributes "\n")))) ad-return-value) documentation-property(lexical-binding variable-documentation) describe-variable(lexical-binding) call-interactively(describe-variable nil nil) --8<---------------cut here---------------end--------------->8--- 6. After closing the backtrace buffer with `q', that's what I get in *Help* --8<---------------cut here---------------start------------->8--- lexical-binding is a variable defined in `C source code'. Its value is nil --8<---------------cut here---------------end--------------->8--- So the docs and the notice, that this variable automatically becomes buffer local when setting it are missing. My anything files are *not* compiled. Bye, Tassilo