From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#2138: 23.0.60; --daemon and ediff-window-setup-function Date: Sun, 1 Feb 2009 06:50:11 -0800 (PST) Message-ID: <200902011450.n11EoBgg026080@rodan.ics.uci.edu> References: <87ljsrxcjm.fsf@escher.local.home> <200902010605.n11657oU019887@rodan.ics.uci.edu> <87ljsqz9nb.fsf@escher.local.home> Reply-To: Dan Nicolaescu , 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 1233500775 19279 80.91.229.12 (1 Feb 2009 15:06:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2009 15:06:15 +0000 (UTC) Cc: 2138@emacsbugs.donarmstrong.com To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 16:07:29 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 1LTdsj-0000H1-JG for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 16:05:51 +0100 Original-Received: from localhost ([127.0.0.1]:46380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTdrQ-0004vM-UW for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 10:03:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTdrD-0004mW-VG for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 10:03:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTdrC-0004lP-3P for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 10:03:35 -0500 Original-Received: from [199.232.76.173] (port=55178 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTdrC-0004lF-03 for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 10:03:34 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48018) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTdrB-0007cT-9q for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 10:03: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 n11F3UUi029942; Sun, 1 Feb 2009 07:03:31 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n11F025Y028815; Sun, 1 Feb 2009 07:00:02 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 01 Feb 2009 15:00:02 +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.123349987427413 (code B ref 2138); Sun, 01 Feb 2009 15:00:02 +0000 Original-Received: (at 2138) by emacsbugs.donarmstrong.com; 1 Feb 2009 14:51:14 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n11EpBeo027407 for <2138@emacsbugs.donarmstrong.com>; Sun, 1 Feb 2009 06:51:12 -0800 Original-Received: from rodan.ics.uci.edu (rodan.ics.uci.edu [128.195.6.9]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n11EoDZV006143; Sun, 1 Feb 2009 06:50:13 -0800 (PST) Original-Received: (from dann@localhost) by rodan.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n11EoBgg026080; Sun, 1 Feb 2009 06:50:11 -0800 (PST) In-Reply-To: <87ljsqz9nb.fsf@escher.local.home> (Stephen Berman's message of "Sun, 01 Feb 2009 12:20:08 +0100") Original-Lines: 54 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n11EoDZV006143 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@rodan.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 01 Feb 2009 10:03:35 -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:24797 Archived-At: 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.