From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.bugs Subject: bug#19175: 24.4; make-frame-on-display fails if emacs started with -nw Date: Mon, 23 Mar 2015 07:12:27 +0100 Message-ID: <0E7A721E-2256-4932-9832-ED19A86FE000@swipnet.se> References: <87wq6jrjis.fsf@ak2.becroft.co.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1427091206 19795 80.91.229.3 (23 Mar 2015 06:13:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Mar 2015 06:13:26 +0000 (UTC) Cc: 19175@debbugs.gnu.org To: Mario Becroft Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 23 07:13:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YZvbs-0006Sm-8u for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Mar 2015 07:13:12 +0100 Original-Received: from localhost ([::1]:53845 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZvbr-0003AX-Ii for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Mar 2015 02:13:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZvbl-00035M-OF for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2015 02:13:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZvbi-0004H1-Gj for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2015 02:13:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZvbi-0004Gx-DV for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2015 02:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YZvbi-0003r5-63 for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2015 02:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jan D." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Mar 2015 06:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19175 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19175-submit@debbugs.gnu.org id=B19175.142709116014787 (code B ref 19175); Mon, 23 Mar 2015 06:13:02 +0000 Original-Received: (at 19175) by debbugs.gnu.org; 23 Mar 2015 06:12:40 +0000 Original-Received: from localhost ([127.0.0.1]:33010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZvbL-0003qQ-4N for submit@debbugs.gnu.org; Mon, 23 Mar 2015 02:12:39 -0400 Original-Received: from mailfe09.swip.net ([212.247.155.1]:34495 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZvbI-0003qC-Hh for 19175@debbugs.gnu.org; Mon, 23 Mar 2015 02:12:38 -0400 X-T2-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 409492797; Mon, 23 Mar 2015 07:12:28 +0100 In-Reply-To: <87wq6jrjis.fsf@ak2.becroft.co.nz> X-Mailer: Apple Mail (2.2070.6) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100828 Archived-At: 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 : >=20 >=20 > emacs -nw > M-x make-frame-on-display RET > When prompted: myhost:0 RET >=20 > Expected result: >=20 > A new X11 frame is created on the specified X11 display 'myhost:0' >=20 > Actual result: >=20 > In minibuffer, the following message appears: >=20 > Display myhost:0 can't be opened >=20 > Note: >=20 > DISPLAY=3Dmyhost:0 emacs >=20 > 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. >=20 > This is *not* a simple X authorization problem or anything like that. >=20 > 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): >=20 > ---- > socket(PF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) =3D 10 > setsockopt(10, SOL_TCP, TCP_NODELAY, [1], 4) =3D 0 > setsockopt(10, SOL_SOCKET, SO_KEEPALIVE, [1], 4) =3D 0 > connect(10, {sa_family=3DAF_INET, sin_port=3Dhtons(6000), = sin_addr=3Dinet_addr("192.168.1.2")}, 16) =3D ? ERESTARTSYS (To be = restarted) > --- SIGIO (I/O possible) @ 0 (0) --- > rt_sigreturn(0x1d) =3D -1 EINTR (Interrupted = system call) > close(10) =3D 0 > ---- >=20 >=20 >=20 >=20 > 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=3Dlucid --without-xft' >=20 > Important settings: > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix >=20 > Major mode: Lisp Interaction >=20 > 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 >=20 > Recent input: > SPC L i n u x SPC d e s k t o p SPC s y s t e m , SPC=20 > j u s t SPC s a y : RET D I S P L A Y =3D : 0 SPC e m=20 > a c s SPC - n w RET M - x SPC m a k e - f r a m e -=20 > o n - d i s p l a y RET W h e n SPC p r o m p t e d=20 > SPC e n t e r : SPC : 0 RET I f SPC a SPC n e w SPC=20 > f r a m e SPC a p p e a r s , SPC t h e SPC n i t SPC=20 > i DEL DEL DEL DEL DEL DEL n SPC i t SPC i s SPC w o=20 > r k i n g RET I f SPC t h e SPC t e x t SPC ' D i s=20 > p l a y SPC : 0 SPC c a n ' t SPC b e SPC o p e n e=20 > d ' SPC a p p e a r s SPC i n SPC t h e SPC m i n i=20 > b u f f e r , SPC t h e n SPC t h e SPC b u g ESC b=20 > ESC b y o u SPC h a v e SPC RET ESC [ > 0 ; 2 4 2 ;=20 > 0 c ESC ] 1 1 ; r g b : f f f f / f f f f / f f f f=20 > ESC \ ESC x r e p o TAB r t TAB RET >=20 > 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... >=20 > Load-path shadows: > None found. >=20 > 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) >=20 > 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)) >=20 >=20