From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Any way to tell Emacs how to open specific URIs? Date: Fri, 27 Nov 2020 21:56:28 +0100 Message-ID: <87lfem1ptv.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29360"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Emacs Devel To: Jean Louis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 27 21:57:29 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kiko5-0007XM-9W for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Nov 2020 21:57:29 +0100 Original-Received: from localhost ([::1]:52034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiko4-0006nK-BJ for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Nov 2020 15:57:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiknB-0005v7-2F for emacs-devel@gnu.org; Fri, 27 Nov 2020 15:56:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59204) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiknA-0005tX-Ov; Fri, 27 Nov 2020 15:56:32 -0500 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:55661) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kikn8-0006Wo-P2; Fri, 27 Nov 2020 15:56:31 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 4D3C827C0054; Fri, 27 Nov 2020 15:56:30 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 27 Nov 2020 15:56:30 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudehgedgudeghecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufhffjgfkfgggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe dtleeiffekueffudeufeefhfeitdejuedtueevgeffgfdtjeelkeehgeekteekveenucfk phepleefrddvfeeirddufeegrdefkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgr lhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p5dec8626.dip0.t-ipconnect.de [93.236.134.38]) by mail.messagingengine.com (Postfix) with ESMTPA id 9D5493064AAF; Fri, 27 Nov 2020 15:56:29 -0500 (EST) Mail-Followup-To: Jean Louis , Emacs Devel In-Reply-To: (Jean Louis's message of "Sun, 22 Nov 2020 20:02:34 +0300") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259923 Archived-At: Jean Louis writes: > I am using goto-browse-mode to highlight URLs and goto-browse-mode > uses in turn thing-at-point-uri-schemes and that is great. > > But what I miss is how to define how to activate those URLs, as I > would like to activate those URLs in those buffers where > goto-browse-mode is is activated. > > I strongly need a way to define how to open specific URIs as shown > here and to define some of my own. This will expand the program > capabilities I am making. > > Is there any current way to define how to open these URIs? I'm not exactly sure if I understand the question, but maybe `browse-url-handlers' (Emacs 28 only) is what you are looking for (assuming that clicking on an URL with goto-browse-mode does calls `browse-url'). Bye, Tassilo