From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Image-conversion shims Date: Mon, 07 Oct 2019 21:48:36 +0300 Organization: LINKOV.NET Message-ID: <87k19gwfwb.fsf@mail.linkov.net> 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> <87muedrg7d.fsf@mail.linkov.net> <878spxe3hb.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="147051"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 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 Mon Oct 07 21:02:51 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 1iHYHT-000c7u-25 for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2019 21:02:51 +0200 Original-Received: from localhost ([::1]:49044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHYHQ-0008CF-Uy for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2019 15:02:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55156) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHYHC-00089A-Nj for emacs-devel@gnu.org; Mon, 07 Oct 2019 15:02:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHYHB-0006lQ-C9 for emacs-devel@gnu.org; Mon, 07 Oct 2019 15:02:34 -0400 Original-Received: from brown.elm.relay.mailchannels.net ([23.83.212.23]:2172) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iHYH8-0006jI-Dm; Mon, 07 Oct 2019 15:02:30 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 44AC3342252; Mon, 7 Oct 2019 19:02:28 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com (100-96-14-192.trex.outbound.svc.cluster.local [100.96.14.192]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6BF39341FE4; Mon, 7 Oct 2019 19:02:27 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.3); Mon, 07 Oct 2019 19:02:27 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Absorbed-Cure: 57eb4a1c6d5b3a8d_1570474947695_2987850325 X-MC-Loop-Signature: 1570474947695:4289819715 X-MC-Ingress-Time: 1570474947694 Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTP id 0F23081C66; Mon, 7 Oct 2019 12:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=ulDqtGYfohmLtN3tI2lgKSyjsR0=; b= dep6G3ht1smHn1/uoGsvEAT7HQ+A4OCXu1wd3LHC5k3Dq6OC2+S7y6ngaIt8KW5L lxDoepe/HmQhJ/U77YjhRplQPNkhuwmK0nYsNCQm6BDY1VFnOzVwpqn2QcxYcU12 hZ4nV9uqARp8wLUSNF7FPtB7fDRMXEK580cwMsuJGxY= Original-Received: from mail.jurta.org (m91-129-99-99.cust.tele2.ee [91.129.99.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTPSA id E852381C63; Mon, 7 Oct 2019 12:02:21 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a42 In-Reply-To: <878spxe3hb.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 07 Oct 2019 03:41:52 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrheejgdduvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdelledrleelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleelrdelledprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehlrghrshhisehgnhhushdrohhrghenucevlhhushhtvghrufhiiigvpedv X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.212.23 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:240718 Archived-At: >> We already have a working solution with imagemagick-register-types, >> imagemagick-types-inhibit, imagemagick-enabled-types, and all related code. >> Customization should be no different when images are handled via a process >> instead of using a linked library. > > It's quite different -- for one, using the external library is off by > default, but using ImageMagick is on by default (if you have an Emacs > compiled with the support). > > But that's pretty much irrelevant for the discussion of > `auto-mode-alist' -- an ImageMagick-enabled Emacs won't use `image-mode' > for exotic image formats by default (you end up in `fundamental-mode' if > you visit a .webp file). The user has to put that into > `auto-mode-alist' themselves. After customizing imagemagick-enabled-types to t, it registers all image types; image-converter could do the same. This is a good trade-off to not register all exotic formats in auto-mode-alist by default, but still easy to customize to stuff everything to auto-mode-alist when needed.