emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Daniel Fleischer <danflscr@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug? Error in HTML export of links with search options
Date: Wed, 21 Dec 2022 13:13:34 +0000	[thread overview]
Message-ID: <87edssx5kx.fsf@localhost> (raw)
In-Reply-To: <m2h6xq9cg6.fsf@gmail.com>

Daniel Fleischer <danflscr@gmail.com> writes:

> Org offers the ability to run a search inside a link, see (org) Search
> Options. E.g. [[File.c::100]] to get to line 100 in File.c. When
> exporting this to HTML I get the following error:
>     org-export-data: Unable to resolve link: "‘recenter’ing a window that does not display current-buffer."
> Also when having links of the form [[File.clj::defn]] where `defn' is a
> search string.
> Main 04d2cc59.


I am unable to reproduce this exact error.
I am unable to reproduce error at all with ::defn search options.

I am, however, able to reproduce a different error with File.c::100, and
I get test.txt#MissingReference with test.txt::search-string.

This is all because `org-html-link' uses
`org-publish-resolve-external-link', which only supports limited search

Patches welcome!

Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

      reply	other threads:[~2022-12-21 13:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-20 18:06 Bug? Error in HTML export of links with search options Daniel Fleischer
2022-12-21 13:13 ` Ihor Radchenko [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:

  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=87edssx5kx.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=danflscr@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).