From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Defaults for elisp-mode files Date: Thu, 4 Oct 2012 02:59:07 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1349402065 26681 80.91.229.3 (5 Oct 2012 01:54:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2012 01:54:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 05 03:54:29 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 1TJx5J-0006Y7-TE for ged-emacs-devel@m.gmane.org; Fri, 05 Oct 2012 03:52:14 +0200 Original-Received: from localhost ([::1]:45487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJZn7-0002L8-9p for ged-emacs-devel@m.gmane.org; Wed, 03 Oct 2012 20:59:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJZn4-0002I0-I3 for emacs-devel@gnu.org; Wed, 03 Oct 2012 20:59:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJZn3-0003S8-6n for emacs-devel@gnu.org; Wed, 03 Oct 2012 20:59:50 -0400 Original-Received: from mail-wg0-f41.google.com ([74.125.82.41]:55865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJZn2-0003Rc-W8 for emacs-devel@gnu.org; Wed, 03 Oct 2012 20:59:49 -0400 Original-Received: by mail-wg0-f41.google.com with SMTP id ds1so1538484wgb.0 for ; Wed, 03 Oct 2012 17:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=wReWykcRE4yv2ug9RYitm1cP4q24oBPp+UQZerNOwMQ=; b=AaCWPQ4H1NYAT1xwSLUwVQb1i26YvOgGxUPtVCu7BWOtbqRhrwe4tVIvpt9Cy27etP gZIur7E8dUbL91z0uJoFK5qbzVqEJJCfTtqA+OfM3IZQ/vD168ydwH7CxtCXTomAXMht FAHLdfM7aIkdwuDK+n7EzdtgMqcJOLxQ8XZvL0ZqgQGl1Y+uQamq7h8tvGQLQEQixPo2 tPzMYxNf8gg8s3bmFFv2nomUPend2e9vnM5vQlmVzQGpZ3GiYnvHvcfDtJ/CkmtKyyOb oX4jky/y/bBUyJKZZrsW0IH7YZVtCqUTbhcm0IMb1T0KsO1aD1qNlh730gtDskkLbaD7 d16g== Original-Received: by 10.180.78.102 with SMTP id a6mr33441775wix.20.1349312387348; Wed, 03 Oct 2012 17:59:47 -0700 (PDT) Original-Received: by 10.223.155.132 with HTTP; Wed, 3 Oct 2012 17:59:07 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.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:154069 Archived-At: On Wed, Oct 3, 2012 at 8:06 PM, Stefan Monnier wrote: > But for the lexical-binding setting, it seems less obvious how to handle > such a switch (other than start warning any file which doesn't set it > explicitly to t or nil, and after a while change the default, and after > yet another while remove the warning, the whole process taking probably > more than 10 years). Any suggestion would be welcome. Why can't we set lexical-binding from .dir-locals, so it would automatically "convert" all the lisp packages in the sources (meaning, we will soon discover the ones that break and we can protect them with -*- lexical-binding: nil -*-). That has the advantadge that it wouldn't impact third-party code unless the maintainters chose to add lexical-bindings to their .dir-locals or their files. Juanma