From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#2138: 23.0.60; --daemon and ediff-window-setup-function Date: Sun, 01 Feb 2009 16:30:54 +0100 Message-ID: <8763jutbrl.fsf@escher.local.home> 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: Stephen Berman , 2138@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233503132 25869 80.91.229.12 (1 Feb 2009 15:45:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2009 15:45:32 +0000 (UTC) Cc: 2138@emacsbugs.donarmstrong.com To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 16:46:46 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 1LTeWl-0004q7-PV for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 16:46:32 +0100 Original-Received: from localhost ([127.0.0.1]:48672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTeVS-00027Y-SA for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 10:45:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTeTv-0001l3-Ah for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 10:43:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTeTt-0001kE-Mo for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 10:43:34 -0500 Original-Received: from [199.232.76.173] (port=58353 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTeTt-0001k7-Ey for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 10:43:33 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38339) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTeTs-0002ra-Se for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 10: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 n11FhVgR007809; Sun, 1 Feb 2009 07:43:31 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n11Fe4C9006734; Sun, 1 Feb 2009 07:40:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 01 Feb 2009 15:40: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.12335022675389 (code B ref 2138); Sun, 01 Feb 2009 15:40:04 +0000 Original-Received: (at 2138) by emacsbugs.donarmstrong.com; 1 Feb 2009 15:31:07 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n11FV2gH005383 for <2138@emacsbugs.donarmstrong.com>; Sun, 1 Feb 2009 07:31:04 -0800 Original-Received: (qmail invoked by alias); 01 Feb 2009 15:30:56 -0000 Original-Received: from i59F575FE.versanet.de (EHLO escher.local.home) [89.245.117.254] by mail.gmx.net (mp055) with SMTP; 01 Feb 2009 16:30:56 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX18o0x46z0kos7xiJnWSPMIeEoy75r95bvRu+Tb1bZ fC3msdl+tZTqkm Original-Received: by escher.local.home (Postfix, from userid 1000) id 2925F1D0D80; Sun, 1 Feb 2009 16:30:55 +0100 (CET) In-Reply-To: <200902011450.n11EoBgg026080@rodan.ics.uci.edu> (Dan Nicolaescu's message of "Sun, 1 Feb 2009 06:50:11 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 01 Feb 2009 10:43:34 -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:24798 Archived-At: On Sun, 1 Feb 2009 06:50:11 -0800 (PST) Dan Nicolaescu wrote: > 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 Ok, now I see what you meant. > > 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. Yes, I too now see this is an ediff bug. Thanks for the response! Steve Berman