From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: CheckDoc and package.el versus file variable prop lines Date: Mon, 25 Feb 2013 15:13:08 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361823197 19726 80.91.229.3 (25 Feb 2013 20:13:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 20:13:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Sebastian Wiesner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 21:13:40 2013 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 1UA4Qb-0006kt-H6 for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 21:13:37 +0100 Original-Received: from localhost ([::1]:39756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA4QG-0002hp-Ki for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 15:13:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA4QD-0002gX-4O for emacs-devel@gnu.org; Mon, 25 Feb 2013 15:13:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA4QA-0003Gg-Ef for emacs-devel@gnu.org; Mon, 25 Feb 2013 15:13:12 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:51544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA4QA-0003GS-95 for emacs-devel@gnu.org; Mon, 25 Feb 2013 15:13:10 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+KLv/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtjRqDcAOIYYl6A5IcgV6DFYFJ X-IPAS-Result: Av4EABK/CFHO+KLv/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtjRqDcAOIYYl6A5IcgV6DFYFJ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="2428552" Original-Received: from 206-248-162-239.dsl.teksavvy.com (HELO pastel.home) ([206.248.162.239]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Feb 2013 15:13:08 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 56CF86C0A9; Mon, 25 Feb 2013 15:13:08 -0500 (EST) In-Reply-To: (Sebastian Wiesner's message of "Mon, 25 Feb 2013 17:48:38 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:157338 Archived-At: > Doing so, I get a "foo.el" with the following contents: > ;; -*- lexical-binding: t; -*- > ;;; foo.el --- Random stuff Please report this via M-x report-emacs-bug (so we get a bug-number for it). > How can I get lexical scoping working for a package, *without* it > being silently dropped on installation, and *without* checkdoc > warnings? Use ;;; foo.el --- Random stuff -*- lexical-binding: t -*- It's a bit ugly, especially because it tends to go past the 80-column limit, but that's the "standard" way to do it (and that's what add-file-local-variable-prop-line should use in Elisp). Stefan