all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Win Treese <treese@acm.org>
To: "Berry, Charles" <ccberry@ucsd.edu>
Cc: "Emacs-orgmode@gnu.org" <Emacs-orgmode@gnu.org>
Subject: Re: open link in source code block
Date: Thu, 17 Jan 2019 21:05:29 -0500	[thread overview]
Message-ID: <174BF303-748B-4146-B5DE-3E12405C87B2@acm.org> (raw)
In-Reply-To: <0D35FC16-ED35-413F-8EED-E3A4876E13EB@ucsd.edu>



> On Jan 17, 2019, at 1:38 PM, Berry, Charles <ccberry@ucsd.edu> wrote:
> 
> TL;DR: "org-open-at-point calls org-babel-open-src-block-result first thing" is not true.
> 
> The `unless' COND argument starting around line 5 of the code of `org-open-at-point' runs the hooks in `org-open-at-point-functions'. 
> 
> If any hook returns a non-nil then `run-hook-with-args-until-success' returns the value and the BODY forms will not be run.
> 
> For example, this: 
> 
> 	((eq type 'src-block) (org-babel-open-src-block-result))
> 
> is part of a BODY form and can only run if all those hooks return nil (or if there is no hook).
> 
> The code I provided works as advertised.
> 
> HTH,
> 
> Chuck
> 
> p.s. I am using Org mode version 9.2 (release_9.2-193-ge7901c...

Chuck,

Thanks for the help. I seem to have had a problem that crept into the code sometime in the past month or so, was true at least as of version 9.1.14, but now works as you described in version 9.2, which I have now installed. I had thought I was working with the current released version, but I was apparently wrong about that.

I appreciate the help, and sorry for the trouble.

Best,

Win

      reply	other threads:[~2019-01-18  2:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-05  0:38 open link in source code block Win Treese
2019-01-05 10:25 ` Eric S Fraga
2019-01-05 15:41   ` Win Treese
2019-01-12  0:12     ` Berry, Charles
2019-01-16 23:43       ` Win Treese
2019-01-17 18:38         ` Berry, Charles
2019-01-18  2:05           ` Win Treese [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=174BF303-748B-4146-B5DE-3E12405C87B2@acm.org \
    --to=treese@acm.org \
    --cc=Emacs-orgmode@gnu.org \
    --cc=ccberry@ucsd.edu \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.