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

Previous Next

Package: emacs;

Reported by: "Gary ." <help-gnu-emacs <at> garydjones.name>

Date: Fri, 7 May 2010 15:08:02 UTC

Severity: normal

Tags: confirmed

Found in version 25.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6133 in the body.
You can then email your comments to 6133 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6133; Package emacs. (Fri, 07 May 2010 15:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Gary ." <help-gnu-emacs <at> garydjones.name>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 07 May 2010 15:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Gary ." <help-gnu-emacs <at> garydjones.name>
To: bug-gnu-emacs <at> gnu.org
Subject: Bug: create-image on console emacs
Date: Fri, 7 May 2010 11:40:41 +0200
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 <at> garydjones.name>
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.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#6133; Package emacs. (Sun, 09 Jul 2017 21:56:02 GMT) Full text and rfc822 format available.

Message #8 received at 6133 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: "Gary ." <help-gnu-emacs <at> garydjones.name>
Cc: 6133 <at> debbugs.gnu.org
Subject: Re: bug#6133: Bug: create-image on console emacs
Date: Sun, 09 Jul 2017 17:56:28 -0400
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 <at> garydjones.name> 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)))




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 <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 09 Jul 2017 21:56:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 09 Jul 2017 21:56:02 GMT) Full text and rfc822 format available.

bug Marked as found in versions 25.2. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 09 Jul 2017 21:56:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#6133; Package emacs. (Thu, 26 Sep 2019 18:07:02 GMT) Full text and rfc822 format available.

Message #17 received at 6133 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: npostavs <at> users.sourceforge.net
Cc: "Gary ." <help-gnu-emacs <at> garydjones.name>, 6133 <at> debbugs.gnu.org
Subject: Re: bug#6133: Bug: create-image on console emacs
Date: Thu, 26 Sep 2019 20:06:12 +0200
npostavs <at> users.sourceforge.net 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)))

I don't think this is a bug, though?  You have to check for
display-graphic-p before doing image-size (and some other image-related
things).

So I'm closing this bug report; if anybody disagrees, feel free to
reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 6133 <at> debbugs.gnu.org and "Gary ." <help-gnu-emacs <at> garydjones.name> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 26 Sep 2019 18:07:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 25 Oct 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 242 days ago.

Previous Next


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