unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org, emacs-devel@gnu.org
Subject: Re: window-system and batch mode
Date: Tue, 30 Oct 2007 14:56:41 -0400	[thread overview]
Message-ID: <jwv640oxwrn.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <b4my7dlcotm.fsf@jpl.org> (Katsumi Yamaoka's message of "Tue, 30 Oct 2007 11:35:01 +0900")

> Recently Emacs sets `window-system' to t in the batch mode:

Yes, when I changed window-system to be terminal-local I had to decide
what value to give to it for the initial "terminal" (which is basically
just stdin/stdout rather than an X11 or tty connection).  I decided to
use t (rather than nil which means "tty") to see what happens and
hopefully catch some bugs.  And indeed it helped me get the
"terminal-local window-system" patch working.

> Shouldn't it be nil?

Yes, we can easily change it back to nil.  I think code which relies on
this is broken, but I don't feel strongly about it.

> If not, what is the right way that a Lisp
> program knows that it runs in the batch mode?  Is it `noninteractive',
> `(display-graphic-p)' or possibly `initial-window-system'?

If we ever get the "frameless" emacs-server working, it will most likely
be using such a terminal, now whether that's interactive or not... the
limit will be a bit more blurry by then.


        Stefan

  parent reply	other threads:[~2007-10-30 18:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-30  2:35 window-system and batch mode Katsumi Yamaoka
2007-10-30  8:22 ` Richard Stallman
2007-10-31 19:26   ` Stefan Monnier
2007-11-01  1:44     ` Katsumi Yamaoka
2007-10-30 18:56 ` Stefan Monnier [this message]
2007-10-31  7:47   ` Richard Stallman

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=jwv640oxwrn.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=yamaoka@jpl.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).