From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#4748: 23.1; least recently used window - is it? Date: Sun, 18 Oct 2009 23:28:43 -0700 Message-ID: <1BFDEAEBA19040FBB0AC56AF03E66C6F@us.oracle.com> References: <4D3E3BC7322D4F79988F82996F46CE28@us.oracle.com><4ADAECF8.7020200@gmx.at><361C5607E07445959296A72FA999D368@us.oracle.com> Reply-To: Drew Adams , 4748@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255934864 9759 80.91.229.12 (19 Oct 2009 06:47:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2009 06:47:44 +0000 (UTC) Cc: 4748@emacsbugs.donarmstrong.com To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 19 08:47:30 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mzm1h-0003Ql-Qe for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2009 08:47:30 +0200 Original-Received: from localhost ([127.0.0.1]:57688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mzm1g-0005uN-VX for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2009 02:47:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mzm1Y-0005sc-67 for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2009 02:47:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mzm1T-0005oe-A0 for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2009 02:47:19 -0400 Original-Received: from [199.232.76.173] (port=54712 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mzm1T-0005ob-6a for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2009 02:47:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57213) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mzm1S-0005TL-Jh for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2009 02:47:14 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9J6lCPV013234; Sun, 18 Oct 2009 23:47:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9J6e6cf012074; Sun, 18 Oct 2009 23:40:06 -0700 Resent-Date: Sun, 18 Oct 2009 23:40:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 19 Oct 2009 06:40:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4748 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4748-submit@emacsbugs.donarmstrong.com id=B4748.125593384511253 (code B ref 4748); Mon, 19 Oct 2009 06:40:05 +0000 Original-Received: (at 4748) by emacsbugs.donarmstrong.com; 19 Oct 2009 06:30:45 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from rgminet12.oracle.com (rcsinet12.oracle.com [148.87.113.124]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9J6UiC7011247 for <4748@emacsbugs.donarmstrong.com>; Sun, 18 Oct 2009 23:30:45 -0700 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9J6UDoI001349 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 19 Oct 2009 06:30:15 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9J6Vff2014689; Mon, 19 Oct 2009 06:31:41 GMT Original-Received: from abhmt017.oracle.com by acsmt355.oracle.com with ESMTP id 20471752421255933725; Sun, 18 Oct 2009 23:28:45 -0700 Original-Received: from dradamslap1 (/24.5.184.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 18 Oct 2009 23:28:45 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcpQX+Nb1GZl8RTDRSGBwNOkyRfpXAAI4eiQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4ADC078B.0049:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 19 Oct 2009 02:47:19 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32091 Archived-At: > The window used by pop-to-buffer depends on so many different factors > that it's illusory to think you can control it from the outside. You didn't respond to the question, which was how to replace `switch-to-buffer', to both (a) keep the same-window and `quit-window' behavior that people are used to (and presumably want) and (b) respect `special-display-*' and `pop-up-frames'. Those vars would take precedence, but if their values don't require using another frame, then the behavior should be to do what `switch-to-buffer' does now (use the same window). I don't need this for myself (other than curiosity), but I understood that an aim was to move away from using `switch-to-buffer' in Emacs code and encourage the same for 3rd-party code. And I understood that one reason for that was that `switch-to-buffer' does not respect those use-other-frame variables (that's what bothers me about it, at least). If that's not the case, then don't worry about the question. I use `pop-to-buffer', myself. FWIW, this came up because I was replacing some code in `bookmark-bmenu-list', and I wanted to preserve the `switch-to-buffer' that users are used to (and might prefer), while at the same time making it sane wrt `special-display-regexps' (for users like me). So far, I'm just using this to replace the `switch-to-buffer' call - it at least DTRT for one-window frames: (let ((one-win-p (one-window-p))) (pop-to-buffer (get-buffer-create "*Bookmark List*")) (when one-win-p (delete-other-windows)))