From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#12647: 24.2.50; emacs --daemon broken in tty Date: Tue, 16 Oct 2012 03:00:21 -0400 Message-ID: References: <20121014154458.GA14676@c3po> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1350370864 13054 80.91.229.3 (16 Oct 2012 07:01:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2012 07:01:04 +0000 (UTC) Cc: 12647@debbugs.gnu.org To: Toby Cubitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 16 09:01:11 2012 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 1TO19K-0004qJ-V3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Oct 2012 09:01:11 +0200 Original-Received: from localhost ([::1]:37270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TO19D-0003dX-OW for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Oct 2012 03:01:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TO192-0003af-U5 for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2012 03:01:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TO191-0003Io-Gx for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2012 03:00:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TO191-0003Ik-D0 for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2012 03:00:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TO1AA-000853-7p for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2012 03:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Oct 2012 07:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12647 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12647-submit@debbugs.gnu.org id=B12647.135037089831029 (code B ref 12647); Tue, 16 Oct 2012 07:02:02 +0000 Original-Received: (at 12647) by debbugs.gnu.org; 16 Oct 2012 07:01:38 +0000 Original-Received: from localhost ([127.0.0.1]:46050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TO19l-00084P-Hv for submit@debbugs.gnu.org; Tue, 16 Oct 2012 03:01:37 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:34753 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TO19i-00084G-Oh for 12647@debbugs.gnu.org; Tue, 16 Oct 2012 03:01:35 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TO18X-0000tv-Gg; Tue, 16 Oct 2012 03:00:21 -0400 X-Spook: number key Albright Axis of Evil Croatian airframe X-Ran: iy"zaqy:n'jW3W1f1+3K=Gw7z"Ut@WrJ!5Z)|/2\bs7!8'v.&+$Ycu.#1*`|a#UPS=nW^G X-Hue: cyan X-Attribution: GM In-Reply-To: <20121014154458.GA14676@c3po> (Toby Cubitt's message of "Sun, 14 Oct 2012 17:44:58 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65655 Archived-At: Toby Cubitt wrote: > "emacsclient -c" throws an error if "emacs --daemon" is started outside > of X windows, . This is on a recent bzr checkout (from today). > > Steps to reproduce: > > 1. switch to a linux virtual tty > > 2. emacs -Q --daemon > > 3. switch to X windows > > 4. emacsclient -c aborts with the following error: > > Waiting for Emacs... > *ERROR*: Wrong type argument: stringp, nil This is due to the various changes related to display handling in r110444 (cygw32). The specific error is from x-initialize-window-system, which cannot find a display (don't ask me why getenv DISPLAY doesn't work here). In the past, frame.el set x-display-name, but it does not do that any more. Presumably it was doing it for a reason. The following example frame.el change makes it work again, but someone should check this area. --- lisp/frame.el 2012-09-17 12:07:36 +0000 +++ lisp/frame.el 2012-10-16 06:54:40 +0000 @@ -655,6 +655,7 @@ (error "Don't know how to create a frame on window system %s" w)) (unless (get w 'window-system-initialized) + (or x-display-name (setq x-display-name display)) (funcall (cdr (assq w window-system-initialization-alist))) (put w 'window-system-initialized t))