unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Init X display on -nw.
@ 2006-04-11 19:42 Michaël Cadilhac
  2006-04-12  6:23 ` Jan D.
  0 siblings, 1 reply; 2+ messages in thread
From: Michaël Cadilhac @ 2006-04-11 19:42 UTC (permalink / 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

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

* Re: Init X display on -nw.
  2006-04-11 19:42 Init X display on -nw Michaël Cadilhac
@ 2006-04-12  6:23 ` Jan D.
  0 siblings, 0 replies; 2+ messages in thread
From: Jan D. @ 2006-04-12  6:23 UTC (permalink / raw)
  Cc: emacs-devel



Michaël Cadilhac wrote:
> 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 :

Checked in.

	Jan D.

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

end of thread, other threads:[~2006-04-12  6:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 19:42 Init X display on -nw Michaël Cadilhac
2006-04-12  6:23 ` Jan D.

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