From unknown Fri Jun 20 07:09:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8640 <8640@debbugs.gnu.org> To: bug#8640 <8640@debbugs.gnu.org> Subject: Status: 24.0.50; no pbm support on cygwin Reply-To: bug#8640 <8640@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:11 +0000 retitle 8640 24.0.50; no pbm support on cygwin reassign 8640 emacs submitter 8640 Katsumi Yamaoka severity 8640 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun May 08 21:47:14 2011 Received: (at submit) by debbugs.gnu.org; 9 May 2011 01:47:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJFZ3-0006Oc-Ky for submit@debbugs.gnu.org; Sun, 08 May 2011 21:47:13 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJFYy-0006OM-7r for submit@debbugs.gnu.org; Sun, 08 May 2011 21:47:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJFYs-0007ja-Hl for submit@debbugs.gnu.org; Sun, 08 May 2011 21:47:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:44859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJFYs-0007jW-GH for submit@debbugs.gnu.org; Sun, 08 May 2011 21:47:02 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJFYr-0004yg-JK for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 21:47:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJFYq-0007if-Pn for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 21:47:01 -0400 Received: from washington.hostforweb.net ([66.225.201.13]:49353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJFYq-0007iD-N9 for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 21:47:00 -0400 Received: from localhost ([127.0.0.1]:47462) by washington.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1QJFYj-0007Ev-7R for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 20:46:53 -0500 Date: Mon, 09 May 2011 10:46:48 +0900 Message-ID: From: Katsumi Yamaoka To: bug-gnu-emacs@gnu.org Subject: 24.0.50; no pbm support on cygwin Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:8fNjmpjgna4FVaKK8R0ZbTfYMcI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: 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 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Hi, pbm image is not available in Emacs trunk built on cygwin at least after May 6: (image-type-available-p 'pbm) => nil Whereas png, jpeg, gif, xpm, etc. are all ok. I guess this is due to the recent changes in image.c. Any hint? Thanks. In GNU Emacs 24.0.50.1 (i686-pc-cygwin, X toolkit, Xaw3d scroll bars) of 2011-05-09 on localhost Windowing system distributor `The Cygwin/X Project', version 11.0.11000000 configured using `configure '--verbose' '--with-x-toolkit=lucid'' [...] From debbugs-submit-bounces@debbugs.gnu.org Mon May 09 06:55:41 2011 Received: (at 8640) by debbugs.gnu.org; 9 May 2011 10:55:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJO7o-0001mL-Vh for submit@debbugs.gnu.org; Mon, 09 May 2011 06:55:41 -0400 Received: from mail-qy0-f172.google.com ([209.85.216.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJO7m-0001m8-O9 for 8640@debbugs.gnu.org; Mon, 09 May 2011 06:55:39 -0400 Received: by qyk29 with SMTP id 29so837579qyk.3 for <8640@debbugs.gnu.org>; Mon, 09 May 2011 03:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=pNoSbB1NO9lHY568gA+DhRr+5ma40t1AJ5jyR2OKaqU=; b=jrGxMD+FTSqKcNR/tTSYlJ6hqFR81lXcnd006PzSeefKNXySkW2WG9eJ9FCiq3if+G Ckrhavja//VRO7HP943paUUZ67KFFRe4SNhMNNdTWQS6PPDZgBDqeNaPofic4UeZ9meF qbnMtJPyvsxtEC8/lJ8JUX9rRK5j+lZGFXiW0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=EZBMMSisERys15ClR88gUDWPBI5mtpUP1x/qYR6CoYGBtwlwZHbzoK0AMqAM65l3Ti 4Xm9t3foyY2YcAkF9+iC7gR57lmu4sKPRhOBJm40hapKtn2Pv0NI00U0ZDnZxUe3Msjo V+sEzHc4oHOV0x1nACNRebHXiu1dBwUfdYL7Y= Received: by 10.229.43.224 with SMTP id x32mr4941623qce.57.1304938533098; Mon, 09 May 2011 03:55:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.91.210 with HTTP; Mon, 9 May 2011 03:54:49 -0700 (PDT) In-Reply-To: References: From: Juanma Barranquero Date: Mon, 9 May 2011 12:54:49 +0200 Message-ID: Subject: Re: bug#8640: 24.0.50; no pbm support on cygwin To: Katsumi Yamaoka Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 8640 Cc: 8640@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) > pbm image is not available in Emacs trunk built on cygwin at least > after May 6: (image-type-available-p 'pbm) =3D> nil > Whereas png, jpeg, gif, xpm, etc. are all ok. xbm is not available either. And of course is not cygwin-specific. > I guess this is due > to the recent changes in image.c. Yes. > Any hint? More than a hint. I moved the library cache variable to w32 code, turned CACHE_IMAGE_TYPE into a noop on non-Windows, and removed the check on init-image-library. But I overlook the fact that the predefined image types rely on being marked in the library cache as available. That's because `image-type-available-p' always goes through `init-image-library'. Now, the fix is simple (the patch below fixes the problem), but we should think whether it is cleaner to restore the library-cache to a non-Windows specific code, or mark the only two predefined image types in any other way, as the code below does. It's a bit ad-hoc, but having the image types in the library cache, when they are not, in fact, loaded from a library, is also a bit ugly. Opinions and comments anyone? =C2=A0 =C2=A0 Juanma =3D=3D=3D modified file 'src/image.c' --- src/image.c 2011-05-06 06:30:56 +0000 +++ src/image.c 2011-05-09 10:53:21 +0000 @@ -8602,6 +8602,11 @@ of `dynamic-library-alist', which see). */) (Lisp_Object type, Lisp_Object libraries) { + + /* Types pbm and xbm are predefined and always available. */ + if (EQ (type, Qpbm) || EQ (type, Qxbm)) + return Qt; + #ifdef HAVE_NTGUI /* Don't try to reload the library. */ Lisp_Object tested =3D Fassq (type, Vlibrary_cache); From debbugs-submit-bounces@debbugs.gnu.org Tue May 10 04:45:23 2011 Received: (at 8640) by debbugs.gnu.org; 10 May 2011 08:45:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJiZH-0001Wg-7z for submit@debbugs.gnu.org; Tue, 10 May 2011 04:45:23 -0400 Received: from orlando.hostforweb.net ([216.246.45.90]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJiZA-0001WN-Gz for 8640@debbugs.gnu.org; Tue, 10 May 2011 04:45:21 -0400 Received: from localhost ([127.0.0.1]:57873) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1QJiZ1-0000Vr-Sn; Tue, 10 May 2011 03:45:08 -0500 Date: Tue, 10 May 2011 17:44:56 +0900 Message-ID: From: Katsumi Yamaoka To: Juanma Barranquero Subject: Re: bug#8640: 24.0.50; no pbm support on cygwin References: Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (cygwin) Cancel-Lock: sha1:9s+HgN7zTfbBshV5qjED2XcT5bI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 8640 Cc: 8640@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) Juanma Barranquero wrote: >> pbm image is not available in Emacs trunk built on cygwin at least >> after May 6: (image-type-available-p 'pbm) => nil >> Whereas png, jpeg, gif, xpm, etc. are all ok. > xbm is not available either. And of course is not cygwin-specific. Oh, that's bad. I didn't verify it for xbm and other platforms. >> I guess this is due >> to the recent changes in image.c. > Yes. >> Any hint? > More than a hint. I moved the library cache variable to w32 code, > turned CACHE_IMAGE_TYPE into a noop on non-Windows, and removed the > check on init-image-library. But I overlook the fact that the > predefined image types rely on being marked in the library cache as > available. That's because `image-type-available-p' always goes through > `init-image-library'. > Now, the fix is simple (the patch below fixes the problem), but we > should think whether it is cleaner to restore the library-cache to a > non-Windows specific code, or mark the only two predefined image types > in any other way, as the code below does. It's a bit ad-hoc, but > having the image types in the library cache, when they are not, in > fact, loaded from a library, is also a bit ugly. > Opinions and comments anyone? The patch did the trick. I hope it is installed even if it is not smart. It troubles at least Gnus users, since Gnus invokes ImageMagick's `display' whenever an article contains X-Face (it is the default behavior when pbm is unavailable). ;-) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue May 10 06:33:49 2011 Received: (at 8640-done) by debbugs.gnu.org; 10 May 2011 10:33:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJkGD-0003v5-19 for submit@debbugs.gnu.org; Tue, 10 May 2011 06:33:49 -0400 Received: from mail-gw0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJkGA-0003us-TC for 8640-done@debbugs.gnu.org; Tue, 10 May 2011 06:33:47 -0400 Received: by gwb20 with SMTP id 20so2142929gwb.3 for <8640-done@debbugs.gnu.org>; Tue, 10 May 2011 03:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=i8JSydRT/9OzcJsNK1ZPAuzHSyXT+4PxpIOQ8YRO864=; b=L2+06xQbi00RnT+jnoFryMTJyYTS9qscYMYO7GN8jvZ39UfwvfB1cR5caVn9wma45N Pbvu811pZsPvcZW9qqhZWVwyzGdEfgQQfHNXDefs/4cbltbTXjdukPlMZ5eHPxFiXAmD gPQEr+SKyDnbOwACqeEhKDlZjtx0r2BDZ2fFk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=pYb33cWhXZP2L2RdTfzq+RstkvBN26dZbgwUOEgu7pun9Og8Ew72T89mTEw7ImzAiN EfJ8tQyNvswM7/0axW/pusD+8zBafPEa8l7x5pR2H8o0qHGzK9tJsUGVYl9Y/Nw6cntH vqc8sklvGOSr/dGb3lLsUS3lLU1aebjpqO1IY= Received: by 10.146.8.34 with SMTP id 34mr2125152yah.28.1305023621089; Tue, 10 May 2011 03:33:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.41.4 with HTTP; Tue, 10 May 2011 03:33:01 -0700 (PDT) In-Reply-To: References: From: Juanma Barranquero Date: Tue, 10 May 2011 12:33:01 +0200 Message-ID: Subject: Re: bug#8640: 24.0.50; no pbm support on cygwin To: Katsumi Yamaoka Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: 8640-done Cc: 8640-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) On Tue, May 10, 2011 at 10:44, Katsumi Yamaoka wrote: > The patch did the trick. =C2=A0I hope it is installed even if it is > not smart. I think it's the easiest and cleanest fix, so I've installed it (slightly tweaked). =C2=A0 =C2=A0 Juanma From unknown Fri Jun 20 07:09:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 07 Jun 2011 11:24:04 +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