From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: how about a find-library-other-window command? Date: Tue, 19 Jun 2007 13:55:03 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182286536 17303 80.91.229.12 (19 Jun 2007 20:55:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2007 20:55:36 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 19 22:55:35 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 1I0kjd-0000gk-MX for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2007 22:55:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0kjd-0003q5-Fi for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2007 16:55:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0kja-0003my-8z for emacs-devel@gnu.org; Tue, 19 Jun 2007 16:55:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0kjY-0003kv-O2 for emacs-devel@gnu.org; Tue, 19 Jun 2007 16:55:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0kjY-0003km-JT for emacs-devel@gnu.org; Tue, 19 Jun 2007 16:55:28 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0kjY-00080V-1G for emacs-devel@gnu.org; Tue, 19 Jun 2007 16:55:28 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l5JKtPDh006027 for ; Tue, 19 Jun 2007 14:55:25 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l5JKtNV8010138 for ; Tue, 19 Jun 2007 14:55:23 -0600 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-80-227.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 2968760591182286508; Tue, 19 Jun 2007 13:55:08 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 In-Reply-To: X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: 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:73338 Archived-At: > 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"). > ... This is all beginning to sound a bit complex. Perhaps worth exploring, but, in the meantime, could we at least add `find-library-other-window'? ;-)