From patchwork Fri Aug 18 17:46:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thiago Jung Bauermann X-Patchwork-Id: 803361 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xYrBG5vTxz9t3m for ; Sat, 19 Aug 2017 03:47:01 +1000 (AEST) Received: from localhost ([::1]:45046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dilMI-0007mT-GV for incoming@patchwork.ozlabs.org; Fri, 18 Aug 2017 13:46:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dilLy-0007m6-9j for qemu-devel@nongnu.org; Fri, 18 Aug 2017 13:46:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dilLv-0007Nl-7u for qemu-devel@nongnu.org; Fri, 18 Aug 2017 13:46:38 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37924 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dilLv-0007Mo-2G for qemu-devel@nongnu.org; Fri, 18 Aug 2017 13:46:35 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v7IHi4pO001304 for ; Fri, 18 Aug 2017 13:46:34 -0400 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ce2s4f9dd-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 18 Aug 2017 13:46:33 -0400 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 18 Aug 2017 13:46:33 -0400 Received: from b01cxnp23033.gho.pok.ibm.com (9.57.198.28) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 18 Aug 2017 13:46:30 -0400 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v7IHkULe2818488; Fri, 18 Aug 2017 17:46:30 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5CDCBAE03C; Fri, 18 Aug 2017 13:46:50 -0400 (EDT) Received: from morokweng.ibm.com (unknown [9.85.195.35]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id DC779AE034; Fri, 18 Aug 2017 13:46:48 -0400 (EDT) From: Thiago Jung Bauermann To: qemu-devel@nongnu.org Date: Fri, 18 Aug 2017 14:46:14 -0300 X-Mailer: git-send-email 2.14.1 X-TM-AS-GCONF: 00 x-cbid: 17081817-0052-0000-0000-00000251CE03 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007568; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000223; SDB=6.00904199; UDB=6.00453032; IPR=6.00684411; BA=6.00005539; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016756; XFM=3.00000015; UTC=2017-08-18 17:46:32 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17081817-0053-0000-0000-000051B6FA2C Message-Id: <20170818174614.10930-1-bauerman@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-08-18_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1708180285 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 148.163.158.5 Subject: [Qemu-devel] [PATCH] .dir-locals.el: Explicitly set indentation level X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thiago Jung Bauermann Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" At least in some configurations, setting c-file-style is not enough to conform to the QEMU coding style, so explicitly set c-basic-offset as well. Signed-off-by: Thiago Jung Bauermann --- My emacs was using indentation level of 8 spaces and this patch convinced it to use the correct value. I set c-basic-offset set to tab-width in my ~/.spacemacs which perhaps isn't the wisest thing to do, but since there's a .dir-locals.el we can make the editor always do the right thing. .dir-locals.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.dir-locals.el b/.dir-locals.el index 3ac0cfc6f0d6..8e47418c5996 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,2 +1,3 @@ ((c-mode . ((c-file-style . "stroustrup") - (indent-tabs-mode . nil)))) + (indent-tabs-mode . nil) + (c-basic-offset . 4))))