From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Skilbeck Newsgroups: gmane.emacs.help Subject: Re: Having browse-url-text-emacs open in other window Date: Wed, 11 Jul 2012 15:35:18 +0100 Message-ID: <20120711143518.GA19749@mark-laptop> References: <20120710101403.GC12024@mark-laptop> <87vchvsyms.fsf@gnu.org> <20120710104131.GD12024@mark-laptop> <87ehoidh3w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1342017359 28707 80.91.229.3 (11 Jul 2012 14:35:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2012 14:35:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Bastien Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 11 16:35:58 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 1Soy1E-00049r-5w for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2012 16:35:56 +0200 Original-Received: from localhost ([::1]:47107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Soy1D-0007E8-87 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2012 10:35:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Soy11-0006tQ-Px for help-gnu-emacs@gnu.org; Wed, 11 Jul 2012 10:35:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Soy0s-0007Uh-0u for help-gnu-emacs@gnu.org; Wed, 11 Jul 2012 10:35:43 -0400 Original-Received: from li357-97.members.linode.com ([178.79.188.97]:51667 helo=mail.iammark.us) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Soy0h-00079F-Dx; Wed, 11 Jul 2012 10:35:23 -0400 Original-Received: from mail.iammark.us (host86-147-192-28.range86-147.btcentralplus.com [86.147.192.28]) by mail.iammark.us (Postfix) with ESMTPSA id 0D22CAC27; Wed, 11 Jul 2012 15:35:19 +0100 (BST) Content-Disposition: inline In-Reply-To: <87ehoidh3w.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 178.79.188.97 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:85797 Archived-At: On Wed, Jul 11, 2012 at 07:03:31AM +0200, Bastien wrote: > Hi Mark, > > Mark Skilbeck writes: > > > Indeed, I saw this while browsing the documentation. However, it > > doesn't do as it says-on-the-tin, at least not in my experience. > > Sorry I misread the documentation myself. > > I would advise the function like this: > > (defadvice browse-url (before browse-url-other-window activate) > (switch-to-buffer-other-window (get-buffer-create "*Browser*"))) > > HTH, > Cool! That works almost perfectly. However, there is a dangling *Browser* buffer when I leave the browser process. I got around this by doing: (defadvice browse-url (before browse-url-other-window activate) (switch-to-buffer-other-window nil t)) However, this isn't *entirely* desirable. If I have two windows, A and B, split vertically with a buffer C not displayed, using the above advice, either A or B (depending on which window is switched-into) is changed to the C buffer on exiting the browser. It's not a show stopper, in fact it's much better than the default behaviour of opening the browser in the same window! Thanks for your help. -- - mgs. if all you young men / were fish in the water how many young girls / would undress and dive after