From: Scott Otterson <scotto@sharpleaf.org>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: "Emacs-orgmode@gnu.org" <Emacs-orgmode@gnu.org>
Subject: Re: org-open-at-point fails on internal links
Date: Mon, 9 Oct 2017 18:08:10 +0200 [thread overview]
Message-ID: <CAPY3P0QdeN2n9WjTyzCtBhgyQauRFj1DObkmKqGVXWSNqrNWyg@mail.gmail.com> (raw)
In-Reply-To: <87r2ufgftk.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 1599 bytes --]
> Scott Otterson <scotto@sharpleaf.org> 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 <mail@nicolasgoaziou.fr>
wrote:
> Hello,
>
> Kyle Meyer <kyle@kyleam.com> writes:
>
> > Hello,
> >
> > Scott Otterson <scotto@sharpleaf.org> 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
> >> <<Anchor 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
>
[-- Attachment #2: Type: text/html, Size: 3462 bytes --]
next prev parent reply other threads:[~2017-10-09 16:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-07 8:44 org-open-at-point fails on internal links Scott Otterson
2017-10-07 15:01 ` Kyle Meyer
2017-10-07 15:04 ` Nicolas Goaziou
2017-10-09 16:08 ` Scott Otterson [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-10-09 18:38 Fwd: " Kyle Meyer
2017-10-10 7:04 ` Scott Otterson
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 \
--in-reply-to=CAPY3P0QdeN2n9WjTyzCtBhgyQauRFj1DObkmKqGVXWSNqrNWyg@mail.gmail.com \
--to=scotto@sharpleaf.org \
--cc=Emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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 public 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).