From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Alekseyev Newsgroups: gmane.emacs.help Subject: Re: How to make display-buffer automatically focus (e.g. for help buffers) Date: Mon, 13 Jul 2009 12:02:30 -0400 Message-ID: <14cd9a5d0907130902i71c0ca55q4e6b66ad8d763ac8@mail.gmail.com> References: <4A5B4E4B.5030504@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247504472 15505 80.91.229.12 (13 Jul 2009 17:01:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2009 17:01:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: martin rudalics Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 13 19:01:05 2009 Return-path: Envelope-to: geh-help-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 1MQOtj-0000Vo-O5 for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2009 19:01:04 +0200 Original-Received: from localhost ([127.0.0.1]:56925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQOtj-00056M-14 for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2009 13:01:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQNzC-0000nj-Ea for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 12:02:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQNz7-0000lW-QR for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 12:02:38 -0400 Original-Received: from [199.232.76.173] (port=47679 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQNz7-0000lE-C9 for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 12:02:33 -0400 Original-Received: from mail-bw0-f219.google.com ([209.85.218.219]:62229) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQNz6-0006vy-PV for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 12:02:32 -0400 Original-Received: by bwz19 with SMTP id 19so451894bwz.42 for ; Mon, 13 Jul 2009 09:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SghV4l5IkrvADRJPXaOTKXod9qzSIbNubWZY7CaK9W0=; b=K4GW/wIqPcVk5AOp3c+BaLonp1Lpj2TpxlvrBIwIU6NWl1eLiPNoCUCEEIKXPJ3BXM /h3K0rxzZ3xt8wZj1Q7CJ+qaEfXc4Cta6iLLaAJ0K1NVPFSVRcW8JE48/M4r+CoDLR0h +ib7MwLW8cN4V2QP/o3pmO7HfvE1/p97iFt5Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=u0e79k4EbForxQqj86Ah+gGqi8uXLeRPSlRgV4BlHbB/aDjUGIcBwbz0kljRcaG3le AfLHmBMxiUVj9F7HfH0RMVRtEZNtRiiIbeEOzm2liURJGLOXAVQvwBOLVNYaEKh9xtwO XIKku94f1AgPzVR0K2vCpnbPNkpgKskuzuglE= Original-Received: by 10.204.54.16 with SMTP id o16mr5334231bkg.146.1247500950955; Mon, 13 Jul 2009 09:02:30 -0700 (PDT) In-Reply-To: <4A5B4E4B.5030504@gmx.at> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:66037 Archived-At: > For help buffers you should be able to do that by customizing > `help-window-select' to t. This is terrific, I searched hard for this functionality and couldn't find = it! > The canonical function for this purpose is `pop-to-buffer'. =A0Wherever > `display-buffer' is called, the explicit intention is to _not_ select > the window that command uses. That is true -- but it would be nice if there were a way to override this; the help-window-select t customization effectively replaces display-buffer behavior with pop-top-buffer for help buffers; it is conceivable that one might want to do this for other types of buffers as well. > Most of these buffers should be in View mode and typing `q' should quit > them. =A0Which ones don't? > For instance, using AucTeX the TeX errors are displayed in a buffer that uses display-buffer and is writeable; I've seen other similar instances before... It would be nice to be able to have them be automatically focused in view mode and dismissed via 'q'. One workaround is to bury those buffers via a winner-undo, or perhaps write a function that switches windows, kills buffer and performs winner-undo or equivalent, but it's not wholly satisfactory...