unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Brinkhoff <lars@nocrew.org>
To: emacs-devel@gnu.org
Subject: Re: (error "Window system frame should be used")
Date: Fri, 21 Apr 2017 10:44:04 +0200	[thread overview]
Message-ID: <86mvbanoa3.fsf@molnjunk.nocrew.org> (raw)
In-Reply-To: 83zifa9o82.fsf@gnu.org

Eli Zaretskii wrote:
>> I'm noting that "emacs -nw" can make a graphical frame, but "emacs
>> -batch" can not.
> "emacs -nw" can _display_ a GUI frame.  In batch sessions, we don't
> display anything, because it's a non-interactive invocation.  Batch
> sessions have a frame of a special type, which is neither a TTY frame
> nor a GUI frame.

It's interesting to try.  In non-interactive mode, `make-frame' crashes
with "I/O possible" (receiving a SIGIO I guess) when making a GUI frame,
and segmentation fault when making a TTY frame.

I.e.

emacs -batch -eval "(make-frame '((display . \":0\")))"
emacs -batch -eval "(make-frame '((tty-type . \"xterm\")))"




  reply	other threads:[~2017-04-21  8:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-20 21:34 (error "Window system frame should be used") Lars Ingebrigtsen
2017-04-20 21:49 ` Lars Ingebrigtsen
2017-04-20 22:50   ` Lars Ingebrigtsen
2017-04-20 23:22     ` Clément Pit-Claudel
2017-04-21  3:47     ` Eli Zaretskii
2017-04-21 13:22       ` Stefan Monnier
2017-04-21 13:34         ` Eli Zaretskii
2017-04-21  5:28     ` Lars Brinkhoff
2017-04-21  7:45       ` Lars Brinkhoff
2017-04-21  8:09         ` Eli Zaretskii
2017-04-21  8:44           ` Lars Brinkhoff [this message]
2017-04-21 10:51             ` Eli Zaretskii
2017-04-21 17:18       ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86mvbanoa3.fsf@molnjunk.nocrew.org \
    --to=lars@nocrew.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).