emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: "Rudolf Adamkovič" <salutis@me.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Case insensitivity of simple [[links]]
Date: Sat, 23 Sep 2023 10:10:11 +0000	[thread overview]
Message-ID: <87o7ht2oak.fsf@localhost> (raw)
In-Reply-To: <m2il81n2e6.fsf@me.com>

Rudolf Adamkovič <salutis@me.com> writes:

> A while ago, I asked about case insensitivity of the syntactically
> simplest "[[links]]" in Org.  I am interested in using these links
> because they are the most practical with the "literal" view.
>
> In 'emacs -Q' Org 9.6.9, "[[links]]" are case _sensitive_ when looking
> for headings.  This was originally not the case, and case _insensitive_
> linking was broken in Org 7 and then fixed in Org 8, as per [1] and [2].
> Is it broken again?  I ask because 'org-link-search' documentation says
> that search is "case-insensitive and ignores white spaces".

Currently, headline matching in `org-link-search' and
`org-export-resolve-fuzzy-link' is case-sensitive.

> On top of the above, yesterday I noticed that
>
>   (setq org-link-search-must-match-exact-headline nil)
>
> makes "[[link]]" find "* Link" when clicked.  My joy was short-lived,
> however, as I soon found that I cannot export anything due to
>
>   org-export-data: Unable to resolve link: "link".

This is because of different reason - Org export is not able to export
fuzzy links that do not point to a named target:

    (defun org-export-resolve-fuzzy-link (link info &rest pseudo-types)
      "Return LINK destination.
    
    INFO is a plist holding contextual information.
    
    Return value can be an object or an element:
    
    - If LINK path matches a target object (i.e. <<path>>) return it.
    
    - If LINK path exactly matches the name or results affiliated keyword
      (i.e. #+NAME: path or #+RESULTS: name) of an element, return that
      element.
    
    - If LINK path exactly matches any headline name, return that
      element.
    
    - Otherwise, throw an error.

-- 
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:[~2023-09-23 10:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-23  0:45 Case insensitivity of simple [[links]] Rudolf Adamkovič
2023-09-23 10:10 ` Ihor Radchenko [this message]
2023-09-24 14:46   ` Rudolf Adamkovič
2023-09-26 10:44     ` Ihor Radchenko
2023-09-27  8:35       ` Rudolf Adamkovič
2023-10-05 13:52         ` Ihor Radchenko
2023-10-06 10:43           ` Rudolf Adamkovič
2023-10-14  9:01             ` Ihor Radchenko
2023-10-16 20:28               ` Rudolf Adamkovič
2023-10-17 10:49                 ` Ihor Radchenko
2023-10-19 10:30                   ` Rudolf Adamkovič
2023-10-20  9:41                     ` Ihor Radchenko
2023-10-21 11:40                       ` Rudolf Adamkovič
2023-10-21 13:23                         ` Ihor Radchenko
2023-12-09 12:17                     ` Ihor Radchenko
2024-06-20 13:51                       ` Rudolf Adamkovič
2024-08-20 20:10               ` Gregor Zattler
2024-10-19 13:46                 ` Ihor Radchenko

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=87o7ht2oak.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=salutis@me.com \
    /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).