From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Thu, 17 Oct 2019 18:12:47 +0300 Message-ID: <36c85959-03b8-d691-f8a4-566c556990e8@yandex.ru> References: <2058328b-aee5-8cb1-2659-a793e1354517@mit.edu> <87wod4m7sr.fsf@gnus.org> <835zkndcz4.fsf@gnu.org> <83ftjrbjhm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152064"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 18:18:08 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iL8TX-000dQa-QX for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 18:18:07 +0200 Original-Received: from localhost ([::1]:52226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL8TV-000582-UP for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 12:18:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55197) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL7SR-0008S7-CO for emacs-devel@gnu.org; Thu, 17 Oct 2019 11:12:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL7SQ-0002rj-FW for emacs-devel@gnu.org; Thu, 17 Oct 2019 11:12:55 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:41158) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iL7SQ-0002ob-9d for emacs-devel@gnu.org; Thu, 17 Oct 2019 11:12:54 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id p4so2784027wrm.8 for ; Thu, 17 Oct 2019 08:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=28BONhs7zCjLUpIsHOMx+1Dd45sH92JFw73thZI4N8c=; b=iDh2KKTy7YRcoBUGqGzBjfljTPFCUxkwhWnxcZtfceBPep+7oDW+dJP22Qe3jOnv// w2Yi75wH6ljodj/2HHmWk7xzhfn8zd41mqqEF2SriVttHlkTJWUzDOPsAkBFfaz1G4vY JiPuxs6FWEhjxK3IoReVlLwiFHZW7jW6Y+NGtToth8p6ofRs8dG3QmrwUs4wCQ88PgG3 cPKEv0gfAYg82n0Aoti24roaGhm/xbsov5J8TpF/bF0JTdBTdqjtxq5tIcZARPPE/HtA qFzccQOrXUTobsYJ8CK7MIo0TBXWOBiVM69Cb1AQX+sips9syhvcA/tau5av7Js5qwUH QOXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=28BONhs7zCjLUpIsHOMx+1Dd45sH92JFw73thZI4N8c=; b=hPbIa6s+Ycp6M0DiVAXfBdWoqPdzUUMMld5EUY7lP/xnVT5BUvXlU1TZo17p48HhHD p3w/KrHPrG1Nzcj7g/LDq/YSKWfgBPgk59YbsgzBHQd7lLlIBNtIDerJ5VuzqvSHiVIe SAtValz+P6VOK+/vTlMAe+m9lW/zR+NkdjJP3zFSatBvoiES8wXwv9McnciyFOahE4lN PWRkLqxULvDZSJr2gd+g0hems71f+zp6VznPEgm4B7sfUmUo4OOgv2l5wKy+DfNqDsGM Qv2i9v8hE08e2gkWVWJIFutlZbPNPPYezSQ5aTT7hVOVQMlcT4Vn8zlqQFvOlukKkjTd mAVw== X-Gm-Message-State: APjAAAXzSC8xoUkcWg5EAxQ3vXNoLeRj1IlHPBYxSB6vpVV59I5UHgVR JAceeg6fqg43AXaJOyHFe08JkqQY X-Google-Smtp-Source: APXvYqyryLaDhqpfADjtdC1G+iEOsBPNJCbp8frzpHg6CFyzOzFRadkBYlsZn0kXWnfhKX86/Iu9tQ== X-Received: by 2002:a5d:55d0:: with SMTP id i16mr3706593wrw.150.1571325171228; Thu, 17 Oct 2019 08:12:51 -0700 (PDT) Original-Received: from [192.168.0.140] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id o19sm2926995wmh.27.2019.10.17.08.12.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 08:12:50 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241143 Archived-At: On 17.10.2019 17:00, João Távora wrote: > BTW, and on a tangent, a derived dir-locals-mode isn't the > bestoption. In OO, a derivation that _removes_functionality is a > no-no,it breaks "is a".  A better option would be to have a base > `lisp-prog-mode` and hen derive emacs-lisp-mode from it.  But that is > maybe impractical for other reasons and not justified by this case. The lisp-mode-variables function does that job, more or less. So one can just copy the emacs-lisp-mode definition, rename it to dir-local-mode and remove the unnecessary stuff (which will be at least a half of its definition).