all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc: "Jan D." <jan.h.d@swipnet.se>, emacs-devel@gnu.org
Subject: Re: patch to make emacs proceed if DISPLAY is unreachable
Date: Tue, 7 Mar 2006 18:44:10 +0200	[thread overview]
Message-ID: <20060307164410.GA13835@flame.pc> (raw)
In-Reply-To: <Pine.LNX.4.62.0603071625410.4724@pike.pepperfish.net>

On 2006-03-07 16:30, Vivek Dasmohapatra <vivek@etla.org> wrote:
>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.

I remember the 'hack' we had to use for the 'visible-cursor option, so I
was sort of had expected this to be the case :-(

> 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.

I see.  Thanks for the explanation and the very fast reply.  Let us not
waste too much time & effort, possibly inserting bugs in the process
too, for making this a customizable option then.

I think our safest bet is to leave this up to the user, and keep using
the -nw command-line option for disabling any use of DISPLAY.

- Giorgos

      reply	other threads:[~2006-03-07 16:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-06 14:56 patch to make emacs proceed if DISPLAY is unreachable Vivek Dasmohapatra
2006-03-07  7:31 ` Jan D.
2006-03-07 16:15   ` Giorgos Keramidas
2006-03-07 16:30     ` Vivek Dasmohapatra
2006-03-07 16:44       ` Giorgos Keramidas [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060307164410.GA13835@flame.pc \
    --to=keramida@ceid.upatras.gr \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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 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.