From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#37878: [PATCH] Add auto-insert skeleton for ".dir-locals.el" Date: Thu, 24 Oct 2019 00:19:09 +0300 Organization: LINKOV.NET Message-ID: <874kzzdusy.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="194037"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 37878@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 23 23:37:43 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNOK6-000oHn-6c for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 23:37:42 +0200 Original-Received: from localhost ([::1]:48888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNOK3-0000tB-Df for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 17:37:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48050) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNOJX-0000Vr-Mh for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 17:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNOJV-0003s5-Lf for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 17:37:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54518) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNOJS-0003pv-Rw for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 17:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iNOJS-0007WW-Nw for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 17:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2019 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37878 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37878-submit@debbugs.gnu.org id=B37878.157186657328844 (code B ref 37878); Wed, 23 Oct 2019 21:37:02 +0000 Original-Received: (at 37878) by debbugs.gnu.org; 23 Oct 2019 21:36:13 +0000 Original-Received: from localhost ([127.0.0.1]:35102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNOIf-0007VA-91 for submit@debbugs.gnu.org; Wed, 23 Oct 2019 17:36:13 -0400 Original-Received: from caracal.birch.relay.mailchannels.net ([23.83.209.30]:10430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNOIa-0007Uy-5V for 37878@debbugs.gnu.org; Wed, 23 Oct 2019 17:36:11 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id F0BF35A085C; Wed, 23 Oct 2019 21:36:06 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (100-96-171-212.trex.outbound.svc.cluster.local [100.96.171.212]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 37DCA5A05B0; Wed, 23 Oct 2019 21:36:05 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Wed, 23 Oct 2019 21:36:06 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Occur-Share: 53a8846c12a0ae5b_1571866566786_2364657085 X-MC-Loop-Signature: 1571866566786:3250804456 X-MC-Ingress-Time: 1571866566786 Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTP id 5DC3B84FF9; Wed, 23 Oct 2019 14:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=wmybS1 bgjF2rR0tcPV9XsBSPr2A=; b=XAxnL/njKLFNhRghj34e7o/K11OL8eNN0gEeQE 1aXbPpIzv7sqG/ZwCb935a8JuAuVn+SA6gfHXvC59uGDedznhViwgj5ReMpoYwVU iB15YmBC5oFgB7f2kIFSFwlnxhfzyS56gqsJN/xSu93iru9RbXXJH9HLMEHwPbnI ZWllo= Original-Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTPSA id B37A684FFA; Wed, 23 Oct 2019 14:36:01 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a50 In-Reply-To: (Stefan Kangas's message of "Wed, 23 Oct 2019 01:04:15 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170098 Archived-At: > Steps to reproduce: > 0. emacs -Q > 1. M-x auto-insert-mode > 2. C-x C-f .dir-locals.el RET > > Result: The entire Emacs standard header gets inserted into the > buffer, complete with author, copyright notice, provide-statement, > etc. > Expected result: Either don't insert anything or use a custom skeleton. > > Please find attached a proposed patch, which adds a skeleton for > "dir-locals.el" to auto-insert-alist. I believe it would make it > easier for especially beginning Emacs users to use ".dir-locals.el". > (Open the file, type M-x auto-insert, and voil=E1.) > > Any comments? Good addition for someone who doesn't use add-dir-local-variable that inserts this header. BTW, please also add the same two lines to the header of .dir-locals.el in Emacs repository.