From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: [PATCH sort of] Fix emacs local variable for c-style Date: Fri, 11 Jan 2013 12:05:33 +0000 Message-ID: <50F0000D.9070701@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xensource.com" Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org 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). 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