From: Garjola Dindi <email@example.com> To: firstname.lastname@example.org Subject: Re: Display in minibuffer link under point Date: Sat, 16 May 2020 18:07:35 +0200 [thread overview] Message-ID: <email@example.com> (raw) In-Reply-To: <firstname.lastname@example.org> On Mon 11-May-2020 at 17:53:06 +02, John Kitchin <email@example.com> wrote: > org-ref doesn't do anything fancy here, it just runs an idle timer: > > https://github.com/jkitchin/org-ref/blob/master/org-ref-core.el#L597 > > that runs a function defined at > https://github.com/jkitchin/org-ref/blob/master/org-ref-core.el#L3633 > > that function is kind of long because it computes the message, and only > in specific contexts. > Hi, This is what I did: (when (not (or (looking-at " ") ;looking at a space (looking-at "^$") ;looking at a blank line (looking-at "]") ;looking at a bracket at the end ;looking at the end of the line. (looking-at "$"))) (save-restriction (widen) (when (eq major-mode 'org-mode) (let* ((object (org-element-context)) (type (org-element-property :type object)) (link-content (org-element-property :path object))) (save-excursion (message "%s:%s" type link-content)))))) It seems to do what I want. Thank you very much for your help. Garjola > Garjola Dindi <firstname.lastname@example.org> writes: > >> Hi, >> >> Thanks both of you for your answers. >> >> What would be the way to automatically trigger =display-local-help= when the point is on the link? Org-ref does that beautifully ;) >> >> Thanks again. >> >> Garjola >> >> On Fri 08-May-2020 at 22:48:37 +02, John Kitchin <email@example.com> wrote: >>> It looks like that variable is obsolete now since Emacs 24.1, and (tooltip-mode -1) is probably the way to get the same thing now. >>> >>> John >>> >>> ----------------------------------- >>> Professor John Kitchin >>> Doherty Hall A207F >>> Department of Chemical Engineering >>> Carnegie Mellon University >>> Pittsburgh, PA 15213 >>> 412-268-7803 >>> @johnkitchin >>> http://kitchingroup.cheme.cmu.edu >>> >>> On Fri, May 8, 2020 at 1:18 PM briangpowell . <firstname.lastname@example.org> wrote: >>> >>> I use this variable to toggle my Gnu Emacs Org-Mode buffer into an audio desktop: >>> >>> (setq tooltip-use-echo-area (not tooltip-use-echo-area)) >>> >>> Of course I had to do some programming to do that but the above should get you started >>> >>> And we can leave that programming as an exercise for the class--right Dr. Kitchin? >>> >>> ;-) >>> >>> On Fri, May 8, 2020 at 9:19 AM John Kitchin <email@example.com> wrote: >>> >>> M-x display-local-help might do it. >>> >>> John >>> >>> ----------------------------------- >>> Professor John Kitchin >>> Doherty Hall A207F >>> Department of Chemical Engineering >>> Carnegie Mellon University >>> Pittsburgh, PA 15213 >>> 412-268-7803 >>> @johnkitchin >>> http://kitchingroup.cheme.cmu.edu >>> >>> On Fri, May 8, 2020 at 9:15 AM Garjola Dindi <firstname.lastname@example.org> wrote: >>> >>> Hi, >>> >>> Is there a way to display in the minibuffer the URL of the link under >>> the point in the same way as when the mouse pointer is over the link? >>> >>> Thanks! >>> >>> Garjola >>> -- > > > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu --
prev parent reply other threads:[~2020-05-16 16:08 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-08 13:11 Garjola Dindi 2020-05-08 13:16 ` John Kitchin 2020-05-08 17:18 ` briangpowell . 2020-05-08 20:48 ` John Kitchin 2020-05-10 15:56 ` Garjola Dindi 2020-05-11 15:53 ` John Kitchin 2020-05-16 16:07 ` Garjola Dindi [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://www.orgmode.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: Display in minibuffer link under point' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).