all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: "João Távora" <joaotavora@gmail.com>, emacs-devel@gnu.org
Subject: Re: master 43fded1: Add lisp-data-mode for editing non-code Lisp data
Date: Fri, 01 May 2020 14:18:44 -0400	[thread overview]
Message-ID: <jwvd07nv832.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87zhary243.fsf@gmx.de> (Michael Albinus's message of "Fri, 01 May 2020 19:52:12 +0200")

>> -	   ";; -*- emacs-lisp -*-"
>> +	   ";; -*- lisp-data -*-"
[...]
> That's a problem.  Tramp must be backward compatible with Emacs 25 and
> later, which doesn't know of lisp-data-mode.  Could you, pls, revert this
> part of your commit?

[ Do we also care about writing this file from Emacs-28 and then
  reading it in Emacs-25?  How 'bout restricting it so you can only use
  it with Emacs-25-but-using-a-recent-Tramp?  ]
[ Also, I assume the above problem appears because Tramp uses
  `find-file-noselect` to access this file, so it could be fixed by
  making it use `insert-file-contents` instead, right?  ]

Reminds me of similar problems I've encountered with files where I want
to use some home-made derived major mode and where they then fail
miserably when used without the rest of my config.

Clearly it's too late to fix the above problem with Emacs-25, but for
the future, I think we should provide a way to specify not just a single
mode but a list of modes by order of preference, so if `lisp-data` is
not available it falls back to `emacs-liso`.


        Stefan




  reply	other threads:[~2020-05-01 18:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200501111127.16683.2701@vcs0.savannah.gnu.org>
     [not found] ` <20200501111128.D311220B5B@vcs0.savannah.gnu.org>
2020-05-01 17:52   ` master 43fded1: Add lisp-data-mode for editing non-code Lisp data Michael Albinus
2020-05-01 18:18     ` Stefan Monnier [this message]
2020-05-02 10:32       ` Michael Albinus
2020-05-02 10:45         ` João Távora
2020-05-02 11:20           ` Michael Albinus
2020-05-02 11:22             ` João Távora
2020-05-02 14:08         ` Stefan Monnier
2020-05-02 14:16           ` Michael Albinus
2020-05-01 18:40     ` João Távora
2020-05-02 10:51       ` Michael Albinus

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

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

  git send-email \
    --in-reply-to=jwvd07nv832.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=joaotavora@gmail.com \
    --cc=michael.albinus@gmx.de \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.