From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: window-system and batch mode Date: Tue, 30 Oct 2007 14:56:41 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193770637 9875 80.91.229.12 (30 Oct 2007 18:57:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 18:57:17 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 19:57:17 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ImwGz-0001E6-9I for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 19:57:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImwGp-0006h3-VH for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 14:57:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImwGm-0006fb-4E for emacs-devel@gnu.org; Tue, 30 Oct 2007 14:56:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImwGk-0006eq-DM for emacs-devel@gnu.org; Tue, 30 Oct 2007 14:56:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImwGk-0006en-A3 for emacs-devel@gnu.org; Tue, 30 Oct 2007 14:56:54 -0400 Original-Received: from x-132-204-242-121.xtpr.umontreal.ca ([132.204.242.121] helo=ceviche.home) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1ImwGj-0004bM-Uv for emacs-devel@gnu.org; Tue, 30 Oct 2007 14:56:54 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 6F3F4B4ABE; Tue, 30 Oct 2007 14:56:40 -0400 (EDT) In-Reply-To: (Katsumi Yamaoka's message of "Tue, 30 Oct 2007 11:35:01 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82147 gmane.emacs.gnus.general:65496 Archived-At: > 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