[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add file-locals and dir-locals
From: |
Juri Linkov |
Subject: |
Re: Add file-locals and dir-locals |
Date: |
Wed, 22 Jul 2009 03:21:07 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) |
>> Below is the final patch that I find useful enough to commit. I invite
>> you and other developers to improve this further as you wish.
>
> Does this patch support adding local variables both in the beginning and
> end of buffers?
>
> I'd love to see this applied in trunk so that it can easily tested.
> Thanks for the patch.
Right, adding local variables to the first line is necessary too.
This requires designing a good UI for that. One idea is after
executing `M-x add-file-local-variable RET' ask a question like:
Add variable to the beginning or end of buffer (yes or no)
which obviously always implies "yes". The problem that the prompt should
mention both alternatives, but yes-or-no-p accepts only "y" or "n".
Using `map-y-or-n-p' to accept other keys will complicate the prompt.
Do you have any better idea?
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, (continued)
- Add file-locals and dir-locals (was: Blunderbuss ".dir-locals.el" raises everything in its path!!), Juri Linkov, 2009/07/16
- Re: Add file-locals and dir-locals, martin rudalics, 2009/07/17
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/17
- Re: Add file-locals and dir-locals, martin rudalics, 2009/07/18
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/18
- Re: Add file-locals and dir-locals, martin rudalics, 2009/07/19
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/19
- Re: Add file-locals and dir-locals, Leo, 2009/07/20
- Re: Add file-locals and dir-locals,
Juri Linkov <=
- Re: Add file-locals and dir-locals, Leo, 2009/07/21
- Re: Add file-locals and dir-locals, David Kastrup, 2009/07/17
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/17
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Chong Yidong, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Alan Mackenzie, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Lennart Borgman, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Alan Mackenzie, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Lennart Borgman, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Stephen J. Turnbull, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Lennart Borgman, 2009/07/12