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: Thu, 3 Dec 2020 09:49:57 +0300 Message-ID: References: <87lfem1ptv.fsf@gnu.org> <87wny52qrf.fsf@gnu.org> <878sah8etp.fsf@gnu.org> <867dpzwyy9.fsf@akirakyle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40436"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: emacs-devel@gnu.org To: Akira Kyle Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 03 08:22:56 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 1kkix5-000APi-MT for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 08:22:55 +0100 Original-Received: from localhost ([::1]:40360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkix4-0004kF-LS for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 02:22:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkivp-0004HW-CG for emacs-devel@gnu.org; Thu, 03 Dec 2020 02:21:37 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:35191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkivn-0001lT-0V for emacs-devel@gnu.org; Thu, 03 Dec 2020 02:21:37 -0500 Original-Received: from localhost ([::ffff:197.157.0.57]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0007.000000005FC891FC.00007CEE; Thu, 03 Dec 2020 07:21:29 +0000 Content-Disposition: inline In-Reply-To: <867dpzwyy9.fsf@akirakyle.com> 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:260200 Archived-At: * Akira Kyle [2020-12-03 02:50]: > > On Wed, Dec 02, 2020 at 10:03 AM, Jean Louis wrote: > > > As URI handler it is fine to invent one owns URIs. And I find it > > useful to make anything. I would even find more useful if there would > > be hyperlink system in Emacs where users could programmatically > > hyperlink anything by regexp and connect hyperlinks to regexps. GNU > > Hyperbole does similar thing but files are directory based. I am > > developig hypertext system, dynamic knowledge repository and thus > > using goto-address-mode and buttons heavily. > > > > I am not using it for URLs, I am using it for any URIs, not just URL > > and my use it also for such, it is easier that way than defining > > buttons specifically. > > Kind of sounds like org custom hyperlink types[1]. For example I find the > org-ref package immensely useful and it defines a custom link type given by > `cite:` which then takes me to its bibtex entry or pdf. > > [1] https://orgmode.org/manual/Adding-Hyperlink-Types.html I see the page. It looks as being hard coded only for Org mode but not for general emacs. It would be more useful to define general handler for Emacs for man: URI that is then only invoked by Org mode.