From unknown Sun Jun 22 08:10:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33126: 26.1; xpm2 broken in MacOSX Resent-From: Devon Sean McCullough Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Oct 2018 14:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 33126@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154030338729522 (code B ref -1); Tue, 23 Oct 2018 14:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2018 14:03:07 +0000 Received: from localhost ([127.0.0.1]:38353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gExH0-0007g6-El for submit@debbugs.gnu.org; Tue, 23 Oct 2018 10:03:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gExGw-0007fS-7t for submit@debbugs.gnu.org; Tue, 23 Oct 2018 10:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gExGh-00031Z-5Q for submit@debbugs.gnu.org; Tue, 23 Oct 2018 10:02:57 -0400 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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37039) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gExGg-00031M-W5 for submit@debbugs.gnu.org; Tue, 23 Oct 2018 10:02:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gExGb-0004ji-3D for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 10:02:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gExGX-0002vs-90 for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 10:02:40 -0400 Received: from gateway32.websitewelcome.com ([192.185.145.122]:28714) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gExGR-0002jb-Sv for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 10:02:33 -0400 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway32.websitewelcome.com (Postfix) with ESMTP id B99F215663 for ; Tue, 23 Oct 2018 09:02:11 -0500 (CDT) Received: from leaf.websitewelcome.com ([192.185.82.99]) by cmsmtp with SMTP id ExG7g3SaeRPojExG7gIuf5; Tue, 23 Oct 2018 09:02:11 -0500 X-Authority-Reason: nr=8 Received: from 1-36-60-235.static.netvigator.com ([1.36.60.235]:58870 helo=[192.168.8.2]) by leaf.websitewelcome.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1gExG6-004Ezo-Ka for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 09:02:11 -0500 From: Devon Sean McCullough Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: Date: Tue, 23 Oct 2018 22:02:06 +0800 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - leaf.websitewelcome.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jovi.net X-BWhitelist: no X-Source-IP: 1.36.60.235 X-Source-L: No X-Exim-ID: 1gExG6-004Ezo-Ka X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 1-36-60-235.static.netvigator.com ([192.168.8.2]) [1.36.60.235]:58870 X-Source-Auth: devon2011@jovi.net X-Email-Count: 1 X-Source-Cap: am92aW5ldDtkZXZvbjtsZWFmLndlYnNpdGV3ZWxjb21lLmNvbQ== X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -6.0 (------) ; This code inserts four images ; 1 - a correct checkerboard ; 2 - an incorrect blank image of the wrong size ; 3 - a correct "blarg" ; 4 - a correct checkerboard ; but the middle two images should look identical. (defvar chex (create-image "/* XPM */ static char * chex_xpm[] =3D { \"32 32 2 1\", \"* c #ffff00\", \". c #00ff00\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", };" 'xpm t) "32x32 pixel yellow and green checker board.") (defvar xpm2 (create-image "! XPM2 16 7 2 1 * c #000000 . c #ffffff **..*........... *.*.*........... **..*..**.**..** *.*.*.*.*.*..*.* **..*..**.*...** ...............* .............**." 'xpm t) "The xpm2 example at = https://en.wikipedia.org/wiki/X_PixMap#Comparison_with_other_formats") (defvar xpm3 (create-image "/* XPM */ static char * blarg_xpm[] =3D { \"16 7 2 1\", \"* c #000000\", \". c #ffffff\", \"**..*...........\", \"*.*.*...........\", \"**..*..**.**..**\", \"*.*.*.*.*.*..*.*\", \"**..*..**.*...**\", \"...............*\", \".............**.\" };" 'xpm t) "The xpm3 example at = https://en.wikipedia.org/wiki/X_PixMap#Comparison_with_other_formats") (progn (insert "\n") (insert-image chex) (insert "\n") (insert-image xpm2) (insert "\n") (insert-image xpm3) (insert "\n") (insert-image chex)) In GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 = Version 10.10.5 (Build 14F2511)) of 2018-05-31 built on builder10-10.porkrind.org Windowing system distributor 'Apple', version 10.3.1404 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: 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 tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 204288 9229) (symbols 48 20206 1) (miscs 40 70 171) (strings 32 28845 1721) (string-bytes 1 764502) (vectors 16 35070) (vector-slots 8 718022 13590) (floats 8 48 72) (intervals 56 205 0) (buffers 992 12)) From unknown Sun Jun 22 08:10:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33126: 26.1; xpm2 broken in MacOSX Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Oct 2018 11:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Devon Sean McCullough Cc: 33126@debbugs.gnu.org Received: via spool by 33126-submit@debbugs.gnu.org id=B33126.154037986816307 (code B ref 33126); Wed, 24 Oct 2018 11:18:02 +0000 Received: (at 33126) by debbugs.gnu.org; 24 Oct 2018 11:17:48 +0000 Received: from localhost ([127.0.0.1]:39125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFHAZ-0004Ex-OE for submit@debbugs.gnu.org; Wed, 24 Oct 2018 07:17:47 -0400 Received: from mail-wm1-f48.google.com ([209.85.128.48]:50305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFHAX-0004Ek-Er for 33126@debbugs.gnu.org; Wed, 24 Oct 2018 07:17:46 -0400 Received: by mail-wm1-f48.google.com with SMTP id i8-v6so4951855wmg.0 for <33126@debbugs.gnu.org>; Wed, 24 Oct 2018 04:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=0Wls94q45z3TouVFEhHf8OC8ogFZDzaHh36g/XC91oA=; b=nJUB5aXD04HNw0DYLdWnmgXiWC8syjd5sFBWzHK5KP/YwNSdyRjvc5EO34SovAUA6O Y0BeCXh5VrNRqOGBMEo/pJd+kaURsXEdysaubp4FmXkxR3G8DpcCz/P8kn/wmmXJMx4g jK0f8DkNvNR9U5Gb22fuuO9BcIn2I2uyxyHdgZQgaShP8f9wUM9Yyf7uaVOMn/HXYB8R ETzjRCFYEEsQ2Z4tQqocDK1Q6OW4wXVAVWMyPHgbBwQrtpufHX7BOp8T/tQ+ppckSHEH hYhm4cdIIiOcBP7vMtZ0jtw+ICfaz/zOVSn0lcOND94OgMvAxZZzS9hSy/06dif/P+5U yDOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=0Wls94q45z3TouVFEhHf8OC8ogFZDzaHh36g/XC91oA=; b=re5fnSqVTFaK/GFTbXYzan5uqccbm8O/19LUABgTE3432FXxOWzVUt1riNQyiOfDbL ppP7xESP2BeM5kYa7ZGVUEgGjAAuMfDSSsD9JzlPLNB43Jtb26Fkq/Xk6kWbB1nHZ8Pm eR3qZpbDDz4iR1V2d2djInHFDuE4s2OsYXgiduUv4rPfGKXJWa3UdJuIqcXrMw6jFOpj OgxEgUQpPcanZDRfGIJV6FTZQzIQdvpR1tGc/4Y0529NIRNHia79Req1XzfTb3sfK1VE 3aXT62f9eGQCNJd+3XMKqiQ3JViNFwzJMlTQ1YnYciE09qWlR07r5ig47lt22/XXHO83 TrYg== X-Gm-Message-State: AGRZ1gKaViG3n+QwiaczAR4B725+9dIUqT0Xe5E550bRgUNKb7krJfiF 9HAyuB2XoDiMlhrIupT/hGz/4mBG X-Google-Smtp-Source: AJdET5cyqbT8Cv051hFGjwSqe6bVYVOoufITba+5foUZD6QbsJN6KY8YIkVsopg4KzvwKZEgHVRryQ== X-Received: by 2002:a1c:88cd:: with SMTP id k196-v6mr2146055wmd.17.1540379859474; Wed, 24 Oct 2018 04:17:39 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a9a7-73e3-89ce-d96b.holly.idiocy.org. [2001:8b0:3f8:8129:a9a7:73e3:89ce:d96b]) by smtp.gmail.com with ESMTPSA id a13-v6sm2288080wrs.73.2018.10.24.04.17.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Oct 2018 04:17:38 -0700 (PDT) Date: Wed, 24 Oct 2018 12:17:36 +0100 From: Alan Third Message-ID: <20181024111736.GC40431@breton.holly.idiocy.org> References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: 0.5 (/) 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.5 (/) --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Tue, Oct 23, 2018 at 10:02:06PM +0800, Devon Sean McCullough wrote: > ; This code inserts four images > ; 1 - a correct checkerboard > ; 2 - an incorrect blank image of the wrong size > ; 3 - a correct "blarg" > ; 4 - a correct checkerboard > ; but the middle two images should look identical. Confirmed. I found this in image.c: /* XPM support functions for NS where libxpm is not available. Only XPM version 3 (without any extensions) is supported. */ I suppose to get xpm2 support you’ll have to find a version of libxpm somewhere. There is an error logged in *Messages*, perhaps it should specify XPM3 per the attached patch. -- Alan Third --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Improve-XPM-load-failure-message-bug-33126.patch" >From 9d9b85529bbd560305e4bcc3823aad23e393ee74 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Wed, 24 Oct 2018 12:15:16 +0100 Subject: [PATCH] Improve XPM load failure message (bug#33126) * src/image.c (xpm_load_image): Only XPM3 is supported, so make that explicit. --- src/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index 767979e63b..a6b2d9060b 100644 --- a/src/image.c +++ b/src/image.c @@ -4308,7 +4308,7 @@ xpm_load_image (struct frame *f, return 1; failure: - image_error ("Invalid XPM file (%s)", img->spec); + image_error ("Invalid XPM3 file (%s)", img->spec); x_destroy_x_image (ximg); x_destroy_x_image (mask_img); x_clear_image (f, img); -- 2.18.0 --6c2NcOVqGQ03X4Wi-- From unknown Sun Jun 22 08:10:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33126: 26.1; xpm2 broken in MacOSX Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Oct 2018 15:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third Cc: Emacs-Hacker2018@jovi.net, 33126@debbugs.gnu.org Received: via spool by 33126-submit@debbugs.gnu.org id=B33126.154039359714733 (code B ref 33126); Wed, 24 Oct 2018 15:07:01 +0000 Received: (at 33126) by debbugs.gnu.org; 24 Oct 2018 15:06:37 +0000 Received: from localhost ([127.0.0.1]:40393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFKk0-0003pY-R4 for submit@debbugs.gnu.org; Wed, 24 Oct 2018 11:06:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFKjz-0003pL-9Q for 33126@debbugs.gnu.org; Wed, 24 Oct 2018 11:06:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFKjq-0002my-7S for 33126@debbugs.gnu.org; Wed, 24 Oct 2018 11:06:30 -0400 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 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFKjq-0002ms-2e; Wed, 24 Oct 2018 11:06:26 -0400 Received: from [176.228.60.248] (port=1262 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gFKjg-0002zS-5d; Wed, 24 Oct 2018 11:06:24 -0400 Date: Wed, 24 Oct 2018 18:06:13 +0300 Message-Id: <83efcfs7tm.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <20181024111736.GC40431@breton.holly.idiocy.org> (message from Alan Third on Wed, 24 Oct 2018 12:17:36 +0100) References: <20181024111736.GC40431@breton.holly.idiocy.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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-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: -6.0 (------) > Date: Wed, 24 Oct 2018 12:17:36 +0100 > From: Alan Third > Cc: 33126@debbugs.gnu.org > > Confirmed. I found this in image.c: > > /* XPM support functions for NS where libxpm is not available. > Only XPM version 3 (without any extensions) is supported. */ > > I suppose to get xpm2 support you’ll have to find a version of libxpm > somewhere. > > There is an error logged in *Messages*, perhaps it should specify XPM3 > per the attached patch. Yes. In addition, I'd add an entry about this in PROBLEMS. Thanks. From unknown Sun Jun 22 08:10:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33126: 26.1; xpm2 broken in MacOSX Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2018 10:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Emacs-Hacker2018@jovi.net, 33126@debbugs.gnu.org Received: via spool by 33126-submit@debbugs.gnu.org id=B33126.154046190616297 (code B ref 33126); Thu, 25 Oct 2018 10:06:01 +0000 Received: (at 33126) by debbugs.gnu.org; 25 Oct 2018 10:05:06 +0000 Received: from localhost ([127.0.0.1]:41220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFcVl-0004Em-9e for submit@debbugs.gnu.org; Thu, 25 Oct 2018 06:05:05 -0400 Received: from mail-wm1-f50.google.com ([209.85.128.50]:35628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFcVi-0004EB-CC for 33126@debbugs.gnu.org; Thu, 25 Oct 2018 06:05:02 -0400 Received: by mail-wm1-f50.google.com with SMTP id w186-v6so886513wmf.0 for <33126@debbugs.gnu.org>; Thu, 25 Oct 2018 03:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=nLO9EcrWi8eyDJxw90+7BTGWG4iwWJpWjeTFBBXh8Ic=; b=nwkABoh1D+GrrKeJ/mn+soJj/zVfGNMQ87Yl8GQWaTD6jmROb4dpMZZ87gTnCGCSf4 ZZwXC8qNfD9AhQCkBK4mFlHHY/kj1qL5tFaDTj1clpzq0by8Tk5MbyhZ7HfpqYP4HFG1 nHV5dItJ5EsY4jxIsQ0nE82vle5psP8nlSb5rQX9A5c1VhYeki5l6IZ9E2V2PVnJlnHn oaP3vGWLvifhi1AxBOBq1iikEPBAhwf9v9v9WPSQl/JFHfPJIPo2h3/vGdy5O7KQTYFK bt+HNllOKG8cAwBCzwFpLbZA3u+T3E2IQSuw550MQ/y/+ArpDgf7XDWavCuaJxzKmVvZ /UcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=nLO9EcrWi8eyDJxw90+7BTGWG4iwWJpWjeTFBBXh8Ic=; b=p/5uryZruyGYZ3fKZIRbMSB3d3bDtg/Giy7Ape06ILuPeAINeopsULnGnSqlHOtq4x 27+Q1Vbp4iX4IRgplEr/tQlrqDFmlJImLh2GEoQpaIDWR+ZQDLrI0SIfIeZikLhKqtOk X/Tp0u+1A4bTuX0hdxm57jbzGeEypbEb3f2zPeOI8VMvIM2SSBbEwkTxu34l3iKei4dB /ofTnAUvUYl2VaY/YMTNtGoxAxAZTOGqmBI4v/cI6Y3UNlmqkthc2Q+uCnmyGLhVlHTe eVd+AHzRIrtm4PCSuolru/nIH8C0w/flC8HeyNsUT2oxzoiYm3KgWcvR15ry2I3El2Fg pJ7Q== X-Gm-Message-State: AGRZ1gJrbl3Jfr8yk9vz7w5iPdgCYwX48ciF/uJSpyNlwTJnC7lhTzQY uRry+CIjXpvZTQGO9ME19aE= X-Google-Smtp-Source: AJdET5etO+qek2ZOy3Y0L9F5dbZZt8GYNviNF9TXff5ng+NXr9iX3KNa4NXWBSaRjf23RUecTD30iQ== X-Received: by 2002:a1c:540d:: with SMTP id i13-v6mr1176758wmb.149.1540461896049; Thu, 25 Oct 2018 03:04:56 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a9a7-73e3-89ce-d96b.holly.idiocy.org. [2001:8b0:3f8:8129:a9a7:73e3:89ce:d96b]) by smtp.gmail.com with ESMTPSA id l67-v6sm1996888wma.20.2018.10.25.03.04.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 03:04:54 -0700 (PDT) Date: Thu, 25 Oct 2018 11:04:52 +0100 From: Alan Third Message-ID: <20181025100452.GA45995@breton.holly.idiocy.org> References: <20181024111736.GC40431@breton.holly.idiocy.org> <83efcfs7tm.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <83efcfs7tm.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: 0.5 (/) 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.5 (/) --T4sUOijqQbZv57TR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Oct 24, 2018 at 06:06:13PM +0300, Eli Zaretskii wrote: > > Date: Wed, 24 Oct 2018 12:17:36 +0100 > > From: Alan Third > > Cc: 33126@debbugs.gnu.org > > > > Confirmed. I found this in image.c: > > > > /* XPM support functions for NS where libxpm is not available. > > Only XPM version 3 (without any extensions) is supported. */ > > > > I suppose to get xpm2 support you’ll have to find a version of libxpm > > somewhere. > > > > There is an error logged in *Messages*, perhaps it should specify XPM3 > > per the attached patch. > > Yes. In addition, I'd add an entry about this in PROBLEMS. Done. I created a subsection for macOS, although I’m not sure if this is actually a macOS specific issue, or general to systems lacking X11 libraries (MS Windows?). -- Alan Third --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Improve-XPM-load-failure-message-bug-33126.patch" >From d0ecdda6b173d125547bd2efca347279c70f6eda Mon Sep 17 00:00:00 2001 From: Alan Third Date: Wed, 24 Oct 2018 12:15:16 +0100 Subject: [PATCH] Improve XPM load failure message (bug#33126) * src/image.c (xpm_load_image): Only XPM3 is supported, so make that explicit. --- etc/PROBLEMS | 7 +++++++ src/image.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/etc/PROBLEMS b/etc/PROBLEMS index 7dfafe04de..45370512ca 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS @@ -2616,6 +2616,13 @@ please call support for your X-server and see if you can get a fix. If you do, please send it to bug-gnu-emacs@gnu.org so we can list it here. +* Runtime problems specific to macOS + +** macOS doesn't come with libxmp, so only XPM3 is supported. + +Libxpm is available for macOS as part of the XQuartz project. + + * Build-time problems ** Configuration diff --git a/src/image.c b/src/image.c index 767979e63b..a6b2d9060b 100644 --- a/src/image.c +++ b/src/image.c @@ -4308,7 +4308,7 @@ xpm_load_image (struct frame *f, return 1; failure: - image_error ("Invalid XPM file (%s)", img->spec); + image_error ("Invalid XPM3 file (%s)", img->spec); x_destroy_x_image (ximg); x_destroy_x_image (mask_img); x_clear_image (f, img); -- 2.18.0 --T4sUOijqQbZv57TR-- From unknown Sun Jun 22 08:10:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33126: 26.1; xpm2 broken in MacOSX Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2018 13:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third Cc: Emacs-Hacker2018@jovi.net, 33126@debbugs.gnu.org Received: via spool by 33126-submit@debbugs.gnu.org id=B33126.15404736419438 (code B ref 33126); Thu, 25 Oct 2018 13:21:01 +0000 Received: (at 33126) by debbugs.gnu.org; 25 Oct 2018 13:20:41 +0000 Received: from localhost ([127.0.0.1]:41265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFfZ3-0002SA-0J for submit@debbugs.gnu.org; Thu, 25 Oct 2018 09:20:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFfZ1-0002Ry-Vl for 33126@debbugs.gnu.org; Thu, 25 Oct 2018 09:20:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFfYr-00077S-84 for 33126@debbugs.gnu.org; Thu, 25 Oct 2018 09:20:34 -0400 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 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFfYp-00074n-51; Thu, 25 Oct 2018 09:20:28 -0400 Received: from [176.228.60.248] (port=4458 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gFfYn-0007Ab-9M; Thu, 25 Oct 2018 09:20:25 -0400 Date: Thu, 25 Oct 2018 16:20:23 +0300 Message-Id: <83tvlaqi20.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <20181025100452.GA45995@breton.holly.idiocy.org> (message from Alan Third on Thu, 25 Oct 2018 11:04:52 +0100) References: <20181024111736.GC40431@breton.holly.idiocy.org> <83efcfs7tm.fsf@gnu.org> <20181025100452.GA45995@breton.holly.idiocy.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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-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: -6.0 (------) > Date: Thu, 25 Oct 2018 11:04:52 +0100 > From: Alan Third > Cc: Emacs-Hacker2018@jovi.net, 33126@debbugs.gnu.org > > Done. I created a subsection for macOS, although I’m not sure if this > is actually a macOS specific issue, or general to systems lacking X11 > libraries (MS Windows?). The MS Windows build of Emacs uses a hacked version of the X11 libxpm library, so this problem doesn't exist there. > +* Runtime problems specific to macOS > + > +** macOS doesn't come with libxmp, so only XPM3 is supported. ^^^^^^ A typo. From unknown Sun Jun 22 08:10:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Devon Sean McCullough Subject: bug#33126: closed (Re: bug#33126: 26.1; xpm2 broken in MacOSX) Message-ID: References: <20181025151508.GB45995@breton.holly.idiocy.org> X-Gnu-PR-Message: they-closed 33126 X-Gnu-PR-Package: emacs Reply-To: 33126@debbugs.gnu.org Date: Thu, 25 Oct 2018 15:16:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1540480562-24276-1" This is a multi-part message in MIME format... ------------=_1540480562-24276-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #33126: 26.1; xpm2 broken in MacOSX which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 33126@debbugs.gnu.org. --=20 33126: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33126 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1540480562-24276-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 33126-done) by debbugs.gnu.org; 25 Oct 2018 15:15:21 +0000 Received: from localhost ([127.0.0.1]:42547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFhM1-0005j0-9j for submit@debbugs.gnu.org; Thu, 25 Oct 2018 11:15:21 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:39495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFhLy-0005cL-KA for 33126-done@debbugs.gnu.org; Thu, 25 Oct 2018 11:15:19 -0400 Received: by mail-wr1-f53.google.com with SMTP id r10-v6so8837189wrv.6 for <33126-done@debbugs.gnu.org>; Thu, 25 Oct 2018 08:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=y3ZZdm7T/EH9qjBkd/23ntocIUKOq8HlM3fajvihU7A=; b=oJ2/p6fSPmokNIMcYkO1+0ZVXD5b3l5DW1A4jbz1fbVKUmS3kbBNW9bB5LFWRIfdXp 5KzAtjc4i/QKHU12L/Rs3lBw8Acg1BFf2p1TcVuonX5airRUPx6LBnxB0x2lmnuJ653B Sc8+cmxWr/Uvfzz1vXp6FbJhOKQ1kPJSqeHUxi40Ubj1tDxWS3BNk4OWQ0FgVPaCIfkC dId4lM9Frwvd6UiWoLf4KmvC56MWOD8Ttsbreug5mY2FS3T9lW/MkdB1FMoPbnRmr9vD Y6rTgTBcceEhVmQjqIlz5UfEpeP0o+NvK9x545/A2+onjzKWHEnnPrnN+/+iLQfmTecq G9OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=y3ZZdm7T/EH9qjBkd/23ntocIUKOq8HlM3fajvihU7A=; b=cHB2zJKmUhs35PN0UNKKJu2Auww9sWyhmRoe4+94ijwpijkgZ9ghqeeBifcjIV59UI 7l3b8Qw7x1FPEG5RGMzpFTRJYqJ+k98is83y1zqf2V8n/d5LqeI0JZ4JtCA2OKrtBZLJ 9WnBCokxFYr6Rc3zUvLREs0ttqd7GtNcK/u/VogEO0AOmd7IydwL5uflfGuvC4MN84EX a378uJ9Sb6Yqj9qTn9Sp/uk94qmkj/a4U55ZqY/JqkYebe0wwX6wicGwFmSzmzNiFU0L JQvOOw78dediV7IR/RkIcQRlmjken2G7WK3xcM17bLxq3HMON21x0g1aQpMnrEBsarzM W0tQ== X-Gm-Message-State: AGRZ1gLdA7TqtQ41UruNmngTOc548EghTt2KnPOJnQHxtaXqWyBcL5sc zfr1BXjKpnMSPcp8iqLS49w= X-Google-Smtp-Source: AJdET5fmnddMYbOw1vxpgRIMYlgcOHjpkcbH/IcoqPoXO5/ylN9b82k/rvysdN8UtvetDGqAXgk3Ww== X-Received: by 2002:adf:d0c5:: with SMTP id z5-v6mr2625782wrh.166.1540480512612; Thu, 25 Oct 2018 08:15:12 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a9a7-73e3-89ce-d96b.holly.idiocy.org. [2001:8b0:3f8:8129:a9a7:73e3:89ce:d96b]) by smtp.gmail.com with ESMTPSA id x18-v6sm313701wme.42.2018.10.25.08.15.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 08:15:11 -0700 (PDT) Date: Thu, 25 Oct 2018 16:15:08 +0100 From: Alan Third To: Eli Zaretskii Subject: Re: bug#33126: 26.1; xpm2 broken in MacOSX Message-ID: <20181025151508.GB45995@breton.holly.idiocy.org> References: <20181024111736.GC40431@breton.holly.idiocy.org> <83efcfs7tm.fsf@gnu.org> <20181025100452.GA45995@breton.holly.idiocy.org> <83tvlaqi20.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <83tvlaqi20.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 33126-done Cc: Emacs-Hacker2018@jovi.net, 33126-done@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.5 (/) On Thu, Oct 25, 2018 at 04:20:23PM +0300, Eli Zaretskii wrote: > > Date: Thu, 25 Oct 2018 11:04:52 +0100 > > From: Alan Third > > Cc: Emacs-Hacker2018@jovi.net, 33126@debbugs.gnu.org > > > > Done. I created a subsection for macOS, although I’m not sure if this > > is actually a macOS specific issue, or general to systems lacking X11 > > libraries (MS Windows?). > > The MS Windows build of Emacs uses a hacked version of the X11 libxpm > library, so this problem doesn't exist there. > > > +* Runtime problems specific to macOS > > + > > +** macOS doesn't come with libxmp, so only XPM3 is supported. > ^^^^^^ > A typo. Sorted and pushed, thanks. -- Alan Third ------------=_1540480562-24276-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Oct 2018 14:03:07 +0000 Received: from localhost ([127.0.0.1]:38353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gExH0-0007g6-El for submit@debbugs.gnu.org; Tue, 23 Oct 2018 10:03:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gExGw-0007fS-7t for submit@debbugs.gnu.org; Tue, 23 Oct 2018 10:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gExGh-00031Z-5Q for submit@debbugs.gnu.org; Tue, 23 Oct 2018 10:02:57 -0400 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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37039) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gExGg-00031M-W5 for submit@debbugs.gnu.org; Tue, 23 Oct 2018 10:02:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gExGb-0004ji-3D for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 10:02:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gExGX-0002vs-90 for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 10:02:40 -0400 Received: from gateway32.websitewelcome.com ([192.185.145.122]:28714) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gExGR-0002jb-Sv for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 10:02:33 -0400 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway32.websitewelcome.com (Postfix) with ESMTP id B99F215663 for ; Tue, 23 Oct 2018 09:02:11 -0500 (CDT) Received: from leaf.websitewelcome.com ([192.185.82.99]) by cmsmtp with SMTP id ExG7g3SaeRPojExG7gIuf5; Tue, 23 Oct 2018 09:02:11 -0500 X-Authority-Reason: nr=8 Received: from 1-36-60-235.static.netvigator.com ([1.36.60.235]:58870 helo=[192.168.8.2]) by leaf.websitewelcome.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1gExG6-004Ezo-Ka for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 09:02:11 -0500 From: Devon Sean McCullough Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 26.1; xpm2 broken in MacOSX Message-Id: Date: Tue, 23 Oct 2018 22:02:06 +0800 To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - leaf.websitewelcome.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jovi.net X-BWhitelist: no X-Source-IP: 1.36.60.235 X-Source-L: No X-Exim-ID: 1gExG6-004Ezo-Ka X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 1-36-60-235.static.netvigator.com ([192.168.8.2]) [1.36.60.235]:58870 X-Source-Auth: devon2011@jovi.net X-Email-Count: 1 X-Source-Cap: am92aW5ldDtkZXZvbjtsZWFmLndlYnNpdGV3ZWxjb21lLmNvbQ== X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -6.0 (------) ; This code inserts four images ; 1 - a correct checkerboard ; 2 - an incorrect blank image of the wrong size ; 3 - a correct "blarg" ; 4 - a correct checkerboard ; but the middle two images should look identical. (defvar chex (create-image "/* XPM */ static char * chex_xpm[] =3D { \"32 32 2 1\", \"* c #ffff00\", \". c #00ff00\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"****....****....****....****....\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", \"....****....****....****....****\", };" 'xpm t) "32x32 pixel yellow and green checker board.") (defvar xpm2 (create-image "! XPM2 16 7 2 1 * c #000000 . c #ffffff **..*........... *.*.*........... **..*..**.**..** *.*.*.*.*.*..*.* **..*..**.*...** ...............* .............**." 'xpm t) "The xpm2 example at = https://en.wikipedia.org/wiki/X_PixMap#Comparison_with_other_formats") (defvar xpm3 (create-image "/* XPM */ static char * blarg_xpm[] =3D { \"16 7 2 1\", \"* c #000000\", \". c #ffffff\", \"**..*...........\", \"*.*.*...........\", \"**..*..**.**..**\", \"*.*.*.*.*.*..*.*\", \"**..*..**.*...**\", \"...............*\", \".............**.\" };" 'xpm t) "The xpm3 example at = https://en.wikipedia.org/wiki/X_PixMap#Comparison_with_other_formats") (progn (insert "\n") (insert-image chex) (insert "\n") (insert-image xpm2) (insert "\n") (insert-image xpm3) (insert "\n") (insert-image chex)) In GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 = Version 10.10.5 (Build 14F2511)) of 2018-05-31 built on builder10-10.porkrind.org Windowing system distributor 'Apple', version 10.3.1404 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: 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 tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 204288 9229) (symbols 48 20206 1) (miscs 40 70 171) (strings 32 28845 1721) (string-bytes 1 764502) (vectors 16 35070) (vector-slots 8 718022 13590) (floats 8 48 72) (intervals 56 205 0) (buffers 992 12)) ------------=_1540480562-24276-1--