From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#2138: 23.0.60; --daemon and ediff-window-setup-function Date: Sun, 01 Feb 2009 20:24:15 +0200 Message-ID: References: <87ljsrxcjm.fsf@escher.local.home> <200902010605.n11657oU019887@rodan.ics.uci.edu> <87ljsqz9nb.fsf@escher.local.home> <200902011450.n11EoBgg026080@rodan.ics.uci.edu> Reply-To: Eli Zaretskii , 2138@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1233513833 31265 80.91.229.12 (1 Feb 2009 18:43:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2009 18:43:53 +0000 (UTC) Cc: Dan Nicolaescu , stephen.berman@gmx.net To: Michael Kifer , 2138@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 19:45:06 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LThJT-0004Uw-Cr for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 19:44:59 +0100 Original-Received: from localhost ([127.0.0.1]:35811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LThIA-0005Ds-PY for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 13:43:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LThI6-0005DP-7b for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 13:43:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LThI5-0005D3-Eq for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 13:43:33 -0500 Original-Received: from [199.232.76.173] (port=36493 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LThI5-0005D0-A8 for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 13:43:33 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33632) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LThI4-0005CE-P0 for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 13:43:33 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n11IhVjO019990; Sun, 1 Feb 2009 10:43:31 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n11IZ4Gk017738; Sun, 1 Feb 2009 10:35:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 01 Feb 2009 18:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2138 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2138-submit@emacsbugs.donarmstrong.com id=B2138.123351271115990 (code B ref 2138); Sun, 01 Feb 2009 18:35:04 +0000 Original-Received: (at 2138) by emacsbugs.donarmstrong.com; 1 Feb 2009 18:25:11 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout6.012.net.il (mtaout6.012.net.il [84.95.2.16]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n11IP6gq015264 for <2138@emacsbugs.donarmstrong.com>; Sun, 1 Feb 2009 10:25:07 -0800 Original-Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KEE00200G6PVH00@i-mtaout6.012.net.il> for 2138@emacsbugs.donarmstrong.com; Sun, 01 Feb 2009 20:24:34 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.109.18]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KEE00GFKGGWKT40@i-mtaout6.012.net.il>; Sun, 01 Feb 2009 20:24:34 +0200 (IST) In-reply-to: <200902011450.n11EoBgg026080@rodan.ics.uci.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 01 Feb 2009 13:43:33 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24799 Archived-At: > Date: Sun, 1 Feb 2009 06:50:11 -0800 (PST) > From: Dan Nicolaescu > Cc: 2138@emacsbugs.donarmstrong.com > > Stephen Berman writes: > > > On Sat, 31 Jan 2009 22:05:07 -0800 (PST) Dan Nicolaescu wrote: > > > > > Stephen Berman writes: > > > > > > > Start Emacs like this: > > > > > > > > 1. emacs -Q --eval "(require 'ediff)" > > > > 2. emacsclient -c > > > > 3. C-h v ediff-window-setup-function > > > > => ediff-setup-windows-multiframe > > > > > > > > Now start Emacs like this: > > > > > > > > 1. emacs -Q --daemon --eval "(require 'ediff)" > > > > 2. emacsclient -c > > > > 3. C-h v ediff-window-setup-function > > > > => ediff-setup-windows-plain > > > > > > > > > > > > I haven't tried debugging this, but my first guess is that > > > > ediff-setup-windows-multiframe requires non-nil window-system but (still > > > > guessing) when there is no frame window-system evaluates to nil. > > > > > > You can take --daemon out of this equation, you'd get the same when > > > doing > > > emacs -Q and emacs -Q -nw > > > > I should have been more explicit about the point of this bug report, > > which is this: when I invoke `emacsclient -c' under X11, I expect the > > usual behavior under X11, but in the above case, --daemon apparently > > circumvents this behavior. > > Again, you get the same problem if you do: > emacs -Q -nw -f server-start --eval "(require 'ediff)" > emacsclient -c > M-x ediff > > and you have a problem if you do > emacs -Q -f server-start --eval "(require 'ediff)" > emacsclient -t > M-x ediff > > > I cannot tell from the current documentation when using --daemon has > > this effect and when it doesn't. Hence I cannot tell whether this is a > > bug or a limitation of the current implementation. So I hope this and > > similar bug reports lead to both more complete documentation and either > > a bug fix or, at some point, a more feature-rich implementation. > > Not really, this is not a problem with --daemon, it's a problem in the > ediff implementation that it evaluates ediff-window-setup-function at > load time. This is not appropriate anymore now when you can have both > X11 and tty frames in the same emacs session. Michael, could you please take care of this problem? Thanks.