From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Working with one buffer in two frames/windows Date: Fri, 11 Jul 2008 22:24:09 -0400 Message-ID: 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 1215829468 4664 80.91.229.12 (12 Jul 2008 02:24:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jul 2008 02:24:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 12 04:25:15 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 1KHUnS-0001Ah-0b for ged-emacs-devel@m.gmane.org; Sat, 12 Jul 2008 04:25:14 +0200 Original-Received: from localhost ([127.0.0.1]:49223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHUma-0007UU-6L for ged-emacs-devel@m.gmane.org; Fri, 11 Jul 2008 22:24:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KHUmV-0007Sa-Pe for emacs-devel@gnu.org; Fri, 11 Jul 2008 22:24:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KHUmU-0007RI-FK for emacs-devel@gnu.org; Fri, 11 Jul 2008 22:24:14 -0400 Original-Received: from [199.232.76.173] (port=46562 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHUmU-0007RF-CG for emacs-devel@gnu.org; Fri, 11 Jul 2008 22:24:14 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:32774 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KHUmR-0000c8-Fm; Fri, 11 Jul 2008 22:24:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnEDAGeyd0jO+IfCdGdsb2JhbACBWpBSASeXR4Fo X-IronPort-AV: E=Sophos;i="4.30,348,1212379200"; d="scan'208";a="24251013" Original-Received: from 206-248-135-194.dsl.teksavvy.com (HELO pastel.home) ([206.248.135.194]) by ironport2-out.teksavvy.com with ESMTP; 11 Jul 2008 22:24:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id DA3B0897A; Fri, 11 Jul 2008 22:24:09 -0400 (EDT) In-Reply-To: <86tzew3d1c.fsf@lola.quinscape.zz> (David Kastrup's message of "Fri, 11 Jul 2008 12:55:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:100601 Archived-At: > 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. 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. Stefan