GNU bug report logs - #6133
image-size in -nw terminal gives error "Window system frame should be used"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Gary ." <help-gnu-emacs@HIDDEN>; Keywords: confirmed; dated Fri, 7 May 2010 15:08:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug Marked as found in versions 25.2. Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.
Added tag(s) confirmed. Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'image-size in -nw terminal gives error "Window system frame should be used"' from 'Bug: create-image on console emacs' Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.

Message received at 6133 <at> debbugs.gnu.org:


Received: (at 6133) by debbugs.gnu.org; 9 Jul 2017 21:55:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 09 17:55:06 2017
Received: from localhost ([127.0.0.1]:59236 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dUKAU-0002JY-03
	for submit <at> debbugs.gnu.org; Sun, 09 Jul 2017 17:55:06 -0400
Received: from mail-it0-f42.google.com ([209.85.214.42]:35514)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1dUKAQ-0002Ir-Ht; Sun, 09 Jul 2017 17:55:04 -0400
Received: by mail-it0-f42.google.com with SMTP id v202so18266999itb.0;
 Sun, 09 Jul 2017 14:55:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=QlQ+Z1A4EQ0scSoX+edrFgTVks79qGsmL6HpQcbRRBo=;
 b=D0C2I1/5KeII0rbzCEZB7BhsfXMGhOI9dDlIZfQ18yyFPFgXILtkyX6oFnMYwNuYU9
 2yCeP55aL23ZXZMIHtI19rI5Mq1AKoeL0XIIki4WwwguFzNhOqZxsE9oLmat5Fy9NUMM
 GAH2hqdQyE2rjjF4RMgfLu9NdaW1PUm88W3t3ypwtF48AoFivjQ3eeWqIFZRp26bLc9Y
 RTqVfPU62560nvbXyev1je8cm3kgTrobMV2c+JPEjCwn3rNkvV/HRvfABq8pWrgacDMW
 T0EYHrdRjglVE0ypIKH3xdJElRAsfHFj4WoaKYCBSyX48TsxSSi9Gj17XAcjXW3AUTcH
 TZiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=QlQ+Z1A4EQ0scSoX+edrFgTVks79qGsmL6HpQcbRRBo=;
 b=ORebnsLGIB9NzQ1xorl+DUhKfdmG+Y1VAIIdwJxRycUCNJRfUSZmCtvggPJxR1jDa9
 AD9c2jkTWeC2m52CNFeS84Q/NL/Noa/JNtJiO/EiZ7T1yc31lpoT7bexggFDGOGHRAHH
 TdydlkLvMC1PXZPTUwNmdz1cjZno/GMNXrR6ynqdL8snBHSZuXZ4p5og4UjWNjhr6g+F
 DNPpER02RF6J/Oxlj5W0JW+k+4Yp003ErzfMCw0rfxhHQOqfF8WWwqSRraaRlso4UU8I
 kHi+50nibQUoZs+lfmGd8tAXLomKUQe+xOSajrg9WdU0WUxhwtavA1rPRvfxLiSekIOc
 Oy5A==
X-Gm-Message-State: AIVw112XXes0Tt2lypstmjlI57mqoLXglZOFhGHeubPdZKI4UeCxDETp
 xPyiFPDT3t5rkU35
X-Received: by 10.107.202.66 with SMTP id a63mr663553iog.54.1499637296718;
 Sun, 09 Jul 2017 14:54:56 -0700 (PDT)
Received: from zony ([45.2.7.65])
 by smtp.googlemail.com with ESMTPSA id s135sm4463401ita.2.2017.07.09.14.54.55
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 09 Jul 2017 14:54:56 -0700 (PDT)
From: npostavs@HIDDEN
To: "Gary ." <help-gnu-emacs@HIDDEN>
Subject: Re: bug#6133: Bug: create-image on console emacs
References: <h2g3a68a1031005070240w18ae9c57h425caee2d4ab6dca@HIDDEN>
Date: Sun, 09 Jul 2017 17:56:28 -0400
In-Reply-To: <h2g3a68a1031005070240w18ae9c57h425caee2d4ab6dca@HIDDEN>
 (Gary .'s message of "Fri, 7 May 2010 11:40:41 +0200")
Message-ID: <87van1ff5f.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 6133
Cc: 6133 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

retitle 6133 image-size in -nw terminal gives error "Window system frame should be used"
tags 6133 + confirmed
found 6133 25.2
quit

"Gary ." <help-gnu-emacs@HIDDEN> writes:

> Below is a copy of a post* to the help-gnu-emacs mailing list about a
> strange behaviour I found in GNU Emacs 23.1.1. It was suggested on the
> mailing list that I submit a bug report, so here it is :-)
>
> FWIW, this occurs on the Cygwin build(s)** specifically, but I suspect
> on other builds as well. I don't know how else I can help, but please
> feel free to contact me on this address if I can.
>
> *  http://lists.gnu.org/archive/html/help-gnu-emacs/2010-05/msg00632.html

As explained in that thread, the problem is image-size, not
create-image.

    (image-size 
     (create-image
      (expand-file-name
       "etc/images/icons/hicolor/128x128/apps/emacs.png"
       source-directory)))




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6133; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 May 2010 15:07:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 07 11:07:58 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OAP9h-0007c8-O0
	for submit <at> debbugs.gnu.org; Fri, 07 May 2010 11:07:58 -0400
Received: from mx10.gnu.org ([199.232.76.166])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <help-gnu-emacs@HIDDEN>) id 1OANbC-0006rM-Q6
	for submit <at> debbugs.gnu.org; Fri, 07 May 2010 09:28:15 -0400
Received: from lists.gnu.org ([199.232.76.165]:57635)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <help-gnu-emacs@HIDDEN>) id 1OANbA-0004ii-Do
	for submit <at> debbugs.gnu.org; Fri, 07 May 2010 09:28:12 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1OANb9-00042s-HN
	for bug-gnu-emacs@HIDDEN; Fri, 07 May 2010 09:28:11 -0400
Received: from [140.186.70.92] (port=58236 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OANay-0003pM-7T
	for bug-gnu-emacs@HIDDEN; Fri, 07 May 2010 09:28:11 -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 Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <help-gnu-emacs@HIDDEN>) id 1OAK31-0006PO-30
	for bug-gnu-emacs@HIDDEN; Fri, 07 May 2010 05:40:47 -0400
Received: from mail-wy0-f169.google.com ([74.125.82.169]:38535)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <help-gnu-emacs@HIDDEN>) id 1OAK30-0006PD-Uw
	for bug-gnu-emacs@HIDDEN; Fri, 07 May 2010 05:40:43 -0400
Received: by wyb40 with SMTP id 40so328106wyb.0
	for <bug-gnu-emacs@HIDDEN>; Fri, 07 May 2010 02:40:41 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.87.68 with SMTP id x46mr3869155wee.145.1273225241087; Fri, 
	07 May 2010 02:40:41 -0700 (PDT)
Received: by 10.216.15.225 with HTTP; Fri, 7 May 2010 02:40:41 -0700 (PDT)
Date: Fri, 7 May 2010 11:40:41 +0200
Message-ID: <h2g3a68a1031005070240w18ae9c57h425caee2d4ab6dca@HIDDEN>
Subject: Bug: create-image on console emacs
From: "Gary ." <help-gnu-emacs@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 07 May 2010 11:07:56 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.3 (-----)

Below is a copy of a post* to the help-gnu-emacs mailing list about a
strange behaviour I found in GNU Emacs 23.1.1. It was suggested on the
mailing list that I submit a bug report, so here it is :-)

FWIW, this occurs on the Cygwin build(s)** specifically, but I suspect
on other builds as well. I don't know how else I can help, but please
feel free to contact me on this address if I can.

*  http://lists.gnu.org/archive/html/help-gnu-emacs/2010-05/msg00632.html
** both the -x11 and -nox binaries

---------- Forwarded message ----------
From: Gary <help-gnu-emacs@HIDDEN>
Date: Thu, May 6, 2010 at 9:56 PM

Can anyone explain to me why If I use emacs in the console and call
create-image I get a message like "Non-X frame used" (whether I use an
X11 binary or non-X)? I don't get this at all.

The reason I ask is that I am trying to use the code from
http://xahlee.org/emacs/emacs_html.html (*waves*) and as I said to Xah
Lee off-list, while it may well be necessary to (for example) get an
image's dimensions in order to display an image, the reverse is not
true. Other console tools are able to do it fine, for example
ImageMagick can tell me the dimensions from the command line:

$ identify work/web1/Bilder/aussen.jpg
work/web1/Bilder/aussen.jpg JPEG 874x583 874x583+0+0 DirectClass 8-bit
58.75kb

X doesn't need to get involved until such time things actually (try to)
get displayed.





Acknowledgement sent to "Gary ." <help-gnu-emacs@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6133; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 9 Jul 2017 22:00:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.