From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.devel Subject: Re: how about a find-library-other-window command? Date: Wed, 20 Jun 2007 20:21:29 +0300 Organization: Mivtach-Simon Insurance agencies Message-ID: <200706201721.l5KHLTg4026198@beta.mvs.co.il> References: <87bqfb7grk.fsf@jurta.org> <87abuuhg52.fsf@jurta.org> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182360110 20915 80.91.229.12 (20 Jun 2007 17:21:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2007 17:21:50 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca To: juri@jurta.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 20 19:21:46 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 1I13sF-0004nj-LS for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 19:21:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I13sE-0008CZ-RO for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 13:21:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I13sB-0008AZ-N4 for emacs-devel@gnu.org; Wed, 20 Jun 2007 13:21:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I13s9-00088i-O1 for emacs-devel@gnu.org; Wed, 20 Jun 2007 13:21:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I13s9-00088f-Iy for emacs-devel@gnu.org; Wed, 20 Jun 2007 13:21:37 -0400 Original-Received: from bzq-193-16-147-12.bgp.bezeqint.net ([193.16.147.12] helo=unix.mvs.co.il) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I13s7-0005uP-FX; Wed, 20 Jun 2007 13:21:36 -0400 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.7/8.13.7) with ESMTP id l5KHLUp8008345; Wed, 20 Jun 2007 20:21:30 +0300 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.13.8/8.13.8) with ESMTP id l5KHLUNc026201; Wed, 20 Jun 2007 20:21:30 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.13.8/8.13.8/Submit) id l5KHLTg4026198; Wed, 20 Jun 2007 20:21:29 +0300 In-reply-to: <87abuuhg52.fsf@jurta.org> (message from Juri Linkov on Wed, 20 Jun 2007 17:09:14 +0300) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) 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:73449 Archived-At: On Wed, 20 Jun 2007 17:09:14 +0300, Juri Linkov wrote: > > Let me express more clear what I meant: not each command should test the flag, > but only a new function `show-buffer' used by these commands. > > So for instance having > > (defun foo () > (interactive) > ... > (show-buffer new-buffer)) > > bound to some key (e.g. `C-c C-f'). > > Then after typing `C-x 4 C-c C-f', the prefix `C-x 4' will set some > special variable, and `show-buffer' called by this command will detect it > and put `this-command' to the user config alist with a flag to reuse this > user preference next time this command is called without the prefix `C-x 4'. > > > Another drawback of this method is you'd have to type C-x 4 C-x C-f. > > You have to type `C-x 4 C-x C-f' only once. After `show-buffer' records the > fact of calling with the prefix `C-x 4' first time, it will reuse this > preference on subsequent invocations without the prefix `C-x 4'. And you have to define a new prefix (C-x what?) to restore the one window/frame behavior again for this function (each separately) ? Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D Better Safe Than Sorry