From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.bugs Subject: ediff behavior with ediff-setup-windows-plain Date: Tue, 23 Jul 2002 14:27:07 +0200 (MEST) Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200207231227.g6NCR7F26050@sfsw51.de.lucent.com> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1027427300 2491 127.0.0.1 (23 Jul 2002 12:28:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 23 Jul 2002 12:28:20 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Wym2-0000e3-00 for ; Tue, 23 Jul 2002 14:28:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17WymG-0004dC-00; Tue, 23 Jul 2002 08:28:32 -0400 Original-Received: from ihemail1.lucent.com ([192.11.222.161] helo=ihemail1.firewall.lucent.com) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Wyl0-0004YS-00 for ; Tue, 23 Jul 2002 08:27:14 -0400 Original-Received: from nbgif1.de.lucent.com (h135-248-192-26.lucent.com [135.248.192.26]) by ihemail1.firewall.lucent.com (Switch-2.2.2/Switch-2.2.0) with ESMTP id g6NCRC302819 for ; Tue, 23 Jul 2002 08:27:12 -0400 (EDT) Original-Received: from sfsws1.de.lucent.com (sfsws1 [135.248.217.84]) by nbgif1.de.lucent.com (8.8.8/8.8.5) with ESMTP id OAA12615 for ; Tue, 23 Jul 2002 14:27:08 +0200 (MEST) Original-Received: from sfsw51.de.lucent.com (sfsw51 [135.248.210.168]) by sfsws1.de.lucent.com (8.11.6+Sun/8.8.5) with ESMTP id g6NCR7H01325 for ; Tue, 23 Jul 2002 14:27:08 +0200 (MEST) Original-Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.6+Sun/8.8.8) id g6NCR7F26050; Tue, 23 Jul 2002 14:27:07 +0200 (MEST) Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2845 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2845 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.2 (sparc-sun-solaris2.7, Motif Version 2.1.0) of 2002-04-25 on sfsw54 configured using `configure --with-gcc --prefix=/vol/freeware/SunOS-5.7/emacs/21.2 --sharedstatedir=/vol/freeware/SunOS-5.7/emacs/21.2/share --with-x-toolkit=motif --x-includes=/usr/openwin/include:/usr/local/gnu/include --x-libraries=/usr/openwin/lib:/usr/local/gnu/lib --with-pop' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: in emacs 20.7 I've used the following sequence to start ediff in a new frame but with all diff buffers in one frame (maybe one should do that differently but at least it worked): (add-hook 'ediff-mode-hook (lambda () (select-frame (make-frame)))) (setq ediff-window-setup-function 'ediff-setup-windows-plain) (add-hook 'ediff-startup-hook 'ediff-toggle-wide-display) this doesn't work properly anymore in emacs 21.2. emacs now displays the diffs in both frames and jumps back and forth between those 2 frames. I debugged a bit and I think it's caused by the function ediff-skip-unsuitable-frames that seems to be rewritten in version 21. When I change this function back to the old one from 20.7 emacs behaves normally (the way I expect it), i.e. opens a new frame with 3 windows and the other frame doesn't change. Here's the call stack for ediff-files upto what I think is the culprit: * ediff-skip-unsuitable-frames() ediff-destroy-control-frame(#) ediff-setup-windows-plain-compare(# # nil #) ediff-setup-windows-plain(# # nil #) ediff-setup-windows(# # nil #) ediff-setup(# "/home/kzeitler/tst/c1" # "/home/kzeitler/tst/c2" nil nil nil ((ediff-job-name . ediff-files)) nil) ediff-files-internal("/home/kzeitler/tst/c1" "/home/kzeitler/tst/c2" nil nil ediff-files) ediff-files("/home/kzeitler/tst/c1" "/home/kzeitler/tst/c2") Recent input: C-j C-j C-j x e d i f f - f i l e s C-a C-k ~ / t s t / c 1 2 n q y C-x 5 0 C-a C-x k C-x k Recent messages: Reading file /home/kzeitler/tst/c1 ... Reading file /home/kzeitler/tst/c2 ... Computing differences between c1 and c2 ... Buffer A: Processing difference region 0 of 1 Buffer B: Processing difference region 0 of 1 Processing difference regions ... done Refining difference region 1 ... [4 times] Loading emacsbug...done