unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Juri Linkov <juri@linkov.net>
Cc: 37878@debbugs.gnu.org
Subject: bug#37878: [PATCH] Add auto-insert skeleton for ".dir-locals.el"
Date: Sat, 02 Nov 2019 04:30:14 +0100	[thread overview]
Message-ID: <87eeyrhs55.fsf@marxist.se> (raw)
In-Reply-To: <874kzzdusy.fsf@mail.linkov.net> (Juri Linkov's message of "Thu,  24 Oct 2019 00:19:09 +0300")

close 37878 27.1
thanks

Juri Linkov <juri@linkov.net> writes:

>> 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á.)
>>
>> Any comments?
>
> Good addition for someone who doesn't use add-dir-local-variable
> that inserts this header.

Thanks for the review.  Now pushed to master as commit 6c82aafcc0.

> BTW, please also add the same two lines to the header of
> .dir-locals.el in Emacs repository.

Good idea.  I did that in commit 7cde03484.

Best regards,
Stefan Kangas





      reply	other threads:[~2019-11-02  3:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-22 23:04 bug#37878: [PATCH] Add auto-insert skeleton for ".dir-locals.el" Stefan Kangas
2019-10-23 21:19 ` Juri Linkov
2019-11-02  3:30   ` Stefan Kangas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eeyrhs55.fsf@marxist.se \
    --to=stefan@marxist.se \
    --cc=37878@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).