From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: patch to make emacs proceed if DISPLAY is unreachable Date: Tue, 7 Mar 2006 18:44:10 +0200 Message-ID: <20060307164410.GA13835@flame.pc> References: <440D36CF.2040405@swipnet.se> <20060307161523.GA13692@flame.pc> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141750433 8823 80.91.229.2 (7 Mar 2006 16:53:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Mar 2006 16:53:53 +0000 (UTC) Cc: "Jan D." , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 07 17:53:50 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FGfRC-000636-H6 for ged-emacs-devel@m.gmane.org; Tue, 07 Mar 2006 17:53:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGfRB-0007Ju-HE for ged-emacs-devel@m.gmane.org; Tue, 07 Mar 2006 11:53:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FGfJC-00033R-Ov for emacs-devel@gnu.org; Tue, 07 Mar 2006 11:45:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FGfJB-00032a-32 for emacs-devel@gnu.org; Tue, 07 Mar 2006 11:45:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGfJ9-000329-SM for emacs-devel@gnu.org; Tue, 07 Mar 2006 11:45:12 -0500 Original-Received: from [62.1.205.36] (helo=igloo.linux.gr) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FGfLn-0005aw-SC for emacs-devel@gnu.org; Tue, 07 Mar 2006 11:47:56 -0500 Original-Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) (authenticated bits=128) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k27GiKnM003834 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 7 Mar 2006 18:44:25 +0200 Original-Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id k27GiEkr013865; Tue, 7 Mar 2006 18:44:14 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Original-Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id k27GiAwB013864; Tue, 7 Mar 2006 18:44:10 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Original-To: Vivek Dasmohapatra Content-Disposition: inline In-Reply-To: X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.377, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.82, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr 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:51326 Archived-At: On 2006-03-07 16:30, Vivek Dasmohapatra 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