GNU bug report logs -
#37878
[PATCH] Add auto-insert skeleton for ".dir-locals.el"
Previous Next
Reported by: Stefan Kangas <stefan <at> marxist.se>
Date: Tue, 22 Oct 2019 23:05:01 UTC
Severity: wishlist
Tags: patch
Fixed in version 27.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37878 in the body.
You can then email your comments to 37878 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#37878
; Package
emacs
.
(Tue, 22 Oct 2019 23:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Kangas <stefan <at> marxist.se>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 22 Oct 2019 23:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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?
Best regards,
Stefan Kangas
[0001-Add-auto-insert-skeleton-for-.dir-locals.el.patch (application/octet-stream, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#37878
; Package
emacs
.
(Wed, 23 Oct 2019 21:37:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 37878 <at> debbugs.gnu.org (full text, mbox):
> 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.
BTW, please also add the same two lines to the header of
.dir-locals.el in Emacs repository.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#37878
; Package
emacs
.
(Sat, 02 Nov 2019 03:31:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 37878 <at> debbugs.gnu.org (full text, mbox):
close 37878 27.1
thanks
Juri Linkov <juri <at> 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
bug marked as fixed in version 27.1, send any further explanations to
37878 <at> debbugs.gnu.org and Stefan Kangas <stefan <at> marxist.se>
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Sat, 02 Nov 2019 03:31:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 30 Nov 2019 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 253 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.