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: Fri, 22 Jun 2007 13:40:49 -0700 Message-ID: References: <87tzszkfyr.fsf@jurta.org> 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 1182544976 4269 80.91.229.12 (22 Jun 2007 20:42:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Jun 2007 20:42:56 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Juri Linkov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 22 22:42:54 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 1I1pxz-00028R-NB for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2007 22:42:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1pxz-0007ND-2T for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2007 16:42:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1pxv-0007N0-GJ for emacs-devel@gnu.org; Fri, 22 Jun 2007 16:42:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1pxt-0007Mo-0p for emacs-devel@gnu.org; Fri, 22 Jun 2007 16:42:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1pxs-0007Ml-Uj for emacs-devel@gnu.org; Fri, 22 Jun 2007 16:42:44 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1pxr-0006KT-Pq; Fri, 22 Jun 2007 16:42:44 -0400 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l5MKgeNw002443; Fri, 22 Jun 2007 15:42:41 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l5MKgd3Z013436; Fri, 22 Jun 2007 14:42:40 -0600 Original-Received: from dhcp-amer-csvpn-gw1-141-144-65-208.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 2981301761182544853; Fri, 22 Jun 2007 13:40:53 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87tzszkfyr.fsf@jurta.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 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:73657 Archived-At: > This duplicates the same code in three places. If we are going to keep > the practice of using three commands with different suffixes, then we can > at least simplify the definition of window/frame commands? These commands > could just let-bind a variable indicating the scope of the commands, and > call-interactively the basic command allowing `switch-to-buffer' to decide > where to display the buffer. Right; I agree. A variable or a helper function with a parameter or some such, to factor the common code. I wasn't sure what the policy/preference was. Feel free to factor things per the standard practice, whatever it might be.