From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#18598: 25.0.50; Rev. 118002 breaks starting emacs as daemon Date: Thu, 02 Oct 2014 09:26:36 -0400 Message-ID: References: <878ukzt8tz.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412256482 22017 80.91.229.3 (2 Oct 2014 13:28:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2014 13:28:02 +0000 (UTC) Cc: 18598@debbugs.gnu.org To: Vladimir Lomov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 02 15:27:55 2014 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 1XZgQD-0007Aq-Kd for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Oct 2014 15:27:53 +0200 Original-Received: from localhost ([::1]:34196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZgQD-0002nQ-8c for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Oct 2014 09:27:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZgPW-0001tI-5Y for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 09:27:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZgPQ-0002fX-9M for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 09:27:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZgPQ-0002fL-6l for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 09:27:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XZgPO-0006jU-T9 for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 09:27:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Oct 2014 13:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18598 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18598-submit@debbugs.gnu.org id=B18598.141225640325856 (code B ref 18598); Thu, 02 Oct 2014 13:27:02 +0000 Original-Received: (at 18598) by debbugs.gnu.org; 2 Oct 2014 13:26:43 +0000 Original-Received: from localhost ([127.0.0.1]:58147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZgP4-0006iv-IM for submit@debbugs.gnu.org; Thu, 02 Oct 2014 09:26:43 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:55326) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZgP0-0006im-Sd for 18598@debbugs.gnu.org; Thu, 02 Oct 2014 09:26:40 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFxKjo/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSQTh3EI0hkXjnoHhDgEjlSaRYFqg0wh X-IPAS-Result: ArUGAIDvNVNFxKjo/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSQTh3EI0hkXjnoHhDgEjlSaRYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="91493275" Original-Received: from 69-196-168-232.dsl.teksavvy.com (HELO pastel.home) ([69.196.168.232]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Oct 2014 09:26:36 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 378424820; Thu, 2 Oct 2014 09:26:36 -0400 (EDT) In-Reply-To: <878ukzt8tz.fsf@yandex.ru> (Vladimir Lomov's message of "Thu, 02 Oct 2014 13:05:28 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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:94026 Archived-At: > from rev. 118002 emacs refuses to start with `--daemon' option though it > works without noticeable changes when started as simple `emacs'. Running > `emacs --daemon' in terminal gives Indeed, sorry. I installed the patch below which seems to fix it. Stefan === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2014-10-02 03:19:32 +0000 +++ lisp/ChangeLog 2014-10-02 13:24:13 +0000 @@ -1,5 +1,9 @@ 2014-10-02 Stefan Monnier + * frame.el: Use lexical-binding. + (make-frame): Use t rather than nil for tty's window-system. + * startup.el (command-line): Use gui-method. + Consolidate management/ownership of selections. * select.el (gui-get-selection-alist): New method. (gui-get-selection): Use it. Rename from x-get-selection. === modified file 'lisp/frame.el' --- lisp/frame.el 2014-10-01 22:13:11 +0000 +++ lisp/frame.el 2014-10-02 13:18:18 +0000 @@ -1,4 +1,4 @@ -;;; frame.el --- multi-frame management independent of window systems +;;; frame.el --- multi-frame management independent of window systems -*- lexical-binding:t -*- ;; Copyright (C) 1993-1994, 1996-1997, 2000-2014 Free Software Foundation, Inc. @@ -680,7 +680,7 @@ ;; Now make the frame. (run-hooks 'before-make-frame-hook) (setq frame - (funcall (gui-method frame-creation-function w) params)) + (funcall (gui-method frame-creation-function (or w t)) params)) (normal-erase-is-backspace-setup-frame frame) ;; Inherit the original frame's parameters. (dolist (param frame-inherited-parameters) === modified file 'lisp/startup.el' --- lisp/startup.el 2014-10-01 22:13:11 +0000 +++ lisp/startup.el 2014-10-02 13:02:22 +0000 @@ -954,8 +954,7 @@ command-line-args)) ;; Initialize the window system. (Open connection, etc.) (funcall - (or (cdr (assq initial-window-system window-system-initialization-alist)) - (error "Unsupported window system `%s'" initial-window-system))) + (gui-method window-system-initialization (or initial-window-system t))) (put initial-window-system 'window-system-initialized t)) ;; If there was an error, print the error message and exit. (error