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 05:40:27 +0900 Message-ID: <877ibq7s5g.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215894411 14208 80.91.229.12 (12 Jul 2008 20:26:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jul 2008 20:26:51 +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 Sat Jul 12 22:27:38 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 1KHlgv-0006F1-J9 for ged-emacs-devel@m.gmane.org; Sat, 12 Jul 2008 22:27:37 +0200 Original-Received: from localhost ([127.0.0.1]:43994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHlg3-00047x-Iq for ged-emacs-devel@m.gmane.org; Sat, 12 Jul 2008 16:26:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KHlfz-00047e-Gq for emacs-devel@gnu.org; Sat, 12 Jul 2008 16:26:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KHlfv-00047B-BO for emacs-devel@gnu.org; Sat, 12 Jul 2008 16:26:38 -0400 Original-Received: from [199.232.76.173] (port=58647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHlfv-000476-5U for emacs-devel@gnu.org; Sat, 12 Jul 2008 16:26:35 -0400 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:39431) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KHlfk-0005Pz-7o; Sat, 12 Jul 2008 16:26:24 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id 80A4B7FFA; Sun, 13 Jul 2008 05:26:20 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 588821A25C3; Sun, 13 Jul 2008 05:40:27 +0900 (JST) In-Reply-To: <85lk07pdpx.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:100623 Archived-At: David Kastrup writes: > martin rudalics writes: > > >> 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. > > > > If you have problems with `View-quit' when viewing a help buffer please > > report here. I have tried to handle that case but might have failed. > > I just tried for 10-seconds and it might do the right thing. However, > killing the view buffer with C-x k RET does not. (add-hook 'kill-buffer-hook 'View-quit 'append 'local) ? Yeah, I know, if somebody else does (add-hook ... 'append 'local) later they will be hosed; maybe `add-hook' needs a MUST-BE-LAST-P argument and error or warn if 'must-be-last has already been used? Or view-mode could rebind C-x k to something that does the equivalent of a before advice which checks if the buffer to kill is the current buffer, and if so does an add-one-shot-hook.