all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joe Matarazzo <joe.matarazzo@gmail.com>
To: emacs-devel@gnu.org
Subject: Make local file variable c-file-offsets "safe"
Date: Fri, 20 Jun 2014 17:39:12 -0700	[thread overview]
Message-ID: <CANs_5e5uAcJSOTORskgdqoHUWHfBvk34RLk3=5SdiEXXbWO00Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 487 bytes --]

I ran into a project using .dir-locals.el with a (c-file-offsets [alist])
construct. Every file I visited flagged this variable as an unsafe local
file variable.

cc-vars.el provides a safe-local-variable property to sanitize the other
local file variable it has, c-file-style, so why not c-file-offsets?

It could be as simple as making the predicate 'listp, or if desired, do
something fancier and check that each car of the list is key in the
c-offsets-alist.

Thoughts?

Thanks,
Joe

[-- Attachment #2: Type: text/html, Size: 666 bytes --]

                 reply	other threads:[~2014-06-21  0:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CANs_5e5uAcJSOTORskgdqoHUWHfBvk34RLk3=5SdiEXXbWO00Q@mail.gmail.com' \
    --to=joe.matarazzo@gmail.com \
    --cc=emacs-devel@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.