From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Working with one buffer in two frames/windows Date: Sun, 13 Jul 2008 07:53:28 +0900 Message-ID: <873ame7lzr.fsf@uwakimon.sk.tsukuba.ac.jp> References: <86tzew3d1c.fsf@lola.quinscape.zz> <85myknqzq2.fsf@lola.goethe.zz> <48788A04.8020204@gmx.at> <85lk07pdpx.fsf@lola.goethe.zz> <877ibq7s5g.fsf@uwakimon.sk.tsukuba.ac.jp> <857ibqomx2.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215902382 359 80.91.229.12 (12 Jul 2008 22:39:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jul 2008 22:39:42 +0000 (UTC) Cc: martin rudalics , Stefan Monnier , emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 13 00:40:29 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 1KHnlT-0002PM-Rs for ged-emacs-devel@m.gmane.org; Sun, 13 Jul 2008 00:40:28 +0200 Original-Received: from localhost ([127.0.0.1]:50356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHnkc-0004Uu-3O for ged-emacs-devel@m.gmane.org; Sat, 12 Jul 2008 18:39:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KHnkY-0004Sw-4k for emacs-devel@gnu.org; Sat, 12 Jul 2008 18:39:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KHnkW-0004SP-M2 for emacs-devel@gnu.org; Sat, 12 Jul 2008 18:39:29 -0400 Original-Received: from [199.232.76.173] (port=56925 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHnkW-0004SM-Ja for emacs-devel@gnu.org; Sat, 12 Jul 2008 18:39:28 -0400 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:37845) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KHnkR-000684-PW; Sat, 12 Jul 2008 18:39:24 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id 2CD431535A8; Sun, 13 Jul 2008 07:39:21 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 40FFD1A25C3; Sun, 13 Jul 2008 07:53:28 +0900 (JST) In-Reply-To: <857ibqomx2.fsf@lola.goethe.zz> X-Mailer: VM ?bug? under XEmacs 21.5.21 (x86_64-unknown-linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:100629 Archived-At: David Kastrup writes: > > (add-hook 'kill-buffer-hook 'View-quit 'append 'local) > I am not really all too convinced that one can cover everything in that > manner. Of course not. My intent was to suggest that view-mode could do an even better job cleaning up after itself in this small way. > Maybe windows with unique window-point and/or frame configurations > should be pushed into some history when something replaces them so > that the default behavior will tend to restore them. The problem is identifying them. Kyle Jones's VM comes with a library called tapestry that does a pretty good job of this for VM itself, but it doesn't help when returning to some other task. Many tasks seem to be built up from user-process-specific window and frame groups; how is Emacs to guess? I think that you do need a UI to tell Emacs which objects belong together. Of course, complex modes could and should do the user of calling that UI and saving the user the trouble. > > -- > David Kastrup, Kriemhildstr. 15, 44793 Bochum > >