From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Any way to tell Emacs how to open specific URIs? Date: Mon, 23 Nov 2020 11:18:23 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28898"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: Emacs Devel To: =?utf-8?B?6ZmI5b+X5Lyf?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 23 09:30:19 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 1kh7Eo-0007Q9-Ug for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Nov 2020 09:30:18 +0100 Original-Received: from localhost ([::1]:33006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kh7En-0003EC-1b for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Nov 2020 03:30:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kh7Dx-0002cs-Q5 for emacs-devel@gnu.org; Mon, 23 Nov 2020 03:29:26 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:44261) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kh7Dw-0005Us-BX for emacs-devel@gnu.org; Mon, 23 Nov 2020 03:29:25 -0500 Original-Received: from localhost ([::ffff:41.202.241.56]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C1AE7.000000005FBB72E3.00003852; Mon, 23 Nov 2020 08:29:22 +0000 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:259669 Archived-At: * 陈志伟 [2020-11-23 05:42]: > > 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? > > > > Is there any plan to define those URIs how to open them? > > > Are `org-insert-link-gloal’ and `org-open-at-point-global’ suitable for your cases? Thank you but no. In any buffer I would like to use goto-address-mode which in turn uses those defined URLs. I would not like converting any buffer into org buffer and also disturbing the view with Org links [[][]] Buffer can be plain text, it could be markdown, it could be any other type of outline, also Org file. Org file would not contain Org links but directly shown links as I cited them like ftp://example.com When goto-address-mode is turned on those links become visible and can be activated. But now they are all activated by eww. I wish to be able to define to activate ftp:// and other links in goto-address-mode to either use some Emacs function or maybe to invoke external program. I think mid: is for message IDs, I need those features of customization.