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: how about a find-library-other-window command? Date: Tue, 19 Jun 2007 16:41:36 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182286018 15498 80.91.229.12 (19 Jun 2007 20:46:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2007 20:46:58 +0000 (UTC) Cc: Drew Adams , Emacs-Devel To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 19 22:46:57 2007 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 1I0kbI-0007GT-29 for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2007 22:46:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0kbF-0000nD-IR for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2007 16:46:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0kbA-0000jP-EX for emacs-devel@gnu.org; Tue, 19 Jun 2007 16:46:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0kb7-0000iH-4s for emacs-devel@gnu.org; Tue, 19 Jun 2007 16:46:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0kb6-0000iE-Uu for emacs-devel@gnu.org; Tue, 19 Jun 2007 16:46:44 -0400 Original-Received: from bc.sympatico.ca ([209.226.175.184] helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I0kb4-0006xH-8a for emacs-devel@gnu.org; Tue, 19 Jun 2007 16:46:43 -0400 Original-Received: from pastel.home ([70.55.143.156]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070619204137.LEXP875.tomts22-srv.bellnexxia.net@pastel.home> for ; Tue, 19 Jun 2007 16:41:37 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 8A5AE813E; Tue, 19 Jun 2007 16:41:36 -0400 (EDT) In-Reply-To: (Andreas Schwab's message of "Tue\, 19 Jun 2007 21\:53\:09 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:73337 Archived-At: >> I'd be happy to change all that: remove/deprecate the -other-window >> commands and make the commands use either the same window or another >> depending on some user configuration. > That would make it very cumbersome to use if I had to change a > configuration option just to use an other-window command. I like David's idea also. Maybe we could try something as follows: - make use a new command like `switch-or-pop-to-buffer' which behavior depends on a "config var". - add prefix keys such as C-x 4 which can force one of the two behaviors for the next command (or maybe just one prefix key C-x 4 which toggles the behavior of the next command). - make the "config var" sufficiently complex that it doesn't just choose "always pop" or "always switch" but can choose different defaults for different commands. How to do that is up-in-the-air: - Maybe switch-or-pop-to-buffer would look at this-command (yuck) and do as assq search in a config alist based on that. - Or switch-or-pop-to-buffer would take an additional argument to specify the key to use an the alist search. - It would probably be good to be able to specify not just different behaviors depending on the command but also depending on the buffer in which it is executed (e.g. "always use switch when done inside a *Help* buffer"). ... Stefan