From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Monsanto Newsgroups: gmane.emacs.devel Subject: Re: Defaults for elisp-mode files Date: Thu, 4 Oct 2012 11:37:36 -0400 Message-ID: References: <877gr7kory.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1349401932 25040 80.91.229.3 (5 Oct 2012 01:52:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2012 01:52:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 05 03:52:16 2012 Return-path: Envelope-to: ged-emacs-devel@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 1TJx4L-0005tv-3H for ged-emacs-devel@m.gmane.org; Fri, 05 Oct 2012 03:51:13 +0200 Original-Received: from localhost ([::1]:44727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJogc-0008Nf-QU for ged-emacs-devel@m.gmane.org; Thu, 04 Oct 2012 12:54:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJogV-0008Ms-Gl for emacs-devel@gnu.org; Thu, 04 Oct 2012 12:54:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJogP-0004wm-Di for emacs-devel@gnu.org; Thu, 04 Oct 2012 12:54:03 -0400 Original-Received: from mail-vb0-f41.google.com ([209.85.212.41]:40007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJnVC-0007ZO-1L for emacs-devel@gnu.org; Thu, 04 Oct 2012 11:38:18 -0400 Original-Received: by mail-vb0-f41.google.com with SMTP id v13so829374vbk.0 for ; Thu, 04 Oct 2012 08:38:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=ivT48NM/4mRFc00S5mXahsuyAKrHRT0brqNIeqJjTTc=; b=O4FX5xESBbU3B5GURE+GWORC6bIQ6UbbBRa4q75x82dqqAIKzd98WoLGwPF/ub0O4T syBv7dKr+3wNW1i/c+wg3qBe7gsC8bEBUy8jeKbt3JyDXoiZB3H8V2XVvkNDq0MbpB42 kYOxqA8T9rndUfErwadaYlED61CEGOcptZObhzk5aoTgJahzCr2k+LaZq5nZ5YcCRB25 Q8LVwOMskF7Ix/6Jj+5wCtDRPJnhZVUeJb2mH4IX98SBmr03Z5D/LkFesptvON3YhqfL IOJH/IK6hyz7j0d5b2q+9eXrB8md3dZEwPF8wycw+OvlgtfuZS1S8RRVs1dbm8rlD66S 9GpQ== Original-Received: by 10.52.92.97 with SMTP id cl1mr2744630vdb.65.1349365096815; Thu, 04 Oct 2012 08:38:16 -0700 (PDT) Original-Received: by 10.220.235.132 with HTTP; Thu, 4 Oct 2012 08:37:36 -0700 (PDT) In-Reply-To: X-Gm-Message-State: ALoCoQkpSWtfMz0jQZRz4KcoAtLOxYZetslXIcN12foq/cSCFwoKPpNdood0GqV3xukEIGgIYJtE X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154049 Archived-At: Hi Juanma, I know what directory local variables are :) They are loaded when emacs visits a file (that is, to be opened in a buffer), not when opened by the Lisp load primitive. To do what you are wanting for lexical-binding, we would have to instrument load to read directory locals, but that seems strange because none of the variables normally set in directory locals have relevance to the semantics of LIsp programs. Which is why I would suggest introducing a new file for such behavior, that the load function WOULD pick up, but wouldn't be uselessly set when editing files in the package. Christopher Monsanto chris@monsan.to -- http://monsan.to/