From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Sun, 20 Oct 2019 18:40:57 +0300 Organization: LINKOV.NET Message-ID: <875zkju5ke.fsf@mail.linkov.net> References: <2058328b-aee5-8cb1-2659-a793e1354517@mit.edu> <83ftjr9sx4.fsf@gnu.org> <83eezb9s5b.fsf@gnu.org> <83bluf9qgb.fsf@gnu.org> <835zkn9o01.fsf@gnu.org> <83lfti8ovn.fsf@gnu.org> <83d0eu8c80.fsf@gnu.org> <83lfth6p0y.fsf@gnu.org> <7f141905-6be3-2c21-e2af-b5926dd80223@gmail.com> <83a79w7rg6.fsf@gnu.org> <38522c1f-8127-0560-7cc5-7bdce849e650@yandex.ru> <831rv86kcg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="136856"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , Dmitry Gutov , =?iso-8859-1?Q?Cl=E9ment?= Pit-Claudel , Stefan Monnier , emacs-devel To: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 20 18:32:38 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 1iME8D-000ZP4-9R for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2019 18:32:37 +0200 Original-Received: from localhost ([::1]:40398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iME8C-0003IV-1d for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2019 12:32:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33136) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iME84-0003IC-BU for emacs-devel@gnu.org; Sun, 20 Oct 2019 12:32:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iME83-0008Em-31 for emacs-devel@gnu.org; Sun, 20 Oct 2019 12:32:28 -0400 Original-Received: from bongo.elm.relay.mailchannels.net ([23.83.212.21]:59494) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iME81-00088g-Cr; Sun, 20 Oct 2019 12:32:25 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7228C740881; Sun, 20 Oct 2019 16:32:23 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (100-96-91-110.trex.outbound.svc.cluster.local [100.96.91.110]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D0F4E7409E1; Sun, 20 Oct 2019 16:32:22 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Sun, 20 Oct 2019 16:32:23 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Arch-Relation: 0a88a89c207eef30_1571589143101_604890748 X-MC-Loop-Signature: 1571589143101:2783134396 X-MC-Ingress-Time: 1571589143101 Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTP id 6D95C82C03; Sun, 20 Oct 2019 09:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=VzPOmRlDSWNcjTJpSi42zKNyMXs=; b= IwNs1fokY6o5pjBb1si3EAiWsRSUb+0WGR+9mwtOdLH6J8MzPp0/bM6WQmaAZJIC pa+1v8srpmyRdyF436BOS9bkfwAMX7W2Igd/a2AAg29eMKANpWCZoKK7jlnCG7a/ QOA4kHNZJL963pkwV9WV0V3QxcnojxBIGpDLWbz20Fo= Original-Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTPSA id CE32882BF2; Sun, 20 Oct 2019 09:32:15 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a73 In-Reply-To: (=?iso-8859-1?Q?=22Jo=E3o_T=E1vora=22's?= message of "Sun, 20 Oct 2019 09:17:37 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.212.21 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:241252 Archived-At: > But cookie generation would only be for very tight cases, I think, if > any at all. Because for files whole filenames and/or standard locations > we know, such as dir-locals.el, bookmarks, ido-last, recentf, > tramp-something, etc. we can just leverage the existing auto-mode-alist > and magic-mode-alist. Why are we talking about cluttering up auto-mode-alist with odd filenames? There files are generated, so it's easy to add to them a cookie like: ;; -*- mode: emacs-lisp-data -*- Actually ~/.emacs.d/tramp already has ;; -*- emacs-lisp -*- But no other files. We need to add the same cookie to ~/.emacs.d/places - Emacs Lisp data ~/.emacs.d/recentf - Emacs Lisp data ~/.emacs.d/eudc-options - Emacs Lisp code and to all other files in ~/.emacs.d/