all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* window-system and batch mode
@ 2007-10-30  2:35 Katsumi Yamaoka
  2007-10-30  8:22 ` Richard Stallman
  2007-10-30 18:56 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Katsumi Yamaoka @ 2007-10-30  2:35 UTC (permalink / raw)
  To: emacs-devel; +Cc: ding

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,

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-11-01  1:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-10-31  7:47   ` Richard Stallman

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.