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

Re: [RESEND][PATCH v2 1/7] xen/guest_access: Add emacs magics


  • To: Julien Grall <julien@xxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Tue, 22 Sep 2020 10:05:55 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4xGz8ACD7altQV86fFw0eW34/75ycOiGwA3kuULxlPk=; b=eONbrpark+qLvDlfilMRk3CXtus5NyrKS8tjFLB3Uru0kkmzlaOXXn3VKJI+Mkldmc5n5pfWd73WNjO6J1CR1PrOgKycTjZ77ah9akPWqtxipiP58jxlpUtKofeXp9ddPouCrzaVh6yTGG+jc7ON82P1YNaPU/A/hGDqwxchTZfPRWmvatJogx3ok9UCW8NGZj7618JH1as+ZFTo/9/qlXJNP8ucke3y+CJJRkLmP9WmWXrG8Blp13Nm+lZpAmIlAFKlSW+ATW+mh0QBoJpCoabW1JAuJ82Y6LIqxLHTKcnxmbJUxHrNx9yVMq5IwPYaE4WIFDv/PfA5Jo/3Layuxw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GlRvMcshCJb+ZoH0C3f3s6M4D+R+IBOPnN40DYuIRQY4uWrIlb7lmRK9G2mGTDbVDmS1+pZ/04uNB9XgM1dHxXoL75+DChfaS2FeqpbTP6TLkfxM2yH7L15kOVn+vBE/mGzNjRzo0J0NhoFFVKM/a+2MCGCsbI1kMv6umhl6tKWyXyxRlOlb71F+yPtGEBmYcXcwkjrRknjlWgENwnM9z0tfWiERmML+NrlS622PIyvulK1tu52ImWsoCSJXxroUKKidLIcZtEmyDvww2UpS6ww9fit/X8oaqbZEwm5XL5Rn58Xc/6riLKUSZKvPUB05RGgkIrCXiX60B469egSjnA==
  • Authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=epam.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 22 Sep 2020 10:06:18 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWZp38moFqv9vHskKF4Z/e70Jnnal0wq4A
  • Thread-topic: [RESEND][PATCH v2 1/7] xen/guest_access: Add emacs magics

Hi Julie,

Julien Grall writes:

> From: Julien Grall <jgrall@xxxxxxxxxx>
>
> Add emacs magics for xen/guest_access.h and
> asm-x86/guest_access.h.

As Emacs user I fully approve this.

But I want to hijack this thread a little to discuss even better
solution. Emacs supports .dir-locals.el file [1], which allows to set
all per-buffer variables once for all files down the directory tree. So,
instead of having "/* Local variables */" scourge in every file we can have
bunch of ".dir-locals.el" files placed in a strategic places to define
coding styles for different parts of Xen. As a bonus, it will be
possible to define Linux coding style for files taken from Linux, for example.

[1] 
https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html

-- 
Volodymyr Babchuk at EPAM


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.