From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: window-system and batch mode Date: Tue, 30 Oct 2007 11:35:01 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193711742 26413 80.91.229.12 (30 Oct 2007 02:35:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 02:35:42 +0000 (UTC) Cc: ding@gnus.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 03:35:43 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 1Imgx4-00030a-0D for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 03:35:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Imgwu-0004TV-Bo for ged-emacs-devel@m.gmane.org; Mon, 29 Oct 2007 22:35:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Imgwq-0004QG-CL for emacs-devel@gnu.org; Mon, 29 Oct 2007 22:35:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Imgwp-0004P4-9b for emacs-devel@gnu.org; Mon, 29 Oct 2007 22:35:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Imgwp-0004Oz-7X for emacs-devel@gnu.org; Mon, 29 Oct 2007 22:35:19 -0400 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Imgwo-0002pF-Ds for emacs-devel@gnu.org; Mon, 29 Oct 2007 22:35:18 -0400 Original-Received: from [66.225.201.151] (port=33666 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1Imgwh-0006NN-Lt; Mon, 29 Oct 2007 21:35:12 -0500 X-Hashcash: 1:20:071030:emacs-devel@gnu.org::BqvkHocdUHvoslT/:0000000000000000000000000000000000000000004ido X-Hashcash: 1:20:071030:ding@gnus.org::9JCGL1gQJ5ZvEeri:00009Qfz X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:uaCwhR2dXXjLILmmDGnL41fh+Ug= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: 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:82118 gmane.emacs.gnus.general:65490 Archived-At: Hi, Recently Emacs sets `window-system' to t in the batch mode: emacs -batch -Q -eval '(message "%s" window-system)' t Shouldn't it be nil? 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'? I run Gnus in the batch mode using cron every day before I come to the office for fetching new mails, but it failed nowadays because Gnus calls `gnus-x-splash' which requires a graphic Emacs frame[1]. The relevant code is: (defun gnus-1 (&optional arg dont-connect slave) [...] (cond ((featurep 'xemacs) (gnus-xmas-splash)) (window-system (gnus-x-splash)))) ([1] Although I've fixed in Gnus CVS the real cause, that is the form `(frame-parameter nil 'vertical-scroll-bars)' returns nil in `gnus-x-splash', it is essentially needless to be called if there's no window system.) Regards,