From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akira Kyle Newsgroups: gmane.emacs.devel Subject: Re: Any way to tell Emacs how to open specific URIs? Date: Wed, 02 Dec 2020 16:49:34 -0700 Message-ID: <867dpzwyy9.fsf@akirakyle.com> References: <87lfem1ptv.fsf@gnu.org> <87wny52qrf.fsf@gnu.org> <878sah8etp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33937"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.13; emacs 28.0.50 Cc: emacs-devel@gnu.org To: Jean Louis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 03 00:50:55 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 1kkbte-0008jI-VC for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 00:50:54 +0100 Original-Received: from localhost ([::1]:57522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkbtc-0004eI-QT for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Dec 2020 18:50:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkbsS-0004CE-21 for emacs-devel@gnu.org; Wed, 02 Dec 2020 18:49:40 -0500 Original-Received: from mail-il1-f182.google.com ([209.85.166.182]:38026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkbsQ-0007xW-6H for emacs-devel@gnu.org; Wed, 02 Dec 2020 18:49:39 -0500 Original-Received: by mail-il1-f182.google.com with SMTP id v3so253908ilo.5 for ; Wed, 02 Dec 2020 15:49:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=SBYlXFW8rIdtxBk5TNJ1ZbxkJA9QLNexarbxS5exNrI=; b=dVRGcmCEpc0nBqpJ1y2GfHPQRZz0zqRFJ24lRyXdjIm5A8Vp1mOiujYsHEetAugBAK t3PI/q+oxD7AKHkBuv18YbkrNQ77dONgkCW87LFEGUNSa3IF234GnVyf3iyClZPxhp9R V7UxeAui+DUaV6QvGTaKnISrvzdbKBvJ5go3gZNAwG1CiqaCgSHRpP0fJSxEPupfpOOx Aqj/mPtO/55jpXp+X3/cgpT0Dnz12t2ntVnKli/N35KtmIFbFz/y+2GRtLVavxBU4tuU ED67S9DZLYgNgzlgDUf7Y6K+TurLckE+WZwZdm84FPkIVaYdAB3hop/d/Y+p8WqGxmWD 3pGQ== X-Gm-Message-State: AOAM5321HgFgUjCpsap1RmPlwnX6hA58bizJGZlpb5a5Bd2iDVGRSasF fkYz+ueWxMvmPG0VBpenrp9Wz+j63xg= X-Google-Smtp-Source: ABdhPJycpOwkx+t73ovCmfsNGY9DAgAKbiTEtIxNmhK9OKSzIFwkAI+D0XecYZM/P37R9PqGerov+A== X-Received: by 2002:a92:7b07:: with SMTP id w7mr557650ilc.78.1606952976257; Wed, 02 Dec 2020 15:49:36 -0800 (PST) Original-Received: from data ([2601:281:8080:45f0:a7d0:2bd8:5ac1:c521]) by smtp.gmail.com with ESMTPSA id r15sm148905ila.69.2020.12.02.15.49.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 15:49:35 -0800 (PST) In-reply-to: Received-SPF: pass client-ip=209.85.166.182; envelope-from=aikokyle@gmail.com; helo=mail-il1-f182.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:260193 Archived-At: 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