From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Sun, 20 Oct 2019 20:29:55 +0100 Message-ID: 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> <875zkju5ke.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000045c83a05955c9886" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="66178"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Eli Zaretskii , Dmitry Gutov , =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= , Stefan Monnier , emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 20 21:30:19 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 1iMGuB-000H5C-Bc for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2019 21:30:19 +0200 Original-Received: from localhost ([::1]:45092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMGuA-0006C9-6y for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2019 15:30:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46886) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMGu4-0006C1-4X for emacs-devel@gnu.org; Sun, 20 Oct 2019 15:30:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMGu3-0002FN-0K for emacs-devel@gnu.org; Sun, 20 Oct 2019 15:30:12 -0400 Original-Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]:46669) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMGu1-0002E9-DX; Sun, 20 Oct 2019 15:30:09 -0400 Original-Received: by mail-io1-xd2d.google.com with SMTP id c6so13296719ioo.13; Sun, 20 Oct 2019 12:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ezX/lxeZ+dtjNZkLv//CpG/9UqbxAetHaCSU0EcEPF8=; b=NNL4+h0tkqGxVM1WWTdcilwg4QMOGbGt2yd9y7pkxjeY4Eu+86+3HJLPLVmXChBnKA S0KWypq8i7CumuOKh2Uiz/Lg9qW/hiq9deJyf1GGfYxLVXbrWxLmmUb1kCyHpsven/We gIQwGGW1BL78mSEDBU6MsKc8qK9XOqGRiu0DPh1uP7azvO9DkyS3fA1tvNuJhXNg221j nFPhvQdm0mxamtOzZfhYw6ybmut0zGGiHIHZshGdZQwQFJJJPnx0VoSWTjZ2wJwIWwSc TqMGxj6Lc3+xRMDCXnOV23VEotT4a85MTMkstsDeyleYSLvF2JeYoP8Ni1D6DwFkhm8+ 4EVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ezX/lxeZ+dtjNZkLv//CpG/9UqbxAetHaCSU0EcEPF8=; b=sHTE7z5YMxuFyiabIs98hSVGy9CKlvIJhslcC+pJ+nI/SOt2adZlOIWeBwI3//EXQM 8gg06EZVBdnIvOZ+HwSfoD6nTxPYDofb4KPss9lYd53Ax4YDwgrxnf0SZWIIRjqZ5YPD V7DZysYDicToQZWGdMrugngfPY485XZzamg1exbQ3yb98JazzrlEM45wXyYDcSHUzwbH GeJzCFtZ1v2STjPcQ+L3NbaqZNYHjepbok0KniPiNFC13uwF+HKLmaNH6pAPvPoq9w16 T2P7S0+byZViM6WYrcGzLqY5+Pz0CIwu4FBIOsm0ysWLkGw7WrXpX1qvavIfnUhUlZnK qGpA== X-Gm-Message-State: APjAAAWENwmib8s1J58eHIFTDH55BxhBhnvgIo7fVmSDtPub/9PnuH+Y Dq9y5lrX/uuK5OlO0HvDvPd8HtUPN20cjQc/Vvg= X-Google-Smtp-Source: APXvYqxSt+mVJR6dDR39Ufsh4CAeoe4d1d1n8bHpVVviGvvoXc4wK5YH+4kYlxj9G2JGLdw5QrqmEQcB2CGWiD0bN0Q= X-Received: by 2002:a02:69d0:: with SMTP id e199mr7254975jac.78.1571599807791; Sun, 20 Oct 2019 12:30:07 -0700 (PDT) In-Reply-To: <875zkju5ke.fsf@mail.linkov.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d2d 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:241264 Archived-At: --00000000000045c83a05955c9886 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Oct 20, 2019 at 5:32 PM Juri Linkov wrote: > > > But cookie generation would only be for very tight cases, I think, if > > any at all. Because for files whole filenames and/or standard location= s > > 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: To me the obvious answer would be that if we ever develop a specialized recentf-mode, places-mode, etc... derived from emacs-lisp-data-mode, we get to apply these modes to existing files without having to painfully find-and-replace said cookies. I've just never considered auto-mode-alist to be a clean place anyway, there's lots of stuff there I've never heard of. But the cookies aren't horrible, either. We mainly just need the intermediate lisp-as-data mode for now. Jo=C3=A3o --00000000000045c83a05955c9886 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Oct 20, 2019 at 5:32 PM Juri Linkov <juri@linkov.net> wrote:
>
> >= ; But cookie generation would only be for very tight cases, I think, if
= > > any at all.=C2=A0 Because for files whole filenames and/or standa= rd locations
> > we know, such as dir-locals.el, bookmarks, ido-la= st, recentf,
> > tramp-something, etc. we can just leverage the ex= isting 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 coo= kie like:

To me the obvious answer would be t= hat if we ever develop a
specialized recentf-mode, places-mo= de, etc... derived from
emacs-lisp-data-mode, we get to appl= y these modes to existing files
without having to painfully = find-and-replace said cookies.

I've just never= considered auto-mode-alist to be a clean place
anyway, ther= e's lots of stuff there I've never heard of.

But the cookies aren't horrible, either.=C2=A0 We mainly just need
the intermediate lisp-as-data mode for now.
Jo=C3=A3o
--00000000000045c83a05955c9886--