xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: David Vrabel <david.vrabel@citrix.com>
To: David Vrabel <david.vrabel@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir@xen.org>
Subject: Re: [PATCH sort of] Fix emacs local variable for c-style
Date: Tue, 22 Jan 2013 14:00:30 +0000	[thread overview]
Message-ID: <50FE9B7E.8000302@citrix.com> (raw)
In-Reply-To: <50F0000D.9070701@citrix.com>

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 <david.vrabel@citrix.com>" -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 <david.vrabel@citrix.com"
> ---8<-----
[...]
>  337 files changed, 337 insertions(+), 337 deletions(-)

      parent reply	other threads:[~2013-01-22 14:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11 12:05 [PATCH sort of] Fix emacs local variable for c-style David Vrabel
2013-01-18 12:07 ` Ian Campbell
2013-01-22 14:00 ` David Vrabel [this message]

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=50FE9B7E.8000302@citrix.com \
    --to=david.vrabel@citrix.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xensource.com \
    /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.
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 NNTP newsgroup(s).