From: "Jan D." <jan.h.d@swipnet.se>
To: Mario Becroft <mb@becroft.co.nz>
Cc: 19175@debbugs.gnu.org
Subject: bug#19175: 24.4; make-frame-on-display fails if emacs started with -nw
Date: Mon, 23 Mar 2015 07:12:27 +0100 [thread overview]
Message-ID: <0E7A721E-2256-4932-9832-ED19A86FE000@swipnet.se> (raw)
In-Reply-To: <87wq6jrjis.fsf@ak2.becroft.co.nz>
Hi.
Does
M-x make-frame-on-display RET
When prompted: :0 RET
work (note, just :0 not myhost:0)?
If it does, then it is likely your X server that has changed to not accept TCP/IP connections.
Jan D.
> 25 nov 2014 kl. 05:28 skrev Mario Becroft <mb@becroft.co.nz>:
>
>
> emacs -nw
> M-x make-frame-on-display RET
> When prompted: myhost:0 RET
>
> Expected result:
>
> A new X11 frame is created on the specified X11 display 'myhost:0'
>
> Actual result:
>
> In minibuffer, the following message appears:
>
> Display myhost:0 can't be opened
>
> Note:
>
> DISPLAY=myhost:0 emacs
>
> works fine, and make-frame-on-display works. It's only when starting
> emacs with -nw (or, more importantly, --daemon) that
> make-frame-on-display subsequently fails.
>
> This is *not* a simple X authorization problem or anything like that.
>
> The strace output from the point where emacs connects to the X server to
> when it closes the connection, without having read or written any data,
> follows (actual IP address of target X server host elided and replaced
> with 192.168.1.2):
>
> ----
> socket(PF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) = 10
> setsockopt(10, SOL_TCP, TCP_NODELAY, [1], 4) = 0
> setsockopt(10, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
> connect(10, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("192.168.1.2")}, 16) = ? ERESTARTSYS (To be restarted)
> --- SIGIO (I/O possible) @ 0 (0) ---
> rt_sigreturn(0x1d) = -1 EINTR (Interrupted system call)
> close(10) = 0
> ----
>
>
>
>
> In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, X toolkit)
> of 2014-11-25 on ak2
> Configured using:
> `configure --without-toolkit-scroll-bars --with-x
> --with-x-toolkit=lucid --without-xft'
>
> Important settings:
> value of $LANG: en_US.UTF-8
> locale-coding-system: utf-8-unix
>
> Major mode: Lisp Interaction
>
> Minor modes in effect:
> rcirc-track-minor-mode: t
> show-paren-mode: t
> tooltip-mode: t
> electric-indent-mode: t
> mouse-wheel-mode: t
> file-name-shadow-mode: t
> global-font-lock-mode: t
> font-lock-mode: t
> auto-composition-mode: t
> auto-encryption-mode: t
> auto-compression-mode: t
> line-number-mode: t
> transient-mark-mode: t
>
> Recent input:
> SPC L i n u x SPC d e s k t o p SPC s y s t e m , SPC
> j u s t SPC s a y : RET D I S P L A Y = : 0 SPC e m
> a c s SPC - n w RET M - x SPC m a k e - f r a m e -
> o n - d i s p l a y RET W h e n SPC p r o m p t e d
> SPC e n t e r : SPC : 0 RET I f SPC a SPC n e w SPC
> f r a m e SPC a p p e a r s , SPC t h e SPC n i t SPC
> i DEL DEL DEL DEL DEL DEL n SPC i t SPC i s SPC w o
> r k i n g RET I f SPC t h e SPC t e x t SPC ' D i s
> p l a y SPC : 0 SPC c a n ' t SPC b e SPC o p e n e
> d ' SPC a p p e a r s SPC i n SPC t h e SPC m i n i
> b u f f e r , SPC t h e n SPC t h e SPC b u g ESC b
> ESC b y o u SPC h a v e SPC RET ESC [ > 0 ; 2 4 2 ;
> 0 c ESC ] 1 1 ; r g b : f f f f / f f f f / f f f f
> ESC \ ESC x r e p o TAB r t TAB RET
>
> Recent messages:
> When done with this frame, type C-x 5 0
> x-initialize-window-system: Display 10.87.0.1:0 can't be opened
> x-initialize-window-system: Display 10.89.6.1:0 can't be opened [2 times]
> Connecting to chat.freenode.net...done
> Quit
> Making completion list...
> Rcirc-Track minor mode disabled
> Rcirc-Track minor mode enabled
> When done with this frame, type C-x 5 0
> Making completion list...
>
> Load-path shadows:
> None found.
>
> Features:
> (shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec
> mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
> mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils help-mode
> easymenu disp-table network-stream auth-source eieio byte-opt bytecomp
> byte-compile cconv eieio-core gnus-util mm-util help-fns mail-prsvr
> password-cache starttls tls rcirc ring xterm server jabber-autoloads
> package epg-config escreen time-date paren cus-start cus-load tooltip
> electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
> tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
> lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
> scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
> georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
> korean japanese hebrew greek romanian slovak czech european ethiopic
> indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
> abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files
> text-properties overlay sha1 md5 base64 format env code-pages mule
> custom widget hashtable-print-readable backquote make-network-process
> gfilenotify dynamic-setting x-toolkit x multi-tty emacs)
>
> Memory information:
> ((conses 16 144895 13629)
> (symbols 48 21822 0)
> (miscs 40 256 529)
> (strings 32 22112 4517)
> (string-bytes 1 584096)
> (vectors 16 11221)
> (vector-slots 8 410639 4818)
> (floats 8 80 297)
> (intervals 56 4036 233)
> (buffers 960 26)
> (heap 1024 23508 585))
>
>
next prev parent reply other threads:[~2015-03-23 6:12 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 4:28 bug#19175: 24.4; make-frame-on-display fails if emacs started with -nw Mario Becroft
2014-11-25 4:34 ` bug#19175: Further information Mario Becroft
2015-03-23 6:12 ` Jan D. [this message]
2015-03-23 6:32 ` bug#19175: 24.4; make-frame-on-display fails if emacs started with -nw Mario Becroft
2015-03-23 17:34 ` Glenn Morris
2015-03-23 20:26 ` Mario Becroft
2015-03-24 1:44 ` Glenn Morris
2015-03-29 3:42 ` Mario Becroft
2015-03-29 8:45 ` Jan D.
2015-03-29 8:52 ` Mario Becroft
2015-03-29 15:01 ` Eli Zaretskii
2015-03-29 17:09 ` Jan Djärv
2015-03-29 17:20 ` Eli Zaretskii
2015-03-29 19:18 ` Jan D.
2015-03-29 21:17 ` Stefan Monnier
2015-03-30 6:32 ` Jan D.
2015-03-30 13:58 ` Stefan Monnier
2015-03-30 14:36 ` Eli Zaretskii
2015-03-30 20:51 ` Stefan Monnier
2015-03-31 2:34 ` Eli Zaretskii
2015-03-31 13:26 ` Stefan Monnier
2015-03-31 14:03 ` Eli Zaretskii
2015-03-31 21:07 ` Stefan Monnier
2015-04-01 2:38 ` Eli Zaretskii
2015-04-01 3:55 ` Stefan Monnier
2015-03-30 14:47 ` Eli Zaretskii
2015-03-31 14:14 ` Nicolas Petton
2015-03-31 21:08 ` Stefan Monnier
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=0E7A721E-2256-4932-9832-ED19A86FE000@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=19175@debbugs.gnu.org \
--cc=mb@becroft.co.nz \
/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).