unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: michael.cadilhac@lrde.org (Michaël Cadilhac)
Subject: Init X display on -nw.
Date: Tue, 11 Apr 2006 21:42:43 +0200	[thread overview]
Message-ID: <87hd4zsxu4.fsf@lrde.org> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 507 bytes --]


I've a distant computer that sets the DISPLAY value on ssh, but it has
a so old X server that Emacs can't connect to it. No problem, it's not
due to Emacs.

However, I then use `emacs -nw'.

Well, I don't see the point of this message :

  $ emacs -nw
  Xlib: connection to "localhost:10.0" refused by server
  Xlib: Invalid MIT-MAGIC-COOKIE-1 key
  Display localhost:10.0 unavailable, simulating -nw
  $

Emacs, my dear, please don't simulate, do it.

I propose the following (maybe naive) tiny change :


[-- Attachment #1.1.2: dispnew.patch --]
[-- Type: text/x-patch, Size: 1368 bytes --]

Index: src/ChangeLog
===================================================================
RCS file: /cvsroot/emacs/emacs/src/ChangeLog,v
retrieving revision 1.4998
diff -b -c -w -r1.4998 ChangeLog
*** src/ChangeLog	11 Apr 2006 07:13:33 -0000	1.4998
--- src/ChangeLog	11 Apr 2006 19:35:22 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2006-04-11  Michaël Cadilhac  <michael.cadilhac@lrde.org> (tiny change)
+ 
+ 	* dispnew.c (init_display): Don't init X display if the user asked
+ 	for a non-X display.
+ 
  2006-04-11  Dan Nicolaescu  <dann@ics.uci.edu>
  
  	* lisp.h (wrong_type_argument): Mark as NO_RETURN.
Index: src/dispnew.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/dispnew.c,v
retrieving revision 1.361
diff -b -c -w -r1.361 dispnew.c
*** src/dispnew.c	20 Mar 2006 22:41:12 -0000	1.361
--- src/dispnew.c	11 Apr 2006 19:35:22 -0000
***************
*** 6654,6660 ****
       try to use X, and die with an error message if that doesn't work.  */
  
  #ifdef HAVE_X_WINDOWS
!   if (! display_arg)
      {
        char *display;
  #ifdef VMS
--- 6654,6660 ----
       try to use X, and die with an error message if that doesn't work.  */
  
  #ifdef HAVE_X_WINDOWS
!   if (!inhibit_window_system && !display_arg)
      {
        char *display;
  #ifdef VMS

[-- Attachment #1.1.3: Type: text/plain, Size: 347 bytes --]



Thanks in advance.

-- 
 |      Michaël `Micha' Cadilhac   |   Mieux vaut se taire                  |
 |         Epita/LRDE Promo 2007   |    Que de parler trop fort.            |
 | http://www.lrde.org/~cadilh_m   |            -- As de trèfle             |
 `--  -   JID: micha@amessage.be --'                                   -  --'

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2006-04-11 19:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-11 19:42 Michaël Cadilhac [this message]
2006-04-12  6:23 ` Init X display on -nw Jan D.

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87hd4zsxu4.fsf@lrde.org \
    --to=michael.cadilhac@lrde.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).