all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Josh <josh@foxtail.org>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 13685@debbugs.gnu.org
Subject: bug#13685: a way to say that dir-locals should only apply to buffers with files
Date: Wed, 13 Feb 2013 09:18:05 -0800	[thread overview]
Message-ID: <CANdFEAFx8rtfdpk+p+pmE9VNHWfES-O8-w279iYiWFnQksAs4A@mail.gmail.com> (raw)
In-Reply-To: <mvmobfo4nm4.fsf@hawking.suse.de>

On Wed, Feb 13, 2013 at 12:36 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Josh <josh@foxtail.org> writes:
>
>> Likewise, (apply-if . (lambda (buffer) (not (buffer-file-name buffer))))
>
> Be careful about execution of arbitrary code.
>
> Andreas.

Indeed, such a feature should be governed by `enable-local-eval' and
`safe-local-eval-forms' or similar, with `buffer-file-name' being an
element of the latter by default.





  reply	other threads:[~2013-02-13 17:18 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
2013-02-13  8:36     ` Andreas Schwab
2013-02-13 17:18       ` Josh [this message]
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=CANdFEAFx8rtfdpk+p+pmE9VNHWfES-O8-w279iYiWFnQksAs4A@mail.gmail.com \
    --to=josh@foxtail.org \
    --cc=13685@debbugs.gnu.org \
    --cc=schwab@linux-m68k.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.