From mboxrd@z Thu Jan 1 00:00:00 1970 From: Win Treese Subject: Re: open link in source code block Date: Thu, 17 Jan 2019 21:05:29 -0500 Message-ID: <174BF303-748B-4146-B5DE-3E12405C87B2@acm.org> References: <8585C713-3A24-4FE3-A187-A4587F3ADC97@acm.org> <87y37zo0za.fsf@gmail.com> <00803EED-3898-4FA2-803E-245F45F897FE@ucsd.edu> <2C9824E1-C291-475C-820A-B0F83A5E6619@acm.org> <0D35FC16-ED35-413F-8EED-E3A4876E13EB@ucsd.edu> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkJhV-0000bp-Oh for Emacs-orgmode@gnu.org; Thu, 17 Jan 2019 21:16:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkJXY-0001Jn-6L for Emacs-orgmode@gnu.org; Thu, 17 Jan 2019 21:05:48 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:47749) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkJXX-00015X-Sa for Emacs-orgmode@gnu.org; Thu, 17 Jan 2019 21:05:48 -0500 In-Reply-To: <0D35FC16-ED35-413F-8EED-E3A4876E13EB@ucsd.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Berry, Charles" Cc: "Emacs-orgmode@gnu.org" > On Jan 17, 2019, at 1:38 PM, Berry, Charles wrote: >=20 > TL;DR: "org-open-at-point calls org-babel-open-src-block-result first = thing" is not true. >=20 > 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'.=20 >=20 > 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. >=20 > For example, this:=20 >=20 > ((eq type 'src-block) (org-babel-open-src-block-result)) >=20 > is part of a BODY form and can only run if all those hooks return nil = (or if there is no hook). >=20 > The code I provided works as advertised. >=20 > HTH, >=20 > Chuck >=20 > 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