From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoweS-0002NY-2z for qemu-devel@nongnu.org; Wed, 01 Apr 2009 05:22:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoweN-0002Go-4q for qemu-devel@nongnu.org; Wed, 01 Apr 2009 05:22:27 -0400 Received: from [199.232.76.173] (port=35602 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoweM-0002GN-O5 for qemu-devel@nongnu.org; Wed, 01 Apr 2009 05:22:22 -0400 Received: from mx2.redhat.com ([66.187.237.31]:47092) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LoweM-0006jE-8i for qemu-devel@nongnu.org; Wed, 01 Apr 2009 05:22:22 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n319MLY0019776 for ; Wed, 1 Apr 2009 05:22:21 -0400 Message-ID: <49D32E1D.4030208@redhat.com> Date: Wed, 01 Apr 2009 12:04:29 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Document Qemu coding style References: <1238361823-24939-1-git-send-email-avi@redhat.com> <20090401085135.GB17093@amd.home.annexia.org> In-Reply-To: <20090401085135.GB17093@amd.home.annexia.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: qemu-devel@nongnu.org Richard W.M. Jones wrote: > On Mon, Mar 30, 2009 at 12:23:43AM +0300, Avi Kivity wrote: > >> With the help of some Limoncino I noted several aspects of the Qemu coding >> style, particularly where it differs from the Linux coding style as many >> contributors work on both projects. >> > Just as a general comment, have you thought about providing specific > guidance for emacs and vi users? > > In libvirt, the HACKING file contains the following useful snippet for > emacs users: > > http://git.et.redhat.com/?p=libvirt.git;a=blob;f=HACKING;h=ca39d61d85f2aaa3991f13a540772932208be7cd;hb=f5c687f03d8313407448fc642f8fefe95a655645#l59 > > They just paste that into their ~/.emacs, and any time they edit > libvirt code it "just works". > > Good idea. Maybe not in CODING_STYLE, but it's certainly helpful. I use something similar in my ~/.emacs. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.