From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: master 43fded1: Add lisp-data-mode for editing non-code Lisp data Date: Fri, 01 May 2020 14:18:44 -0400 Message-ID: References: <20200501111127.16683.2701@vcs0.savannah.gnu.org> <20200501111128.D311220B5B@vcs0.savannah.gnu.org> <87zhary243.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="43128"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: =?windows-1252?B?Sm/jbyBU4XZvcmE=?= , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 01 20:20:06 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUaGb-000B7C-Vm for ged-emacs-devel@m.gmane-mx.org; Fri, 01 May 2020 20:20:05 +0200 Original-Received: from localhost ([::1]:57332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUaGb-0001lR-0g for ged-emacs-devel@m.gmane-mx.org; Fri, 01 May 2020 14:20:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUaFb-0000Bx-MR for emacs-devel@gnu.org; Fri, 01 May 2020 14:19:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUaFO-0005O4-Rs for emacs-devel@gnu.org; Fri, 01 May 2020 14:19:02 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:37640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUaFO-0005LL-Ck for emacs-devel@gnu.org; Fri, 01 May 2020 14:18:50 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DC1B2100EE7; Fri, 1 May 2020 14:18:48 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id AA8A4100D53; Fri, 1 May 2020 14:18:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1588357126; bh=jBEJERNCbrVkSzfb9Lhq2cOl/+inkI2CAfRY561oE2Q=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=aUv91I/B0QbAC3npNuE2YtUdX2lsqWEBS1WAu22Ds3BLDAfszxBR4WN6yuXa7EPvY Khle/d0F49Iejiy7xIhqbROOJtoCclCfSdVIcrahlD5Z2q2FPjwO4TMOl/fOLPTHA2 qcc/GK25oRP063Fyp3oq6Aw8nC9G+uJFJj21lVNQuHu14gEKhfNl+Edx7K42sImR8V F91JRdEXFK8/ZwHtoOVG1ZtH/MSviGg1+5YvZ0rzt2V38XDuKoJRM0otrqqMetJZU6 +7tNTkv77cEW/prN/RiJ/IHFz4t+IbgOs0UbjHZ5e899u0fQex1SM1DocIkkc5fJ+z SGJU6N4B+Pfkg== Original-Received: from alfajor (unknown [216.154.3.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6D8401203E4; Fri, 1 May 2020 14:18:46 -0400 (EDT) In-Reply-To: <87zhary243.fsf@gmx.de> (Michael Albinus's message of "Fri, 01 May 2020 19:52:12 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/01 11:55:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248329 Archived-At: >> - ";; -*- 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