From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#11960: Defective layout change on M-x ediff-buffers Date: Fri, 05 Oct 2012 18:14:15 +0200 Message-ID: <506F0757.80802@gmx.at> References: <87ipdmco95.fsf@math.ethz.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1349453695 21915 80.91.229.3 (5 Oct 2012 16:14:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2012 16:14:55 +0000 (UTC) Cc: Marius Hofert To: 11960@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 05 18:15:01 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 1TKAYG-00037V-Hf for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Oct 2012 18:15:00 +0200 Original-Received: from localhost ([::1]:44535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKAYA-0000lm-Bh for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Oct 2012 12:14:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKAY7-0000lb-WD for bug-gnu-emacs@gnu.org; Fri, 05 Oct 2012 12:14:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKAY6-00010S-Sq for bug-gnu-emacs@gnu.org; Fri, 05 Oct 2012 12:14:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKAY6-00010N-PS for bug-gnu-emacs@gnu.org; Fri, 05 Oct 2012 12:14:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TKAYH-0006oy-Qz for bug-gnu-emacs@gnu.org; Fri, 05 Oct 2012 12:15:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87ipdmco95.fsf@math.ethz.ch> Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Oct 2012 16:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11960 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11960-submit@debbugs.gnu.org id=B11960.134945367226157 (code B ref 11960); Fri, 05 Oct 2012 16:15:01 +0000 Original-Received: (at 11960) by debbugs.gnu.org; 5 Oct 2012 16:14:32 +0000 Original-Received: from localhost ([127.0.0.1]:56709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKAXn-0006np-Hz for submit@debbugs.gnu.org; Fri, 05 Oct 2012 12:14:31 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:38855) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TKAXl-0006na-6B for 11960@debbugs.gnu.org; Fri, 05 Oct 2012 12:14:30 -0400 Original-Received: (qmail invoked by alias); 05 Oct 2012 16:14:11 -0000 Original-Received: from 62-47-56-28.adsl.highway.telekom.at (EHLO [62.47.56.28]) [62.47.56.28] by mail.gmx.net (mp030) with SMTP; 05 Oct 2012 18:14:11 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19sUjELjklsIpX+8ycod5kAAvHTw8bx6UGJWlY3wp rQ/7qDYizsHsHg X-Y-GMX-Trusted: 0 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:65229 Archived-At: > 1) start emacs via emacs -Q > 2) open a buffer A > 3) use C-x 3 to open another buffer (buffer B) next to A (side-by-side) > 4) use M-x ediff-buffers to compare A and B. > > Instead of leaving the buffers arranged side-by-side (as obtained from > C-x 3), the buffers are displayed vertically (on top of each other) when > using 4). However, I would expect emacs to open them side-by-side as > well . Your expectation sounds intuitive. But the behavior of ediff is governed by the value of `ediff-split-window-function' and it would be wrong to override that. Moreover, at the time ediff applies that function, the original frame layout has been already destroyed. So you can either try to use something like the sloppy (add-hook 'ediff-before-setup-hook 'my-check-configuration) (defun my-check-configuration () (setq ediff-split-window-function (if (window-combination-p (frame-root-window)) 'split-window-below 'split-window-right))) or permanently set `ediff-split-window-function' to `split-window-right'. martin