From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Otterson Subject: Re: org-open-at-point fails on internal links Date: Mon, 9 Oct 2017 18:08:10 +0200 Message-ID: References: <87infrovdc.fsf@kyleam.com> <87r2ufgftk.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c04f6fe1655e9055b1f68d0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1abw-0002vB-Dj for Emacs-orgmode@gnu.org; Mon, 09 Oct 2017 12:08:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1abt-0000XM-8A for Emacs-orgmode@gnu.org; Mon, 09 Oct 2017 12:08:56 -0400 Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]:55287) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1abt-0000X2-09 for Emacs-orgmode@gnu.org; Mon, 09 Oct 2017 12:08:53 -0400 Received: by mail-oi0-x234.google.com with SMTP id u130so40632205oib.11 for ; Mon, 09 Oct 2017 09:08:52 -0700 (PDT) In-Reply-To: <87r2ufgftk.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: "Emacs-orgmode@gnu.org" --94eb2c04f6fe1655e9055b1f68d0 Content-Type: text/plain; charset="UTF-8" > Scott Otterson writes: > >> When I click on an internal link to an anchor, I get the error message: >> >> "Wrong type argument: number-or-marker-p" The problem has something do do with org-mouse.el -- if I go to Emacs customize "Org Modules" and uncheck: "mouse: Additional mouse support" then links work and there's no error message. Things seem to go wrong at org-mouse.el, which adds code to org-mode-hook, and that code adds advice to org-open-at-point; the advice calls org-footnote-at-reference-p, where the problem starts. I don't know if the call to org-footnote-at-reference-p should be removed from the advice, or if org-footnote-at-reference-p should be fixed. Scott On Sat, Oct 7, 2017 at 5:04 PM, Nicolas Goaziou wrote: > Hello, > > Kyle Meyer writes: > > > Hello, > > > > Scott Otterson writes: > > > >> When I click on an internal link to an anchor, I get the error message: > >> > >> "Wrong type argument: number-or-marker-p" > >> > >> The same happens if I type C-c C-o on the link. This is mapped > >> to org-open-at-point, which should handle internal links. > > > > [...] > > > >> This behavior is new, I believe since the last org package update. I'm > >> currently on org mode version 9.1.2. > >> > >> ------ Example Org File ----------- > >> > >> * headline 1 > >> <> > >> * headline 2 > >> *** [[Anchor 1]] CLICK ON THIS > > > > FWIW I'm not able to reproduce this with 9.1.2. > > Ditto. Maybe a backtrace would help. > > Regards, > > -- > Nicolas Goaziou > --94eb2c04f6fe1655e9055b1f68d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
&= gt; Scott Otterson <scotto@sharpleaf.org> writes:
>
>> When I click on an internal link t= o an anchor, I get the error message:
>= >
>> "Wrong type argument: n= umber-or-marker-p"

The problem has something do do with= org-mouse.el --=C2=A0 if I go to Emacs customize "Org Modules" a= nd uncheck:=C2=A0

"mouse:=C2=A0 =C2=A0Additional mouse s= upport"

then links work and there'= ;s no error message.

Things seem to go wrong at=C2=A0org-mouse.el, which adds code to org-mode-hoo= k, and that code adds advice to org-open-at-point; the advice calls org-foo= tnote-at-reference-p, where the problem starts.

I d= on't know if the call to org-footnote-at-reference-p should be removed = from the advice, or if org-footnote-at-reference-p should be fixed.<= /div>

Scott

On Sat, Oct 7, 2017 at 5:04 PM, Nicolas= Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

Kyle Meyer <kyle@kyleam.com> w= rites:

> Hello,
>
> Scott Otterson <scotto@shar= pleaf.org> writes:
>
>> When I click on an internal link to an anchor, I get the error mes= sage:
>>
>> "Wrong type argument: number-or-marker-p"
>>
>> The same happens if I type C-c C-o on the link.=C2=A0 This is mapp= ed
>> to org-open-at-point, which should handle internal links.
>
> [...]
>
>> This behavior is new, I believe since the last org package update.= =C2=A0 I'm
>> currently on org mode version 9.1.2.
>>
>> ------ Example Org File -----------
>>
>> * headline 1
>>=C2=A0 =C2=A0<<Anchor 1>>
>> * headline 2
>> *** [[Anchor 1]]=C2=A0 CLICK ON THIS
>
> FWIW I'm not able to reproduce this with 9.1.2.

Ditto. Maybe a backtrace would help.

Regards,

--
Nicolas Goaziou

--94eb2c04f6fe1655e9055b1f68d0--