From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Image-conversion shims Date: Tue, 01 Oct 2019 09:09:15 -0400 Message-ID: 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> <87wodo8y7t.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223983"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 01 15:10:54 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 1iFHvZ-000w3R-UW for ged-emacs-devel@m.gmane.org; Tue, 01 Oct 2019 15:10:54 +0200 Original-Received: from localhost ([::1]:41774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFHvY-0007c0-MJ for ged-emacs-devel@m.gmane.org; Tue, 01 Oct 2019 09:10:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52201) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFHuF-0007Uj-A7 for emacs-devel@gnu.org; Tue, 01 Oct 2019 09:09:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFHuD-0001ro-Tp for emacs-devel@gnu.org; Tue, 01 Oct 2019 09:09:30 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:38868) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iFHu7-0001jU-V9; Tue, 01 Oct 2019 09:09:24 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0E9E584E46; Tue, 1 Oct 2019 09:09:23 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8BA2880D4B; Tue, 1 Oct 2019 09:09:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1569935357; bh=xZei67UUVyx6mS4f/fd7D8fowBy5TizIkX2ChaUk+cg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Xtxc58RtdYDyFxtJElim5FTjiX/MS4PKbRbZy9n7hH+V+18hizO4AJmktqoT270Th Py0j8+NRga0A5o5ICtvG/jY7UE7b7i/Lvc/vW6f5FoahHq5YugKzJ5D2BEjv/jL/6n 2WxnXMe9H8o2TLVOPIGVf7yhSaaA0lw/IyHk1etEKXM0B2BRGc5NzgcF5PLbg3kTDy qMJv2vhBErU0izAfFZr5/UMse/Wipnk/KpTSRWUpUeXu9Ykp3NXYm7/iSoAPu26m5x I0FPIs920rJ0dK5nw2RrFMeQvX5B3J905od+9FPlQmmPx1qsI5Gu5XH49cc7k0cxzq cn+9WPwR+Q/Qg== Original-Received: from pastel (107-179-151-143.cpe.teksavvy.com [107.179.151.143]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 16CF11201A9; Tue, 1 Oct 2019 09:09:17 -0400 (EDT) In-Reply-To: <87wodo8y7t.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 01 Oct 2019 14:08:38 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240441 Archived-At: >>> I.e., we want ("*.webp" . image-mode) in auto-mode-alist, but we can't >>> put it there before we've called "gm convert -list format", >> Why? .webp is an image format, so it should be associated with >> image-mode, whether we can display it or not (it's not like the >> behavior would be much better if we don't and end up showing it in >> fundamental-mode). > For .webp I agree, but there's a bunch of formats that are really > obscure. I don't see it makes a difference, except when this obscure format can only be converted by some equally obscure command. Assuming a large fraction of Emacs users already have `convert`, gm`, or `ffmpeg` installed, your code already "enables" those obscure formats, even though the mere fact that those tools are installed doesn't indicate that they're likely to use any of those formats. > It would be nice if Emacs did the right thing if the user has > switched the external image thing on, but some of them might otherwise > be confusing. If they might be confusing when `convert` is not installed, they might also be confusing when `convert` is installed. Stefan