From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Bennee Newsgroups: gmane.emacs.help Subject: Re: Is there a function for display-buffer-in-biggest-window? Date: Fri, 6 Jul 2012 16:36:10 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1341588983 322 80.91.229.3 (6 Jul 2012 15:36:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Jul 2012 15:36:23 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Leo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 06 17:36:23 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SnAZx-0008Q0-EO for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jul 2012 17:36:21 +0200 Original-Received: from localhost ([::1]:34886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnAZw-00088E-Eq for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jul 2012 11:36:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnAZq-00087x-Po for help-gnu-emacs@gnu.org; Fri, 06 Jul 2012 11:36:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnAZo-00065B-TG for help-gnu-emacs@gnu.org; Fri, 06 Jul 2012 11:36:14 -0400 Original-Received: from mail-vb0-f41.google.com ([209.85.212.41]:46029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnAZo-00063s-Pp for help-gnu-emacs@gnu.org; Fri, 06 Jul 2012 11:36:12 -0400 Original-Received: by vbkv13 with SMTP id v13so7450157vbk.0 for ; Fri, 06 Jul 2012 08:36:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=ZJwE4yBk1dvqoneul5A+HWpbm16qU22eWTer8sn6qbo=; b=pBvu3i96a0V53b/8wMAYiB3I1s3khPgPo/z96WsynL4U5N2a0TFWPcmcHdiGVqzlJs 5oj5Enz5KPCWbZSgNSk+xXeRvcs/9tzVYsgXvluhTsZQ3JygkGpyqkfD/Bw31EKZA8O3 gWobRQSKaMwhkn83Iqc6NQEPimUmGnA73n9uWQWFRYS+a540nG5yLLW7Z7E3U3iOZrsc KI34tz3IaB3N1w68Wmp1FG3F/wzIw3a17zqTNmm4R3f4hQL73E93e1Pd7Y7JBwyVJ4Wl kNj3+/LiMXKebVjkJwkkjphjPjFRs44JtEZFwqdGapqqWYjqRNkW49GFlFTJI2JKJOdi ebBg== Original-Received: by 10.220.240.148 with SMTP id la20mr14731811vcb.39.1341588970339; Fri, 06 Jul 2012 08:36:10 -0700 (PDT) Original-Received: by 10.220.5.14 with HTTP; Fri, 6 Jul 2012 08:36:10 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: UP8p7xAPkAKoaExvn8RbzXVCjEU X-Gm-Message-State: ALoCoQmi7AgjJSSVyqAA6hFVHS0OGGAZu3cKWYFbU9TvLNkl8oSDvBgYcSXhpQicCdJVMfZxHsKu X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85699 Archived-At: On 6 July 2012 15:34, Leo wrote: > On 2012-07-06 20:19 +0800, Alex Bennee wrote: >> My work station has a fairly wide monitor on it now so my main work >> frame has been split thusly: > > > (set-window-buffer (get-largest-window) ) Thanks. I figured emacs must have this somewhere. I was getting lost in a list of apropos results all subtly different. Follow-up question. Is there a "proper" way to use this function for general buffer focus operations or do you need to rely on modes having customisable buffer switch functions like magit's magit-status-buffer-switch-function? At the moment I'm looking at compilation-mode's goto error code and it's less than obvious to me how the eventual switch happens. -- Alex, homepage: http://www.bennee.com/~alex/ http://www.half-llama.co.uk