From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.help Subject: Re: list-buffers - winwod-height Supersedes: Date: Tue, 04 Apr 2006 10:11:03 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144114832 17973 80.91.229.2 (4 Apr 2006 01:40:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2006 01:40:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 04 03:40:29 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FQaWv-0001yP-11 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Apr 2006 03:40:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQaWu-00042m-Ha for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Apr 2006 21:40:24 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-X-Trace: individual.net zKhp5867g0IK34NuDDzvQAdYlfuNas4hNu5jvLX1zQMRPZrMw= User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/23.0.0 (gnu/linux) 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&( Cancel-Key: sha1:ypD/4XIlCZbPfWLoJOU4obFkUXk= Cancel-Lock: sha1:2ta/2LWMDDoCpTEJch/VwU+kL/U= Original-Xref: shelby.stanford.edu gnu.emacs.help:138527 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34145 Archived-At: >>>>> In Rares Vernica wrote: > How can I set the default height of the list-buffers window? There seems to be no way other than using your own command. How about this? --8<---------------cut here---------------start------------->8--- (setq my-list-buffers-window-height 16) (defun my-list-buffers (&optional files-only) (interactive "P") (let ((buffer (list-buffers-noselect files-only))) (display-buffer buffer) (enlarge-window (max (- (window-height (get-buffer-window buffer)) my-list-buffers-window-height) (- window-min-height (window-height)))))) (substitute-key-definition 'list-buffers 'my-list-buffers global-map) --8<---------------cut here---------------end--------------->8--- Otherwise, you can use the `special-display-buffer-names' variable if you'd like to pop up a frame. For example: (add-to-list 'special-display-buffer-names '("*Buffer List*" (height . 16) (width . 80)))