From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Suggestions for mode-line-format changes Date: 27 Aug 2002 11:16:27 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5xlm6su0es.fsf@kfs2.cua.dk> References: <20020827043344.3527F9865B@optonline.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030436239 30972 127.0.0.1 (27 Aug 2002 08:17:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 27 Aug 2002 08:17:19 +0000 (UTC) Cc: Michael Kifer , rms@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17jbXF-000831-00 for ; Tue, 27 Aug 2002 10:17:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17jc2T-0005FA-00 for ; Tue, 27 Aug 2002 10:49:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17jbYZ-0001Ib-00; Tue, 27 Aug 2002 04:18:35 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17jbWA-0001Dv-00 for emacs-devel@gnu.org; Tue, 27 Aug 2002 04:16:06 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17jbW8-0001Di-00 for emacs-devel@gnu.org; Tue, 27 Aug 2002 04:16:06 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17jbW8-0001Dd-00; Tue, 27 Aug 2002 04:16:04 -0400 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id EEE8A7C017; Tue, 27 Aug 2002 08:16:02 +0000 (GMT) Original-To: Miles Bader In-Reply-To: Original-Lines: 54 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6969 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6969 Miles Bader writes: > Michael Kifer writes: > > Miles> I'd like it so that command in one of the source buffers > > Miles> simply mapped to the control buffer, which would stay > > Miles> hidden (even when `in use'). > > > > This info is present, since each buffer has a local var that contain the > > list of control buffers of the ediff sessions related to it. > > Ok; so perhaps the following would suffice: > > * A minor-mode that just contains a keymap full of appropriate > commands that redirect to the first ediff control-buffer in the list > (perhaps conditionalized on buffer-read-only like in diff-mode). > It looks like `ediff-prepare-buffer-hook' could be used to turn on > the minor mode in each source buffer. For my normal ediff usage, the 'read-only' is command mode idea is really quite interesting. I use CVSREAD=y, i.e. my cvs files any normally checked out read-only. Only when I do "C-x v v", the file becomes writeable. Now, if I want to merge a change from one branch of the CVS tree, I first commit the changes on one branch, leaving the buffer containing the modified file read-only. I then open the file from the other branch and do C-x v v to make that revision writeable. This means that in one window I have the file _with modifications_ that I need to merge from (the source buffer) which is read-only, and in another window I have the file _without modifications_ which need to be patched (the target buffer) which is writeable. Now, with Miles' idea, I can freely edit the writeable target buffer using all my usual emacs commands without worrying about ediff, and to emit ediff commands, I simply switch to the read-only source buffer where the minor-mode keymap gives instant access to the ediff commands. Since this is how I use ediff 99% of the time, I'd love a simplified GUI like that! And although I've used ediff for years (and love it for the things it can do) I have never used multiple ediff sessions. > > * An ediff window-configuration function that always keeps the > control-window hidden. > -- Kim F. Storm http://www.cua.dk