From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Working with one buffer in two frames/windows Date: Sat, 12 Jul 2008 10:21:57 +0200 Message-ID: <85myknqzq2.fsf@lola.goethe.zz> References: <86tzew3d1c.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215850935 13364 80.91.229.12 (12 Jul 2008 08:22:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jul 2008 08:22:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 12 10:23:03 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KHaNg-000147-Oq for ged-emacs-devel@m.gmane.org; Sat, 12 Jul 2008 10:23:01 +0200 Original-Received: from localhost ([127.0.0.1]:45704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHaMo-0001nc-UM for ged-emacs-devel@m.gmane.org; Sat, 12 Jul 2008 04:22:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KHaMk-0001nO-7h for emacs-devel@gnu.org; Sat, 12 Jul 2008 04:22:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KHaMi-0001n2-Bq for emacs-devel@gnu.org; Sat, 12 Jul 2008 04:22:01 -0400 Original-Received: from [199.232.76.173] (port=33671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHaMi-0001ms-6j for emacs-devel@gnu.org; Sat, 12 Jul 2008 04:22:00 -0400 Original-Received: from mail-in-11.arcor-online.net ([151.189.21.51]:48992) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KHaMh-0008HZ-OU for emacs-devel@gnu.org; Sat, 12 Jul 2008 04:22:00 -0400 Original-Received: from mail-in-18-z2.arcor-online.net (mail-in-18-z2.arcor-online.net [151.189.8.35]) by mail-in-11.arcor-online.net (Postfix) with ESMTP id 1D27A2091CB; Sat, 12 Jul 2008 10:21:58 +0200 (CEST) Original-Received: from mail-in-17.arcor-online.net (mail-in-17.arcor-online.net [151.189.21.57]) by mail-in-18-z2.arcor-online.net (Postfix) with ESMTP id 0309E5102D2; Sat, 12 Jul 2008 10:21:58 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-040-057.pools.arcor-ip.net [84.61.40.57]) by mail-in-17.arcor-online.net (Postfix) with ESMTP id DC00F2BC97F; Sat, 12 Jul 2008 10:21:57 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 508F41CFAEEE; Sat, 12 Jul 2008 10:21:57 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Fri, 11 Jul 2008 22:24:09 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: ClamAV 0.93.3/7694/Fri Jul 11 22:39:39 2008 on mail-in-17.arcor-online.net X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100605 Archived-At: Stefan Monnier writes: >> it is annoyingly impossible to keep working with two views of the same >> buffer. For example, say that I have a file text.tex open in two frames >> since I want to work on two different locations of it via >> comparison/cut&paste/whatever. > >> Now I type M-x gnus RET, read news and quit again. As a consequence, a >> totally unrelated buffer pops up. And of course, when I get back the >> buffer again (which is not the default offered), the window point is >> lost and replaced by that of the other frame that is still on. > > Yes, it's problematic. Emacs's buffer/window management presumes you > most likely want to display a buffer in only 1 window at a time. It is clearly presuming too much and remembering too little about my preferences. > As someone else mentioned you can kind of work around this via > clone-indirect-buffer. > >> That is quite a nuisance. Are there some ways to make a two-view setup >> less ephemeral? > > You might want to try and play with window-configs. Do you mean as in "find your own private way to fight Emacs' misbehavior" or in "somebody should really start working on improving this, and maybe you could give it a thought"? I don't think that the solution lies in user commands. The behavior for temporary screens like help screens and gnus screens and other stuff is far too egregiously annoying to make it reasonable to require the user to fight for his window configuration each time. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum