From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Re: Question about dir-locals c-mode. Date: Sun, 8 Nov 2020 17:16:35 +0100 Message-ID: <20201108161635.xri5oez4zarynl3b@Ergus> References: <20201107235056.5lwabkhbflx2gc6o.ref@Ergus> <20201107235056.5lwabkhbflx2gc6o@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11968"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 08 17:17:35 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbnNn-000317-75 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Nov 2020 17:17:35 +0100 Original-Received: from localhost ([::1]:53182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbnNm-0006Mv-99 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Nov 2020 11:17:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbnNE-0006KW-PI for help-gnu-emacs@gnu.org; Sun, 08 Nov 2020 11:17:00 -0500 Original-Received: from sonic302-2.consmr.mail.bf2.yahoo.com ([74.6.135.41]:37511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbnNA-00021C-Fk for help-gnu-emacs@gnu.org; Sun, 08 Nov 2020 11:17:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1604852209; bh=v1lTTebElUBYJzw+FIKfKYZTuBYhYKUL2s6ZepeeIAQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=d50DX0IS8QUbR4dxwkgeHk0a+6im//hnJ0BYuIFw2Gpvf7lzRwojK15H6txlLBf3hvkq0kehCdsX4uJti1uxUxKKPOos3LNCu8NWHsTz8K1L52mFnbonVzfkAAN91BJ5S2dB6SK40EVvmnisDwZKTRXrUPqLaowhVseHMxGp9pgszLRaDvy/maBWOQHzWx0nNTQNbpH6eVgXHfMkzDnJkO7vP1WTXhuzjfT9eK45/qO+5u/O69wEA2T4m5204knUj3XdvcJ21HhKHI+oV2nVryDv5szl/sfn6gvOizsevu2omrKMPT5DiPnC2ZehqiNvPw+fqr0oraVGPWIpLgEuqw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1604852209; bh=jNfMMzhHZ0/cO3iXqbJy7bYOHb7Pp4RykSNnWH9QaT+=; h=Date:From:To:Subject; b=ZDCc1igFFVhALfIDwnpb4VLQ/yyUcaUdjd3WXB+nu9Jzn5UvzADoz/kTjnT9fo29qtbQ5+3hOq1VvhbF1TwicOZxX3F3eFCIAbes+3yKwLELM/H825+0YVH2BhM9idpVGjsqtEBjobkS/hEZ4ptHebN5Ap7vT1OtA99M8IgiVF7L29q7H2TH/9OjjERu1q/2/Rab5THNo5v+Yp7ObUX9hySzQoPe0EFQI45PIAbQcO0O3UFCNBdtGs4wD3C1TUlLbfNxuBqlNNCw2tHnFgolgAchx3TUf5Lc0pns9unq5zcFcQkm6/iCBKVtYXZZN0oFa/Y7xDhZZ9dg+IpsVobyoQ== X-YMail-OSG: dsOfYKsVM1lpILOAmHfR07HAxk.rTavpIF3Dp3MaE03J9Q65PtFVqCwBxP_2REI ZquFWQJr4jqW9JJrPMwYaI26fo_O.g_lmSwcLQtO9Dwz7y8.GRMXQo6cqxerNnU9Qst0Y9M3yian vSvOGd3llaJ8GtytjjzlF6Vp_rYGzh3gmJvoBqHNo_CZdwE0w6UqAQkX.p1akNQPPl_n3_kJq.sk O8ncp2LpPtUtVh.oIBfGxJDPfk2SjEDl.TAhEmvNHXKzfS0ZTk7p4T.wllP1bp8N0iuGowQzuXcy gPEpezjcOG3jtUKPYSVCnQn2K4oyiaNVkHdOOzgPWZOGqdfS35Qysw4y40mZsIJ6sfSfRVPMXmaM 3LL7bUZ2jGnjR9Q7EKD1DGtXOTz.LxyjcM5pKdDIKzAYH0ihkbC40c.xosx6lkdz_yaAuYDFYufW E6PHkRprlRdo4Oj0R0I1KdPUJR1zq__6D.copVWxj1y8fv1Fj3e_VZsgO_CRVfZGa6U_BBDrX8mJ OItc9VgU5vFCMAJw.AK3rt4TQDU76k8oY.CB9leplY3ibDXnpJoHnMidWf5JqCICJ_Bp.Aa9sD5u Z2AoPUdhXmBycB_lzkGsXrRNq.gA6UUDtmD.KKxvNhZXy5_C3vnILeVDuTX9lrZUioMaDOhztGDV 9JmY9PF6rkwvt.wkGKQuMqAQgPHBKSbHOnseTAd5ZNDKIu85iS4YZsrTkhbewvXxhnVuOafD9eBV EluV8_GNT8GsFAViumZI7kG5qJfYPJtW4ORYOnwBI33.VM94Oyf6Rs76.1yKRa7KjL8WHFCzSMGz RylgwovTt2bgURC0iNfpwaWsWcn7cLRA6BVQAyI.d1 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Sun, 8 Nov 2020 16:16:49 +0000 Original-Received: by smtp422.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e77b35e3f1b111a888b5a32eaacb0909; Sun, 08 Nov 2020 16:16:47 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.16944 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.8) Received-SPF: pass client-ip=74.6.135.41; envelope-from=spacibba@aol.com; helo=sonic302-2.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/08 10:21:44 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125104 Archived-At: On Sun, Nov 08, 2020 at 09:50:38AM -0500, Stefan Monnier wrote: >> Up to now I have: >> >> (c++-mode . (...Long...)) >> (c-mode . (...Long...)) > >FWIW, I had sent a patch to CC-mode to introduce a parent mode shared by >c-mode, c++-mode, and objc-mode, but Alan didn't like the idea. > > > Stefan :( There is the c-mode-common-hook I was actually expecting that there should be something like c-mode-common. Somehow it seems intuitive for me. Some packages like irony have actually some hacks to go around this too.