From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#37878: [PATCH] Add auto-insert skeleton for ".dir-locals.el" Date: Wed, 23 Oct 2019 01:04:15 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000006ca8dd059587d202" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="36583"; mail-complaints-to="usenet@blaine.gmane.org" To: 37878@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 23 01:05:18 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 1iN3DK-0009PT-M5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 01:05:18 +0200 Original-Received: from localhost ([::1]:48494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iN3DJ-0006ON-I1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Oct 2019 19:05:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60757) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iN3D5-0006OB-Ch for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 19:05:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iN3D4-0008E5-G3 for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 19:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51780) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iN3D4-0008Du-Cn for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 19:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iN3D4-0002al-4f for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 19:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Oct 2019 23:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37878 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15717854749918 (code B ref -1); Tue, 22 Oct 2019 23:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2019 23:04:34 +0000 Original-Received: from localhost ([127.0.0.1]:60601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iN3Cb-0002Zu-VC for submit@debbugs.gnu.org; Tue, 22 Oct 2019 19:04:34 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iN3Ca-0002Zm-66 for submit@debbugs.gnu.org; Tue, 22 Oct 2019 19:04:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60722) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iN3CY-0006KS-SM for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 19:04:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iN3CX-0007bS-UU for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 19:04:30 -0400 Original-Received: from mail-pf1-f179.google.com ([209.85.210.179]:38078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iN3CX-0007Zb-OT for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 19:04:29 -0400 Original-Received: by mail-pf1-f179.google.com with SMTP id c13so385269pfp.5 for ; Tue, 22 Oct 2019 16:04:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=av5sAKD21MfX0nOPt+Onv3QBjUuYO9JFMLZyDeRGTnw=; b=QFo7UGGE4gDwCoDIyOIglfw/Y7mlrZDQbOi8CBPdiXYYqXtEWFaBffi5LIgITHgbZI 2gR44g715ZTBD2I8Ps3nPt3SjxUXzFLQP7q/MxC5UMOyypmGw5YLLASq+o1jzEfT7kYM LSRI1f/qEUJdj0Wrb0GcM5iHpV6jHfVznUrcyVGHcugAOjzNdcNVurT/rcrgKJ3/reeQ nUzM9hXCxiZlqkwlBu4074hylgwn485jfHCDV3WdwJ85IeVcjkxVnjoKCKYtfGo9LK9W fuT+aT5FxK7TdFsDNCWT7gqU9p+0/8f3BZSp9bUXM8o9I+DoyfQYvwSCMBrfz2VsnF5f Y9kw== X-Gm-Message-State: APjAAAVSfBrI2QNNE3pWaiDjkCwCmHvmnLpXmgR43uaIpDcFnfg9c/U3 PWrsJQ56E5LOOJrcIcXfxIkv0JjQ+8WNwnHRoMQW8pvR X-Google-Smtp-Source: APXvYqwkPCfSGqBx3L3B0Iv0l9yTG7D91NzL8YlGZsKpUe6o/Sd8DK37WeM1gSybFz8Wf/Z7EkgBViH+PvODJuEhnRM= X-Received: by 2002:a17:90a:f491:: with SMTP id bx17mr7816642pjb.106.1571785467003; Tue, 22 Oct 2019 16:04:27 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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:170014 Archived-At: --0000000000006ca8dd059587d202 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=C3=A1.) Any comments? Best regards, Stefan Kangas --0000000000006ca8dd059587d202 Content-Type: application/octet-stream; name="0001-Add-auto-insert-skeleton-for-.dir-locals.el.patch" Content-Disposition: attachment; filename="0001-Add-auto-insert-skeleton-for-.dir-locals.el.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k22gecdi0 RnJvbSAyNjA2ZGZjNjRjNGEwMmVkZDZkZWUzNGFhYTVhMmRiMGQyZTg3MTNlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5rYW5nYXNAZ21haWwuY29t PgpEYXRlOiBXZWQsIDIzIE9jdCAyMDE5IDAwOjUzOjI1ICswMjAwClN1YmplY3Q6IFtQQVRDSF0g QWRkIGF1dG8taW5zZXJ0IHNrZWxldG9uIGZvciAiLmRpci1sb2NhbHMuZWwiCgoqIGxpc3AvYXV0 b2luc2VydC5lbCAoYXV0by1pbnNlcnQtYWxpc3QpOiBBZGQgYXV0by1pbnNlcnQgc2tlbGV0b24g Zm9yCiIuZGlyLWxvY2Fscy5lbCIuCi0tLQogbGlzcC9hdXRvaW5zZXJ0LmVsIHwgMjUgKysrKysr KysrKysrKysrKysrKysrKysrLQogMSBmaWxlIGNoYW5nZWQsIDI0IGluc2VydGlvbnMoKyksIDEg ZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9saXNwL2F1dG9pbnNlcnQuZWwgYi9saXNwL2F1dG9p bnNlcnQuZWwKaW5kZXggYjhjMmJmZDYwNi4uZjJhYzkwNzE1MyAxMDA2NDQKLS0tIGEvbGlzcC9h dXRvaW5zZXJ0LmVsCisrKyBiL2xpc3AvYXV0b2luc2VydC5lbApAQCAtMTYyLDYgKzE2MiwyOSBA QCBhdXRvLWluc2VydC1hbGlzdAogCSAgKHJlcGxhY2UtbWF0Y2ggKGNhcGl0YWxpemUgKHVzZXIt bG9naW4tbmFtZSkpIHQgdCkpCiAgICAgICcoZW5kLW9mLWxpbmUgMSkgIiA8IiAocHJvZ24gdXNl ci1tYWlsLWFkZHJlc3MpICI+XG4iKQogCisgICAgKCIuZGlyLWxvY2Fscy5lbCIKKyAgICAgbmls CisgICAgICI7OzsgRGlyZWN0b3J5IExvY2FsIFZhcmlhYmxlc1xuIgorICAgICAiOzs7IEZvciBt b3JlIGluZm9ybWF0aW9uIHNlZSAoaW5mbyBcIihlbWFjcykgRGlyZWN0b3J5IFZhcmlhYmxlc1wi KVxuXG4iCisgICAgICIoKCIKKyAgICAgJyhzZXRxIHYxIChsZXQgKG1vZGVzKQorICAgICAgICAg ICAgICAgICAobWFwYXRvbXMgKGxhbWJkYSAobW9kZSkKKyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgKGxldCAoKG5hbWUgKHN5bWJvbC1uYW1lIG1vZGUpKSkKKyAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAod2hlbiAoc3RyaW5nLW1hdGNoICItbW9kZSQiIG5hbWUpCisgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAoYWRkLXRvLWxpc3QgJ21vZGVzIG5hbWUpKSkpKQor ICAgICAgICAgICAgICAgICAoc29ydCBtb2RlcyAnc3RyaW5nPCkpKQorICAgICAoY29tcGxldGlu Zy1yZWFkICJMb2NhbCB2YXJpYWJsZXMgZm9yIG1vZGU6ICIgdjEgbmlsIHQpCisgICAgICIgLiAo KCIKKyAgICAgKGxldCAoKGFsbC12YXJpYWJsZXMKKyAgICAgICAgICAgIChhcHJvcG9zLWludGVy bmFsICIuKiIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChsYW1iZGEgKHN5bWJvbCkK KwkJCSAgICAgICAgKGFuZCAoYm91bmRwIHN5bWJvbCkKKwkJCQkgICAgIChnZXQgc3ltYm9sICd2 YXJpYWJsZS1kb2N1bWVudGF0aW9uKSkpKSkpCisgICAgICAgKGNvbXBsZXRpbmctcmVhZCAiVmFy aWFibGUgdG8gc2V0OiAiIGFsbC12YXJpYWJsZXMpKQorICAgICAiIC4gIgorICAgICAoY29tcGxl dGluZy1yZWFkICJWYWx1ZSB0byBzZXQgaXQgdG86ICIgbmlsKQorICAgICAiKSkpKVxuIikKKwog ICAgICgoIlxcLmVsXFwnIiAuICJFbWFjcyBMaXNwIGhlYWRlciIpCiAgICAgICJTaG9ydCBkZXNj cmlwdGlvbjogIgogICAgICAiOzs7ICIgKGZpbGUtbmFtZS1ub25kaXJlY3RvcnkgKGJ1ZmZlci1m aWxlLW5hbWUpKSAiIC0tLSAiIHN0cgpAQCAtMzE1LDcgKzMzOCw3IEBAIGF1dG8taW5zZXJ0LWFs aXN0CiAgICAgICAgICAgICAgICAgOzsgVGhlcmUncyBubyBjdXN0b20gZXF1aXZhbGVudCBvZiAi cmVwZWF0IiBmb3IgdmVjdG9ycy4KICAgICAgICAgICAgICAgICA6dmFsdWUtdHlwZSAoY2hvaWNl IGZpbGUgZnVuY3Rpb24KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzZXhw IDp0YWcgIlNrZWxldG9uIG9yIHZlY3RvciIpKSkKLSAgOnZlcnNpb24gIjI1LjEiKQorICA6dmVy c2lvbiAiMjcuMSIpCiAKIAogOzsgRXN0YWJsaXNoIGEgZGVmYXVsdCB2YWx1ZSBmb3IgYXV0by1p bnNlcnQtZGlyZWN0b3J5Ci0tIAoyLjIzLjAKCg== --0000000000006ca8dd059587d202--