unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Make local file variable c-file-offsets "safe"
@ 2014-06-21  0:39 Joe Matarazzo
  0 siblings, 0 replies; only message in thread
From: Joe Matarazzo @ 2014-06-21  0:39 UTC (permalink / raw)
  To: emacs-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-21  0:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-21  0:39 Make local file variable c-file-offsets "safe" Joe Matarazzo

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).