From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Image-conversion shims Date: Tue, 08 Oct 2019 18:06:56 +0200 Message-ID: <87h84j1asf.fsf@gnus.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> <87muedrg7d.fsf@mail.linkov.net> <878spxe3hb.fsf@gnus.org> <87k19gwfwb.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="183403"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 08 18:11:34 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 1iHs5G-000lUu-Cc for ged-emacs-devel@m.gmane.org; Tue, 08 Oct 2019 18:11:34 +0200 Original-Received: from localhost ([::1]:58152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHs5B-0006Hc-Up for ged-emacs-devel@m.gmane.org; Tue, 08 Oct 2019 12:11:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38038) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHs0u-0002za-1D for emacs-devel@gnu.org; Tue, 08 Oct 2019 12:07:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHs0s-0002HD-Si for emacs-devel@gnu.org; Tue, 08 Oct 2019 12:07:03 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:33328) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iHs0s-0002G7-Lm; Tue, 08 Oct 2019 12:07:02 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHs0m-00073s-RI; Tue, 08 Oct 2019 18:06:59 +0200 In-Reply-To: <87k19gwfwb.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 07 Oct 2019 21:48:36 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 80.91.231.51 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:240751 Archived-At: Juri Linkov writes: > 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. Ah, I see. Yes, it has a :set (lambda (symbol value) (set-default symbol value) (imagemagick-register-types)) and we could basically do the same for `image-use-external-converter'. The only wrinkle is that it would then call the --probe function typically at Emacs startup (because that's when ~/.emacs is loaded and `custom-set-variables' is run). But... the impact of that would be pretty small ("gm convert -list format" is very fast), and would only happen for those who have opted in. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no