From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Image-conversion shims Date: Tue, 01 Oct 2019 15:36:41 +0300 Message-ID: <83o8z0abhi.fsf@gnu.org> References: <87v9tctcca.fsf@gnus.org> <87impct2xf.fsf@gnus.org> <83zhinfufb.fsf@gnu.org> <87ftkfnx7a.fsf@gnus.org> <83eezzfh8c.fsf@gnu.org> <8736gea0do.fsf@gnus.org> <83blv2e00m.fsf@gnu.org> <874l0tew98.fsf@gnus.org> <8336gddgtf.fsf@gnu.org> <871rvwacv4.fsf@gnus.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="76044"; mail-complaints-to="usenet@blaine.gmane.org" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 01 14:37:09 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 1iFHOu-000JdX-9y for ged-emacs-devel@m.gmane.org; Tue, 01 Oct 2019 14:37:08 +0200 Original-Received: from localhost ([::1]:41448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFHOs-0006QB-Sb for ged-emacs-devel@m.gmane.org; Tue, 01 Oct 2019 08:37:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45639) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFHOX-0006Q3-6a for emacs-devel@gnu.org; Tue, 01 Oct 2019 08:36:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iFHOW-0002iX-UJ; Tue, 01 Oct 2019 08:36:44 -0400 Original-Received: from [176.228.60.248] (port=4319 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iFHOT-0006US-8F; Tue, 01 Oct 2019 08:36:42 -0400 In-reply-to: <871rvwacv4.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 01 Oct 2019 14:06:55 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:240439 Archived-At: > From: Lars Ingebrigtsen > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Tue, 01 Oct 2019 14:06:55 +0200 > > > I thought when image-mode is invoked, the external converter is called > > automagically, no? > > The user may not have any of the required external converters installed. In which case they will get an error message, as in the case when they try visiting a PNG image without libpng compiled in. > I'm concerned about three things: 1) Long-time maintenance of all > these auto-mode-alist mapping I don't think this is a problem, we maintain auto-mode-alist all the time. > 2) the less-than ideal user experience of > being presented with image-mode and an error instead of a > fundamental-mode buffer as today Why would a user want Fundamental mode for an image? > 3) possibly stomping on a user's own addition to auto-mode-alist (if > the user adds mapping to the end of the alist). Wouldn't user customizations override the default value? I think they would, and then this is not a problem. > Because the list of formats covered by these converters is huge, and > putting all of these into the default auto-mode-alist would be a > problem. Some of the formats are already supported ("svg", "png", "xpm", etc.), so they shouldn't be added again; others seem inappropriate or irrelevant ("http", "file", "ftp", etc.). As for the length of the list, I don't think we should worry: the default auto-mode-alist has 188 elements in Emacs 27, so a couple dozen more cannot do much harm, I think.