[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch to make emacs proceed if DISPLAY is unreachable
From: |
Vivek Dasmohapatra |
Subject: |
Re: patch to make emacs proceed if DISPLAY is unreachable |
Date: |
Tue, 7 Mar 2006 16:30:37 +0000 (GMT) |
On Tue, 7 Mar 2006, Giorgos Keramidas wrote:
How about making this customizable then?
I haven't had the time to look into the DISPLAY initialization parts.
If they are used before .emacs is loaded it may be a bit trickier than
what I initially thought. But when users may want a diversion from the
default behavior, then a customizable option is what's called for, IMHO :)
This happens well before any customisation. In fact, it happens before
the lisp engine is started and we enter normal-top-level.
1) Command lines are parsed
2) if no display is required, the terminal is initialised
3) we enter elisp at normal-top-level
4) command-line is called :
NOW the elisp engine parses the command line and creates a GUI frame
if necessary, or defaults to using the terminal frame.
Ideally, this could all be fixed after 4, unfortunaltely the terminal is
already uninitialised/intialised at 2, so even if we make display
failure non-fatal at 4, the terminal/frames aren't in the right state
for us to use anyway.
I worked around this by inserting the kludge at 1.5.
It would require much more major surgery to make this subject to
customisation, it's all quite deep down inside emacs.