From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel Subject: Re: [display-buffer] a way to make it behave as before? Date: Mon, 20 Jun 2011 15:21:09 +0900 Organization: Emacsen advocacy group Message-ID: References: <4DFB7705.2000401@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1308550912 16723 80.91.229.12 (20 Jun 2011 06:21:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2011 06:21:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 20 08:21:45 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QYXrk-0006YT-V5 for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2011 08:21:45 +0200 Original-Received: from localhost ([::1]:56176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYXrk-0003Qp-3k for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2011 02:21:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYXrW-0003Qf-GL for emacs-devel@gnu.org; Mon, 20 Jun 2011 02:21:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYXrV-00065t-IA for emacs-devel@gnu.org; Mon, 20 Jun 2011 02:21:30 -0400 Original-Received: from orlando.hostforweb.net ([216.246.45.90]:55468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYXrV-00065p-ER for emacs-devel@gnu.org; Mon, 20 Jun 2011 02:21:29 -0400 Original-Received: from localhost ([127.0.0.1]:51609) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1QYXrT-0000Hi-79; Mon, 20 Jun 2011 01:21:27 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (cygwin) Cancel-Lock: sha1:ybnIwgy3gv9Mzjxh7Nzt5EftKfE= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: Linux 2.6? (barebone, rare!) X-Received-From: 216.246.45.90 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140706 Archived-At: Katsumi Yamaoka wrote: > I only want to see it in the other window of the current frame. Maybe this one is the nearest to what I exactly want. :) (when (boundp 'display-buffer-alist) ;; Specify the frame size used when creating a new frame. (unless (assq 'pop-up-frame-alist (car display-buffer-alist)) (setcdr (car display-buffer-alist) (append (cdr (car display-buffer-alist)) '((pop-up-frame-alist (height . 35) (width . 80)))))) (let ((spec (prin1-to-string display-buffer-alist)) (start 0)) ;; Delete `largest' and `lru' elements in every specifiers. (while (string-match "(\\(?:largest\\|lru\\)\\(?: [^)]+\\)?)" spec) (setq spec (concat (substring spec 0 (match-beginning 0)) (substring spec (match-end 0))))) ;; Make `same' elements void. (while (string-match " same\\([ )]\\)\\|\\(?:(same\\(?: [^)]+\\)?)\\)" spec start) (setq start (+ (match-beginning 0) (if (match-beginning 1) 14 12)) spec (concat (substring spec 0 (match-beginning 0)) (if (match-beginning 1) (concat " (same . nil)" (match-string 1 spec)) "(same . nil)") (substring spec (match-end 0))))) (setq display-buffer-alist (read spec))))