From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Issue with internal links Date: Sat, 10 Aug 2019 12:03:32 +1000 Message-ID: <87d0hdojyj.fsf@gmail.com> References: <4D3A34C7-9A8C-421A-AE42-2590B33C6BE6@ur.rochester.edu> <874l2rgz0n.fsf@nicolasgoaziou.fr> <2E3DA4EF-E1F9-4B76-9053-506FC350F647@ur.rochester.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49661) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwGjL-0005mD-OH for emacs-orgmode@gnu.org; Fri, 09 Aug 2019 22:03:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwGjK-0005Wv-OR for emacs-orgmode@gnu.org; Fri, 09 Aug 2019 22:03:39 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:45000) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hwGjK-0005WN-Ij for emacs-orgmode@gnu.org; Fri, 09 Aug 2019 22:03:38 -0400 Received: by mail-pl1-x632.google.com with SMTP id t14so45622826plr.11 for ; Fri, 09 Aug 2019 19:03:38 -0700 (PDT) In-reply-to: <2E3DA4EF-E1F9-4B76-9053-506FC350F647@ur.rochester.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: emacs-orgmode@gnu.org Cc: "Doyley, Marvin M." , Nicolas Goaziou Hi Marvin, while what you have done may have fixed your error, I don't think it is a correct fix. It could cause other issues and is an example of one of those 'fixes' which will likely cause more subtle and difficult to identify issues.=20 The 'org-open-lin-functions is supposed to be either nil or a list of functions which take a single argument. What you have done is add t to that list. This likely works as t evaluates to itself, but I think it will completely break org's handling of [[link text]] style links because when org runs this hook, it will always return t, telling org that your custom functions have handled it. You may have tested your fix and found that it looked like it worked, but note the details in the doc string for that hook. i.e. "They will be called for links that look like [[link text][description]] when LINK TEXT does not have a protocol like "http:" and does not look like a filename (e.g. "./blue.png")" Your original error is due to something in your config adding a function to that hook which does not exist. What you need to do is either define that function (or find it's definition) or remove it from your config i.e. remove the add-hook line which adds the function. Note that the default setting is nil i.e. most installations probably don't have anything in this hook unless they have some special url format or they have added a package which provides custom url handling. If you found the line and just changed the function name to t as a fix, you can safely just remove the line completely.=20 HTH Tim Doyley, Marvin M. writes: > Hi Nicolas, > > (add-hook 'org-open-link-functions t) > Fixed the problem. > > Thanks > M > >> On Aug 8, 2019, at 4:53 PM, Nicolas Goaziou wro= te: >>=20 >> Hello, >>=20 >> "Doyley, Marvin M." writes: >>=20 >>> Whenever I double click on an internal link I get the following error >>> =E2=80=9Cvoid-function org-pass-link-to-system=E2=80=9D >>=20 >> The function above doesn't exist in Org base. You may want to >> investigate on whatever is adding it to `org-open-link-functions'. >>=20 >> Regards, >>=20 >> --=20 >> Nicolas Goaziou --=20 Tim Cross