From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCH sort of] Fix emacs local variable for c-style Date: Tue, 22 Jan 2013 14:00:30 +0000 Message-ID: <50FE9B7E.8000302@citrix.com> References: <50F0000D.9070701@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <50F0000D.9070701@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org Keir, On 11/01/13 12:05, David Vrabel wrote: > Hi, > > The local variable block used through the Xen source using the wrong > variable to set the C style so it does not work. > > The correct variable to use is c-file-style, as documented in > CODING_STYLE and > > http://www.gnu.org/software/emacs/manual/html_node/ccmode/File-Styles.html > > The following script run from the top level of a clean Xen source tree > will fix the incorrect variables (and commit the result). What do you want to do with this? Are you happy to run the script and commit the result? Or would you prefer a patch? David > > The diffstat is large (see below) so I'm not including the patch. > > David > > ---8<----- > #! /bin/sh > > find . -name "*.[ch]" -print0 | xargs -0 sed -i \ > "s/\\* c-set-style:/\\* c-file-style:/g" > git commit -a --author "David Vrabel " -m \ > "Fix emacs local variable block to use correct C style variable. > > The emacs variable to set the C style from a local variable block is > c-file-style, not c-set-style. > > Signed-off-by: David Vrabel ---8<----- [...] > 337 files changed, 337 insertions(+), 337 deletions(-)