emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make local file variable c-file-offsets "safe"


From: Joe Matarazzo
Subject: Make local file variable c-file-offsets "safe"
Date: Fri, 20 Jun 2014 17:39:12 -0700

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


 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]