From: Josh <josh@foxtail.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 13685@debbugs.gnu.org
Subject: bug#13685: a way to say that dir-locals should only apply to buffers with files
Date: Tue, 12 Feb 2013 19:24:19 -0800 [thread overview]
Message-ID: <CANdFEAETs4mXrO-560+qXeNhR_-MKxiqeHMO4t4SG+AZAkemrw@mail.gmail.com> (raw)
In-Reply-To: <qspq06mfce.fsf@fencepost.gnu.org>
On Mon, Feb 11, 2013 at 6:32 PM, Glenn Morris <rgm@gnu.org> wrote:
> Glenn Morris wrote:
>
>> I think there should be some way in a dir-locals file to say
>> "these settings should only be applied to buffers with files".
>> Sometimes some options are not appropriate for file-less buffers.
>> Ref bug#11127.
>
> This seems easy to do, but I don't know what the best UI is.
> An element in the dir-locals list:
>
> (fileonly . t)
>
> or
>
> (apply-to . files)
Or more generally, the cdr could specify a predicate taking a single
argument (the buffer), e.g.
(apply-if . buffer-file-name)
> The latter allows for
>
> (apply-to . nonfiles)
>
> as well (though I can't think of a use for that).
Likewise, (apply-if . (lambda (buffer) (not (buffer-file-name buffer))))
next prev parent reply other threads:[~2013-02-13 3:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <emtxpj7gzs.fsf@fencepost.gnu.org>
2013-02-12 2:32 ` bug#13685: a way to say that dir-locals should only apply to buffers with files Glenn Morris
2013-02-13 3:24 ` Josh [this message]
2013-02-13 8:36 ` Andreas Schwab
2013-02-13 17:18 ` Josh
2013-02-21 16:16 ` Ted Zlatanov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANdFEAETs4mXrO-560+qXeNhR_-MKxiqeHMO4t4SG+AZAkemrw@mail.gmail.com \
--to=josh@foxtail.org \
--cc=13685@debbugs.gnu.org \
--cc=rgm@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.