unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: [External] : Rename .dir-locals.el to .dir-locals.eld
Date: Fri, 21 Jan 2022 03:04:50 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488816DACB1335579697F4EF35B9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <jwv7daugfm4.fsf-monnier+emacs@gnu.org>

> >> I think we should restrict the `.el` extension for files which contain
> >> actual ELisp code rather than files that just contain text in ELisp's
> >> sexp format.  WDYT?
> >
> > 1. Why do you think so?
> >
> > 2. Isn't every Elisp sexp "code"?  How are you
> >    going to distinguish "code" from other sexps?
> 
> Again?  We already went through this discussion.  And the result is
> `lisp-data-mode`, which the major mode I'd recommend we use for
> `.eld` files.

I see.  I just now found and read what I guess
is the thread `lisp-data-mode' was discussed in:

https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00692.html

(But the JavaScript/JSON analogy given there
isn't so exact here, I expect.  IIUC, in at
least some of the expected Lisp "data" files
any and all valid Elisp syntax is to be
expected.  Not all JavaScript syntax is JSON.)

What's the criterion for such data?  Is it
that it's Lisp-`read'able without error (not
necessarily `eval'able without error)?

I still have the question "Why?" for *.eld.
(That doesn't imply an objection to it.)
What's the reason for the different extension?

Is it just so flymake or font-lock or whatever
doesn't treat list sexps as more than lists,
i.e., as function applications?

Why, please, if you don't mind.



  reply	other threads:[~2022-01-21  3:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-20 18:31 Rename .dir-locals.el to .dir-locals.eld Stefan Monnier
2022-01-20 23:14 ` [External] : " Drew Adams
2022-01-20 23:20   ` Stefan Monnier
2022-01-21  3:04     ` Drew Adams [this message]
2022-01-21  1:57   ` Dmitry Gutov
2022-01-21  2:15     ` Robin Tarsiger
2022-01-21  3:04       ` Drew Adams
2022-01-21  3:04     ` Drew Adams
2022-01-21  3:07       ` Dmitry Gutov
2022-01-21 14:17       ` Michael Welsh Duggan
2022-01-21 16:46         ` Drew Adams
2022-01-21  1:22 ` Po Lu
2022-01-21  2:07 ` Robin Tarsiger
2022-01-21  2:20   ` Po Lu
2022-01-21  7:21 ` Eli Zaretskii
2022-01-21  9:49 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB5488816DACB1335579697F4EF35B9@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).