From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 05 16:12:22 2017 Received: (at submit) by debbugs.gnu.org; 5 Dec 2017 21:12:22 +0000 Received: from localhost ([127.0.0.1]:48155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMKVo-0003sG-Nz for submit@debbugs.gnu.org; Tue, 05 Dec 2017 16:12:22 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMKVm-0003s4-Rr for submit@debbugs.gnu.org; Tue, 05 Dec 2017 16:12:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMKVg-00073K-C9 for submit@debbugs.gnu.org; Tue, 05 Dec 2017 16:12:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34813) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eMKVg-00073G-7o for submit@debbugs.gnu.org; Tue, 05 Dec 2017 16:12:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMKVe-0003F5-KT for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2017 16:12:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMKVd-00072Y-52 for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2017 16:12:10 -0500 Received: from mail-yw0-x235.google.com ([2607:f8b0:4002:c05::235]:45202) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eMKVc-00072P-VX for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2017 16:12:09 -0500 Received: by mail-yw0-x235.google.com with SMTP id y187so720584ywd.12 for ; Tue, 05 Dec 2017 13:12:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=mNK2408Gj1Wjuu66vWhgY6QCeBO6oeC+uiNZ7xEM8g0=; b=bAU9Uyzf2EAg4c1US+SoxJR1dm9Q2EZ8BZlY+rF+/Ea47BCpCVIEs7TmogxBLIDf6E y8uQ37xJFKVbzK9jpVLGVyFPHreIXF9XBU4bHDyRhljctX/TisPbnDp8LRLF2O+Me7HI zg7QZq6dmLSdtEHklLfFfK/uwsoQdpf3/4Op4+wsmnQlDg3Xief8DMGqVm0Vw/4wT4RB fwR3XblLWZJajfL/hcuzzRjQ9Me08XQZ9FakWcac8/UPKuNApzDXp9qMDxhmsBoXGqD/ E1SvrkiAGbUAnFgjFzzriJbtJ65yFjpvJV2M+FadhQ48gHCKRMKxo9A4w/7dqn6FHdtk 3pXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=mNK2408Gj1Wjuu66vWhgY6QCeBO6oeC+uiNZ7xEM8g0=; b=aZgE10Cg881VsTWsghy1jt9Whs7Wz61H0YgI16sdhSrvLexP7Mm5y1jI7g0FeZohFp 7RzLsxFOdaja1CiBVGDCt0YqIBHqW/xZ5woowLXuZTUrouZdOQemZHVeOJQeJdwXGOgA vOxZFsKHWtCzJ3xhcNo83CyGLvwQ9sQgItWEltDj+ksVckpdH0Q+RZLrLMeqYdb9sflh aS6BttDCWFCssPgDCw4+KLx5Z5Jebn/ive9ibMWIJDnOYFuTIFee6R8SUiyHY0yMLLO+ p2vBsSkz8D7PwOkYxYrLA3dPAZE9iTd/JL4SiSEafikoF732SXrq1jXZkcoD1q4Zsz3e AyfA== X-Gm-Message-State: AJaThX57n42q3+hE0SfcpiBguCZ+jsl5ljAvWVRHe6Ul1BEj7/feIqn4 uYODStT2/rw2jzQqmeaZ8BE09KOxVgZhIUhglD8= X-Google-Smtp-Source: AGs4zMZZKUtzKx2W/CM2xfrjDd5QSiH3URdllcJ8rrXBbWZoMFTI1Jq4ax/hQ8Kx0Uct8mVSPuyMb3O/6a4eeS1gJMg= X-Received: by 10.129.79.67 with SMTP id d64mr13760895ywb.463.1512508327847; Tue, 05 Dec 2017 13:12:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.129.201 with HTTP; Tue, 5 Dec 2017 13:12:07 -0800 (PST) From: adam plaice Date: Tue, 5 Dec 2017 21:12:07 +0000 X-Google-Sender-Auth: euVNKD0J5MeOL_U7cO_Qtr3aY1M Message-ID: Subject: imagemagick-types-inhibit does not result in correct image backend (minor) To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) If emacs was compiled with both imagemagick and specific image type backend support (e.g. librsvg, libpng), then imagemagick-types-inhibit has no effect on the backend used for the given image types (e.g. svg, png). * To reproduce 1. With emacs -Q, evaluate: (setq imagemagick-types-inhibit t) (imagemagick-register-types) (Alternatively and equivalently, customize imagemagick-types-inhibit to t, or place the above two lines in init.el.) 2. Open a png file in emacs. For instance: wget https://upload.wikimedia.org/wikipedia/commons/d/d9/Test.png C-x C-f Test.png RET * Expected result The image is opened in image-mode, using the libpng backend (and (Image[png]) is displayed in the mode-line). * Actual result The image is opened in image-mode, using the imagemagick backend (and (Image[imagemagick]) is displayed in the mode-line), despite imagemagick-types-inhibit having been set to `t'. According to both the docstring of imagemagick-types-inhibit and the Texinfo manual ((elisp) ImageMagick Images), imagemagick-types-inhibit should prevent imagemagick from being used for the given image type (or overall for t). * Discussion and speculation This is obviously a very minor bug, since it's only a matter of the choice of backend and it only came up when investigating #29581, where it was interesting to determine the effect of different backends. I think that the issue is caused by these lines (in the definition of image-toggle-display-image in image-mode.el): (type (if (fboundp 'imagemagick-types) 'imagemagick (image-type file-or-data nil data-p))) https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/image-mode.el?h=emacs-26#n761 It seems that if imagemagick is available, then irrespective of the value of imagemagick-types-inhibit, the imagemagick backend will always be used. If alternative backends (libpng etc.) were not compiled in, imagemagick-types-inhibit set to `t' would have caused image-mode not to be present in the auto-mode-alist, meaning that image-mode would not be activated by default and imagemagick-types-inhibit would act as expected. However, when these other backends are compiled in, then they modify the auto-mode-alist, causing image-mode to be used for .png or .svg files, despite the fact that once image-mode is launched, the imagemagick backend will be used. I'm not sure what is the right solution in this case. The easiest would be to update the documentation to the current state of affairs. OTOH being able to easily set the image backend is occasionally nice to have. Thank you and best regards, Adam In GNU Emacs 26.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-12-05 built on adam Repository revision: 46d62b9f36f1ef771a077df4227ae6559fb32e84 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.3 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-modules --without-pop' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 94561 8308) (symbols 48 20332 1) (miscs 40 42 118) (strings 32 28247 1513) (string-bytes 1 744109) (vectors 16 13967) (vector-slots 8 491974 7546) (floats 8 50 67) (intervals 56 219 0) (buffers 992 12) (heap 1024 35241 1000)) From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 05 16:22:54 2017 Received: (at control) by debbugs.gnu.org; 5 Dec 2017 21:22:54 +0000 Received: from localhost ([127.0.0.1]:48164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMKg2-00047f-0t for submit@debbugs.gnu.org; Tue, 05 Dec 2017 16:22:54 -0500 Received: from mail-yw0-f176.google.com ([209.85.161.176]:40291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMKfz-00047T-MJ for control@debbugs.gnu.org; Tue, 05 Dec 2017 16:22:52 -0500 Received: by mail-yw0-f176.google.com with SMTP id g191so737986ywe.7 for ; Tue, 05 Dec 2017 13:22:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=mpg72ec5sr/YNqxCmYO8VHOH7XNOwaC7lPWvU6Abgrc=; b=g2hE+z5Qm4wmLXYy2dJaEDHtnNyVJWSNHOAX5wMj9bkn6UVcCCI/Z7qdRU22dqIjzr Gd/9fGYK0nn0Jpe2n1Jgp/SaBgfBJY6D31oFgBZ/o/05w3xKyaQFQhZgACPlliHDepWc jLRI/g3SbeoDZOBauwYourAy8vQnJ4gq1VusGl6rJW+v8dowuHhru3PcWj0THcwDi5kR ShS7vKDqvmZVyTosCPC0FRxm3WyHUjTVs3so7uikRsM1jT3ykOnT9YjHYH4y03JZbZgh VTfQNhVFv3cZYhtaftWHb2fec8adeZoql4+AaNY6+ZJwonrEnPuhOWFuy5DaRc+sANDf mINg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=mpg72ec5sr/YNqxCmYO8VHOH7XNOwaC7lPWvU6Abgrc=; b=mZAE3s37edwfmdC9cz7sUB9s/87+QBMvdOxnjwZ5yYENjK4ajW3UFhilF45/2KmEY/ Wqy7pbSb3lgePywflaZqTLS/kVsUhhaE6HixO78R4KpZ0k5i2lxzgDqIQnTWPIGNygpL 4vUHrzTKhoUUjZgRi8fNZy8Zu8shxdeQ8EIx3p4SvrzFkdZOK4bbceodxvk6UIKyKR0N d+6r8ht9oZNWP+rXVvGokrn0ID1R7oebNkHIGgk06/XhEfj5U+0+TxCA5OutlUfm4OQ4 GQnvsWOW3y3PNCOCxwctAeKwSd+/YQtd/iNjlCN4/uhoqf3wPoaJMRo6QdiGDVJWTHyI 80NA== X-Gm-Message-State: AKGB3mIhNBEixBeGIvbEc6hoiVNkXXzrznjndq5etsFfRuaNBT6NDlDW ni+cECDfmCf5HRC5yvit+G65R/m9x96hidIWzNs= X-Google-Smtp-Source: AGs4zMZelPMv21YqHTmVcAPSnckquWLQTi+eNL/QoiL+zHu8Yd2RK4Jg0su3GRSxrNLvhy1rQMBwYrds1rC4sTYD7uo= X-Received: by 10.129.105.196 with SMTP id e187mr3191426ywc.217.1512508965770; Tue, 05 Dec 2017 13:22:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.129.201 with HTTP; Tue, 5 Dec 2017 13:22:45 -0800 (PST) From: Adam Plaice Date: Tue, 5 Dec 2017 21:22:45 +0000 Message-ID: Subject: control message for bug #29584 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) found 29584 26.0.90 From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 06 13:26:05 2017 Received: (at 29584) by debbugs.gnu.org; 6 Dec 2017 18:26:05 +0000 Received: from localhost ([127.0.0.1]:49396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMeOS-0005kv-VA for submit@debbugs.gnu.org; Wed, 06 Dec 2017 13:26:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMeOQ-0005kS-Sx for 29584@debbugs.gnu.org; Wed, 06 Dec 2017 13:26:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMeOK-0005Jk-Rs for 29584@debbugs.gnu.org; Wed, 06 Dec 2017 13:25:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMeOJ-0005H8-6M; Wed, 06 Dec 2017 13:25:55 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1eMeOI-0000Lf-Pb; Wed, 06 Dec 2017 13:25:54 -0500 From: Glenn Morris To: adam plaice Subject: Re: bug#29584: imagemagick-types-inhibit does not result in correct image backend (minor) References: X-Spook: advisors doctrine industrial intelligence 9705 Samford X-Ran: uTS#AOgR"9nG&u(%X<_z2So!F9,h-+z_d7bPv0v=+PWF~k.eEUDA}A(U:Y7W32qSl#>,H. X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 06 Dec 2017 13:25:54 -0500 Message-ID: <588tefbtn1.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29584 Cc: 29584@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) adam plaice wrote: > I think that the issue is caused by these lines (in the definition of > image-toggle-display-image in image-mode.el): > > (type (if (fboundp 'imagemagick-types) > 'imagemagick > (image-type file-or-data nil data-p))) Yes, see: http://lists.gnu.org/archive/html/emacs-diffs/2014-08/msg00039.html http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00101.html This may be a kinda controversial change, since it now defaults to using imagemagick for images, if you have support for imagemagick. But this makes it possible to browse a typical directory-of-images-from-your-camera just by hitting `n' a lot, without a lot of futzing around, so I think it's a net win. Perhaps there should be an option to disable it if it annoys people. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 06 14:32:22 2017 Received: (at 29584) by debbugs.gnu.org; 6 Dec 2017 19:32:22 +0000 Received: from localhost ([127.0.0.1]:49469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMfQa-0002fL-H8 for submit@debbugs.gnu.org; Wed, 06 Dec 2017 14:32:22 -0500 Received: from mail-yb0-f173.google.com ([209.85.213.173]:36762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMfQY-0002aM-Mx for 29584@debbugs.gnu.org; Wed, 06 Dec 2017 14:32:19 -0500 Received: by mail-yb0-f173.google.com with SMTP id j7so2020045ybl.3 for <29584@debbugs.gnu.org>; Wed, 06 Dec 2017 11:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lRbxRgRwK48b4puZnteLFLmZVlX+KBjSdVzZSd9xhrs=; b=gvbqvO33sgWYgZrZi0g5DRf1aGfBywQyouY1wZaz7L/wWbwsAHnQiRBouePuWxMSSK gU2Xfiz/eL4HomjH67iRshX/YANzUtZCBdAPIP7G1hsggwQFq43Hmv11Opc9ocoOY5v8 ovz+X8AmbiN7zij1P3Qh4RtlGP/abbhJHpJwN7a7wUSMPADRTixWjdBruTFhV4POHH8k 5hONpOlKsn6Y/R5G9sD/2rS0ljlGnEY7zhGtx4jEcKUI5FYV9Mnf0NHtDEj4RKhljgNE p3xd4NH6CqhA1gC7SyQjChYQ/zOVdOz+mYG23ybyubcmXdLrZgS0FLUcaRPqTxGmx05U CBrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=lRbxRgRwK48b4puZnteLFLmZVlX+KBjSdVzZSd9xhrs=; b=jtV/9B3hhhamj5DGstrB7oewNBAa7QcsUsojO2BeXrpViYbDZ/vp1NSERhj6lS78gN wJtyfWTEVgc/KN1nYEmvcybBuyctz/XOfLrI8YFEPY2a4Dn7uKSNoBTNH2l0xE8GGfgV 4vQbeBCAW6laBm5bi/FZ/Cem02wKxQO09zj1aWie197rMgvRWX3D+hpfodid+8Gk1KMu R0T+sTmyttWx2BjR95lYZQK9Lh6xEOBs5CZVw4MiXP2piadfMMCYQjWuJc6KYA1Egk2S kmbujgbNz9pVIN7XqDAFXX0Ab9oKFv0f1j0yoCQTWeMmHwp+UW2hugcjszbt5qif80Uj YobQ== X-Gm-Message-State: AJaThX5V061uLfcAT3y2eG3unvwhqZCtCgUGbGweMajVw/YwBAR+GjSr P58VNtF8U6yZbXXZrQSPM9U6Qnrb2/yHPfVHKWU= X-Google-Smtp-Source: AGs4zMZr1RHbxjqpRj3q+py3vS+atYZs9c0eUyxxpR+YpNaf2QX4BfOEj6crI1XQynhhrI0JgEHNi/y6k/LTRectaao= X-Received: by 10.37.172.154 with SMTP id x26mr15729518ybi.22.1512588733151; Wed, 06 Dec 2017 11:32:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.129.201 with HTTP; Wed, 6 Dec 2017 11:32:12 -0800 (PST) In-Reply-To: <588tefbtn1.fsf@fencepost.gnu.org> References: <588tefbtn1.fsf@fencepost.gnu.org> From: Adam Plaice Date: Wed, 6 Dec 2017 19:32:12 +0000 Message-ID: Subject: Re: bug#29584: imagemagick-types-inhibit does not result in correct image backend (minor) To: Glenn Morris Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 29584 Cc: 29584@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Thanks for the clarification. As it's a deliberate change and to avoid over-complication that nobody usually needs (if one generally dislikes the imagemagick backend then one should use a version of emacs compiled without it, and in the very rare case when one does need to change the backend on the fly, one can just override image-toggle-display-image), leaving the code alone is probably the best option. However, I'd argue that the documentation should be updated =E2=80=94 the docstring of imagemagick-types-inhibit already contains extensive warnings " If you change this without using customize, you must call =E2=80=98imagemagick-register-types=E2=80=99 afterwards. If Emacs is compiled without ImageMagick support, this variable has no effect. " so another sentence to the effect of "If emacs is compiled with alternative image backends, in addition to ImageMagick support, this variable also has no effect." wouldn't be out place (and since there are already extensive warnings, creating an impression of completeness, the absence of an important warning =E2=80=94 having multiple= sets of backends is probably the most frequent situation on GNU/Linux =E2=80=94 would be confusing). From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 06 15:17:46 2017 Received: (at 29584) by debbugs.gnu.org; 6 Dec 2017 20:17:47 +0000 Received: from localhost ([127.0.0.1]:49573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMg8W-0005nR-Qg for submit@debbugs.gnu.org; Wed, 06 Dec 2017 15:17:46 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:40183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMg8U-0005nI-If for 29584@debbugs.gnu.org; Wed, 06 Dec 2017 15:17:43 -0500 Received: from cm-84.215.25.180.getinternet.no ([84.215.25.180] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eMg8M-0000Ts-Vd; Wed, 06 Dec 2017 21:17:36 +0100 From: Lars Ingebrigtsen To: Adam Plaice Subject: Re: bug#29584: imagemagick-types-inhibit does not result in correct image backend (minor) References: <588tefbtn1.fsf@fencepost.gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUoJB3s59xwaV9BPDQP Cwb///v9/Pj///+xqp4ZFQ/0bYOKAAACb0lEQVQ4jbWTsXLbMAyGcWaGcFTu4mqUwaHsxhKLtflq LnoA27OGKF0zJJql3KUcdY0Wvm1/ynWvabIWFnkSPgAEAZg+91kOh7vDsVtej3eH06nv6Ud/kcMh 74+H89ffAOvUP/bvQL+A/mPQ/2dQxk8fglbkX7Ck/mDegzIW63YU8fdvQTnaOJTGkX97+EMEiFFE vQUvZWSAZ1Hi++JPsCdCGDuUo3HerUYeLvqSNkWL343xpp685d/ZtwVt2rYoWuO5noN4b+9R4a4r OnopICNHcxUCEYldd12L9BGqQE4l1yGEuQkk23EoYQtwY20xujlkEibyxo8vQ0FbXAM5UQYpYW/E ySYOpFAKQXDompQa7I3eQZmB0KREwzbVIYXUkFYwVQ7mE5ZOkyOcgoCTqtzZQxM5lSaumuWoGSbk 2bDJ5pMR67JHo5tJGLUamdnp1Rj9qAEahN3GiMXw4fpVqhG3vwrKrYzlCA+21ijcnF7zRltGjMUD ocZ65Q2SrCbZtEOLIJEUjzz6Lysrkb2hr113OD0+GaacrYjDTUTYrG7xR8HzXchWpHckCs91KZsO Hh2Ke0ObktJi7s3P3JpifcxgjWF4nlJ69bX3viiHMt6if0V3zFNSKeZnanY/Y5YBAF1Ea/GBltRh /haRJ9sBAK1dAO7iQtjzWeKQWzssestX+/kCeIgXEKVK+7BHj0XweFuUeRIRuqpSUitmXPdMIl1n tTLImPZZdxZvMS3idO6ynncojVJqIZwBSoKWT2knuf95AuACoBMmIiV4OJe1S4GEvJvxpmlKADTp iRJGRzAeKeVxS5rCDjqtEsYUA/sLwphhIjIz/wEAAAAASUVORK5CYII= Date: Wed, 06 Dec 2017 21:17:34 +0100 In-Reply-To: (Adam Plaice's message of "Wed, 6 Dec 2017 19:32:12 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29584 Cc: Glenn Morris , 29584@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Adam Plaice writes: > As it's a deliberate change and to avoid over-complication that nobody > usually needs (if one generally dislikes the imagemagick backend then > one should use a version of emacs compiled without it, and in the very > rare case when one does need to change the backend on the fly, one can > just override image-toggle-display-image), leaving the code alone is > probably the best option. I think it probably wouldn't be very difficult to make image-mode respect that variable, and that would probably be the nicest fix here... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 14 09:37:27 2018 Received: (at 29584) by debbugs.gnu.org; 14 Apr 2018 13:37:27 +0000 Received: from localhost ([127.0.0.1]:51425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7LMp-00012p-RG for submit@debbugs.gnu.org; Sat, 14 Apr 2018 09:37:27 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:53469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7LMj-00012U-9u for 29584@debbugs.gnu.org; Sat, 14 Apr 2018 09:37:21 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f7LMd-0001Og-8i; Sat, 14 Apr 2018 15:37:15 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f7LMX-0004rb-G5; Sat, 14 Apr 2018 15:37:05 +0200 From: Lars Ingebrigtsen To: Adam Plaice Subject: Re: bug#29584: imagemagick-types-inhibit does not result in correct image backend (minor) References: <588tefbtn1.fsf@fencepost.gnu.org> Date: Sat, 14 Apr 2018 15:37:05 +0200 In-Reply-To: (Lars Ingebrigtsen's message of "Wed, 06 Dec 2017 21:17:34 +0100") Message-ID: <874lkdkiym.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29584 Cc: Glenn Morris , 29584@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Adam Plaice writes: > >> As it's a deliberate change and to avoid over-complication that nobody >> usually needs (if one generally dislikes the imagemagick backend then >> one should use a version of emacs compiled without it, and in the very >> rare case when one does need to change the backend on the fly, one can >> just override image-toggle-display-image), leaving the code alone is >> probably the best option. > > I think it probably wouldn't be very difficult to make image-mode > respect that variable, and that would probably be the nicest fix here... I've now done so in Emacs 27.1. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 14 09:37:18 2018 Received: (at control) by debbugs.gnu.org; 14 Apr 2018 13:37:18 +0000 Received: from localhost ([127.0.0.1]:51423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7LMk-00012W-GY for submit@debbugs.gnu.org; Sat, 14 Apr 2018 09:37:18 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:53466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7LMi-00012N-6I for control@debbugs.gnu.org; Sat, 14 Apr 2018 09:37:16 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f7LMf-0001SU-Jh for control@debbugs.gnu.org; Sat, 14 Apr 2018 15:37:15 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f7LMZ-0004re-Qb for control@debbugs.gnu.org; Sat, 14 Apr 2018 15:37:07 +0200 To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #29584 Message-Id: Date: Sat, 14 Apr 2018 15:37:07 +0200 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 29584 fixed close 29584 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 15 07:26:51 2018 Received: (at 29584) by debbugs.gnu.org; 15 Apr 2018 11:26:51 +0000 Received: from localhost ([127.0.0.1]:53087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7fo3-00039g-3G for submit@debbugs.gnu.org; Sun, 15 Apr 2018 07:26:51 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:42148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7fo1-00039S-HJ for 29584@debbugs.gnu.org; Sun, 15 Apr 2018 07:26:49 -0400 Received: by mail-lf0-f46.google.com with SMTP id q9-v6so18139753lfk.9 for <29584@debbugs.gnu.org>; Sun, 15 Apr 2018 04:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sQbYgZqXMWj09XYuHN5svEFsFVp+w/M/Gg88ufbhdlw=; b=IdEOO9l+sr90cQm29dS0lN1UtCZiR78448AhsurU25okKeZdRn1A4T6k1isAAeN1qQ 1kLGIsG/AF+Hfx6QabbuxrYpmf8fCQAB2Ytv5PpJX/Ftg0FASRt7FRM8X25r/dP3dv6k DDwklQqFtUdLyKy6i/ApwDYUpa8em8lKDuKK9JGEjqjJrRDY588azAAUQogiTL4MHQga YdmxdECyYWy6+NaCYsQn9Ep6t25NbEudd4k9ZZ3vGOEGe90G6oKusK+iIn/2pio95F9l ayEGdoXBI4VJpioVaG3DxDB5rHOvL2Om0KyN0LUcILkI+kVxrlrAR20tjU1ERLOa3N8X OU1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sQbYgZqXMWj09XYuHN5svEFsFVp+w/M/Gg88ufbhdlw=; b=to7lrpmt8/RksjHu2J3jcm+SanhBrO8iWA3h+zVzTmNkXwdKB+un91fJF6O4HJu9dF mma2KRw0QNP7jMH1HD3R1x11zasfAW8CLzK2dexBwjG+ykn4095e0iR9uzE02h/mix5u I1gXztuh809xRwFAqX0jVtcXjI6athGrEtfzFugG3hhYwFwHulU25RRJo06GF1KZTC29 AcIpwTxkIMuZy5pU/O7lxPfZyF0u0BPEpMyw3R3VrFNaV6DU6R/FYjRsjdVv3KMGz0lQ 0sZEutORgpHJtTuOUiZMb5w5oW/L3LzaG2ZK5zmq0fV1wA6NSh18AjeXbXqg3os13FOa 3KcQ== X-Gm-Message-State: ALQs6tCIJYNB7jLn+3bSormjBa+SXXD+2/6dCbBZrbEVoMRv4a/RxTdZ FLwnfPmlEekaD9RlaSUAFailrvDI5x8h+Y1orqc= X-Google-Smtp-Source: AIpwx4/OKKbGKjktRrkahj4xFzFP36CfYTRwNlDrK98sW959lFppMDmK4JieLZUxXsNxhuYefYuz6jLxo847VZYwM8I= X-Received: by 10.46.2.90 with SMTP id 87mr7414579ljc.46.1523791603654; Sun, 15 Apr 2018 04:26:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.129.130 with HTTP; Sun, 15 Apr 2018 04:26:43 -0700 (PDT) In-Reply-To: <874lkdkiym.fsf@mouse.gnus.org> References: <588tefbtn1.fsf@fencepost.gnu.org> <874lkdkiym.fsf@mouse.gnus.org> From: Adam Plaice Date: Sun, 15 Apr 2018 13:26:43 +0200 Message-ID: Subject: Re: bug#29584: imagemagick-types-inhibit does not result in correct image backend (minor) To: Lars Ingebrigtsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 29584 Cc: 29584@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Great! Thanks! From unknown Mon Aug 18 11:30:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 14 May 2018 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator