From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Roberts Newsgroups: gmane.emacs.bugs Subject: Re: XBM images sometimes inverted on Windows Date: Sat, 1 Dec 2007 14:35:54 +0000 Message-ID: <20071201143554.GA7127@janet> References: <20071130124226.GA28554@janet> <4751636A.7060806@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196617430 5757 80.91.229.12 (2 Dec 2007 17:43:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2007 17:43:50 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 02 18:43:59 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IysrE-0002Ox-50 for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Dec 2007 18:43:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iysqy-0007gy-AI for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Dec 2007 12:43:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IyTRp-0008TK-W4 for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2007 09:36:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IyTRp-0008Sh-AS for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2007 09:36:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyTRp-0008SY-8C for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2007 09:36:01 -0500 Original-Received: from venus.karoo.kcom.com ([212.50.160.60] helo=venus.eclipse.kcom.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IyTRk-00056U-T1; Sat, 01 Dec 2007 09:35:57 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAKr7UEdbVDw7/2dsb2JhbAA X-IronPort-AV: E=Sophos;i="4.23,237,1194220800"; d="scan'208";a="181497691" Original-Received: from unknown (HELO localhost) ([91.84.60.59]) by venus.eclipse.kcom.com with ESMTP; 01 Dec 2007 14:35:54 +0000 Content-Disposition: inline In-Reply-To: <4751636A.7060806@gnu.org> User-Agent: Mutt/1.5.16 (2007-06-09) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Sun, 02 Dec 2007 12:43:34 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17110 Archived-At: On Sat, Dec 01, 2007 at 01:36:42PM +0000, Jason Rumney wrote: > Does this result in a valid xbm image? There is no width and height > specified, and the data is not in the textual format that an xbm is > supposed to be in. You are right it doesn't make a valid XBM image, but according to the elisp manual this is a perfectly valid way of defining an image. The width and height are specified in the property list instead: 38.16.2 XBM Images ------------------ ... `:data DATA' The value, DATA, specifies the contents of the image. There are three formats you can use for DATA: ... * A string or a bool-vector containing the bits of the image (plus perhaps some extra bits at the end that will not be used). It should contain at least WIDTH * `height' bits. In this case, you must specify `:height' and `:width', both to indicate that the string contains just the bits rather than a whole XBM file, and to specify the size of the image.