From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: pierre.techoueyres@free.fr (Pierre =?UTF-8?Q?T=C3=A9choueyres?=) Newsgroups: gmane.emacs.bugs Subject: bug#30673: [PATCH] Allow `browse-url-emacs' to fetch url in same window. Date: Sat, 10 Mar 2018 16:05:46 +0100 Message-ID: <87lgf0hsxh.fsf@killashandra.ballybran.fr> References: <87606fe3lg.fsf@killashandra.ballybran.fr> <836064uqgc.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1520694254 7118 195.159.176.226 (10 Mar 2018 15:04:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2018 15:04:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: 30673@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 10 16:04:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eug2b-0001kk-Jn for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Mar 2018 16:04:09 +0100 Original-Received: from localhost ([::1]:50999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eug4e-0000Tf-73 for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Mar 2018 10:06:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eug4V-0000TM-Cz for bug-gnu-emacs@gnu.org; Sat, 10 Mar 2018 10:06:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eug4Q-0003mk-Bx for bug-gnu-emacs@gnu.org; Sat, 10 Mar 2018 10:06:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eug4Q-0003ma-7K for bug-gnu-emacs@gnu.org; Sat, 10 Mar 2018 10:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eug4P-0003fx-K7 for bug-gnu-emacs@gnu.org; Sat, 10 Mar 2018 10:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: pierre.techoueyres@free.fr (Pierre =?UTF-8?Q?T=C3=A9choueyres?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Mar 2018 15:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30673 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 30673-submit@debbugs.gnu.org id=B30673.152069435114111 (code B ref 30673); Sat, 10 Mar 2018 15:06:01 +0000 Original-Received: (at 30673) by debbugs.gnu.org; 10 Mar 2018 15:05:51 +0000 Original-Received: from localhost ([127.0.0.1]:54285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eug4E-0003fW-W6 for submit@debbugs.gnu.org; Sat, 10 Mar 2018 10:05:51 -0500 Original-Received: from smtp4-g21.free.fr ([212.27.42.4]:52150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eug4D-0003fO-4j for 30673@debbugs.gnu.org; Sat, 10 Mar 2018 10:05:49 -0500 Original-Received: from killashandra.ballybran.fr.free.fr (unknown [IPv6:2a01:e35:2e14:eab0:b51f:3dc7:7e03:942]) by smtp4-g21.free.fr (Postfix) with ESMTPS id 3131919F576; Sat, 10 Mar 2018 16:05:47 +0100 (CET) In-Reply-To: <836064uqgc.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Mar 2018 13:20:51 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144110 Archived-At: Eli Zaretskii writes: >> From: Pierre T=C3=A9choueyres >> Date: Fri, 02 Mar 2018 01:14:03 +0100 >> >> Here is a patch to allow browse-url-emacs to be invoked in a way to >> reuse the current window. > > Thanks, but doesn't this go against the comment in the current code, > which says all the other browsers show the URL in another window? > I don't thik so. I didn't change the default behaviour, which stay like for the other browsers. But I added a possibility, which I think, make emacs better than the other browsers. Actually, the only way to browse an URL reusing the same Emacs window is to define another `brows-url-emacs' duplicating this one. I think it's just sad this possibility wasn't allowed because others browsers aren't able to do it. I don't know a way, for the others browsers, to reuse the same window / tabs / whatever to display another url. This is, I think, the reason of the comment. Maybe I should then add a comment to state this more clearly ? #+begin_src emacs-lisp ;; With all other browsers the URL is always shown in another window ;; than the current Emacs one since it's shown in another application's ;; window. But, here we can control that, so let's have the choice ! #+end_src What do you think ? And I didn't thiks about this : but should I add something in NEWS ?