From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0CYxMrW/qV8NFQAA0tVLHw (envelope-from ) for ; Mon, 09 Nov 2020 22:16:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mG/yLbW/qV/aDAAAbx9fmQ (envelope-from ) for ; Mon, 09 Nov 2020 22:16:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 194E09403E8 for ; Mon, 9 Nov 2020 22:16:21 +0000 (UTC) Received: from localhost ([::1]:43502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcFSU-0002MT-Om for larch@yhetil.org; Mon, 09 Nov 2020 17:16:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcFRh-0002Kw-1j for emacs-orgmode@gnu.org; Mon, 09 Nov 2020 17:15:29 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:34746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kcFRe-00034W-RW for emacs-orgmode@gnu.org; Mon, 09 Nov 2020 17:15:28 -0500 Received: by mail-ed1-x52d.google.com with SMTP id a15so10506407edy.1 for ; Mon, 09 Nov 2020 14:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zzamboni-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=QGItY7QrrrgqjUycfdEZ9HjktX5cXTGFbC1T9cks79I=; b=GPA/53BmCQzjRilLnY3skKJtCyoxuyrlCC4aoE7Axax7he31soh+0zQb/TZZFDvIJ0 e+r6ssZLiwBMQmR1IEhbMJqj/g6n8Kyy/2MuZDVbmGUrzkJnpb4FxXAeb6OCCrgX3T3Q PL/gTPYrzW4IwZD87ma60FAUbQzDC6o32oMtR9uMDfAgvpHDFqOxOr9dh9o3T3dEK/2G Fpgzn/agnqPu+CfNIuMS5JtbFs++0wKlj3sxrXSw02MsHcFA6fCSKU+E+D0XVUD1QnGF mEFyt1iZdhtoEXYTs2IdV7z0vasHLhrUXkvMPW1BfgDoKIPKjFslMaHwL863I/IEPcnH S9qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=QGItY7QrrrgqjUycfdEZ9HjktX5cXTGFbC1T9cks79I=; b=Xa4L9MMYVCEI9S57Icp3Ppq0xz0MfRooZUXbu7wo9P7PF520EghRLJdREiyPBjWR+I tJPd7tXMMptUgfRuQTYaSkz3zmXLO/tOJlrF8s5jE6L1lIDqMDfNPk0MM0lTwHo2oyTq ca5iX+sKWTSvp5nz9yiYiZALEDruZVcyM5Cs0obJf7u07hhgfGpOSN1rZZ1ABDgUQ89k zTjOqrmlOLwhoY7ZIKl9DrSru7ReqIOOOyycVIRGZ2pY2wl0Ac8lbspetB1ADOjq0ZZZ Uj2bvPAhyc96acF6JE+eFWK4CZwGn6nDSt2e6ksjLeMpTDQmPaJeNwwn+4PDPftGUyFV 64Kg== X-Gm-Message-State: AOAM530mlNyd0tCqWKQW+Y+ZDpk3xAu2kxz6/mbbkIWCHYgFX4OqU6Y7 HK5YhlosyGcZDHIrgnGhNZ0p7k4/rpOWUpMTJO/vZ1bgq+CvLUfc X-Google-Smtp-Source: ABdhPJyG1VoqYas4pFFr59/ZgHr5xpowBXThKSEEmAD2hUCk5j643ST72UePuUozxHBNBdHMYO5RY60H2HB3ujgVOag= X-Received: by 2002:aa7:d404:: with SMTP id z4mr18128247edq.334.1604960124125; Mon, 09 Nov 2020 14:15:24 -0800 (PST) MIME-Version: 1.0 References: <20201030161437.GE28730@maokai> In-Reply-To: <20201030161437.GE28730@maokai> From: Diego Zamboni Date: Mon, 9 Nov 2020 23:15:13 +0100 Message-ID: Subject: Re: Viewing link information To: Org-mode Content-Type: multipart/alternative; boundary="00000000000013da4305b3b3e6bd" Received-SPF: none client-ip=2a00:1450:4864:20::52d; envelope-from=diego@zzamboni.org; helo=mail-ed1-x52d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zzamboni-org.20150623.gappssmtp.com header.s=20150623 header.b=GPA/53Bm; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: q55/NMipZfJr --00000000000013da4305b3b3e6bd Content-Type: text/plain; charset="UTF-8" Hi Russell, I am using Doom Emacs, and in its default Org configuration it does exactly that: the link target is shown in the minibuffer after a brief delay, when the cursor is on the link. A bit of investigation reveals that it's using org-eldoc. This seems to be the code responsible for it: https://github.com/hlissner/doom-emacs/blob/develop/modules/lang/org/config.el#L167-L171 (defadvice! +org-display-link-in-eldoc-a (&rest _) "Display full link in minibuffer when cursor/mouse is over it." :before-until #'org-eldoc-documentation-function (when-let (link (org-element-property :raw-link (org-element-context))) (format "Link: %s" link))) --Diego On Fri, Oct 30, 2020 at 5:15 PM Russell Adams wrote: > Are there other ways to view information about an org link that I > don't list below? > > - M-x org-insert-link, the prompts for link and description show the > current values. Requires interacting with the prompts. > > - Switch to fundamental mode > > - M-x org-toggle-link-display > > Are there ways to see this information live while navigating? Maybe on > the modeline, or messages? > > ------------------------------------------------------------------ > Russell Adams RLAdams@AdamsInfoServ.com > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > > --00000000000013da4305b3b3e6bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Russell,
I am using Doom Emacs, and in its default Org configuration it = does exactly that: the link target is shown in the minibuffer after a brief= delay, when the cursor is on the link. A bit of investigation reveals that= it's using org-eldoc. This seems to be the code responsible for it:

https://github.com/hlissne= r/doom-emacs/blob/develop/modules/lang/org/config.el#L167-L171

=C2=A0 (defadvice! +org-display-link-in-eldoc-a (&= rest _)
=C2=A0 =C2=A0 "Display full link in minibuffer when cursor/= mouse is over it."
=C2=A0 =C2=A0 :before-until #'org-eldoc-docu= mentation-function
=C2=A0 =C2=A0 (when-let (link (org-element-property := raw-link (org-element-context)))
=C2=A0 =C2=A0 =C2=A0 (format "Link= : %s" link)))

--Diego


On Fr= i, Oct 30, 2020 at 5:15 PM Russell Adams <RLAdams@adamsinfoserv.com> wrote:
Are there other ways to view inform= ation about an org link that I
don't list below?

=C2=A0- M-x org-insert-link, the prompts for link and description show the<= br> =C2=A0 =C2=A0current values. Requires interacting with the prompts.

=C2=A0- Switch to fundamental mode

=C2=A0- M-x org-toggle-link-display

Are there ways to see this information live while navigating? Maybe on
the modeline, or messages?

------------------------------------------------------------------
Russell Adams=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 RLAdams@AdamsInfoServ.com

PGP Key ID:=C2=A0 =C2=A0 =C2=A00x1160DCB3=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0http://www.adamsinfoserv.com/

Fingerprint:=C2=A0 =C2=A0 1723 D8CA 4280 1EC9 557F=C2=A0 66E8 1154 E018 116= 0 DCB3

--00000000000013da4305b3b3e6bd--