emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: William Denton <wtd@pobox.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to hide square brackets around [[url][links]]?
Date: Fri, 22 Sep 2023 08:49:25 +0000	[thread overview]
Message-ID: <87a5tezj6y.fsf@localhost> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2309211157450.17920@shell3.miskatonic.org>

William Denton <wtd@pobox.com> writes:

> Sometimes when searching with Swiper, the display of (some) links is changed and 
> instead of seeing the anchor text formatted as a link I see the full raw 
> [[URL][anchor text]].
>
> How can I make this go back to showing just the anchor text?  I've tried 
> toggling visible-mode and using org-toggle-link-display but neither work, so I 
> have to C-x C-v and reload the file.  Should these commands be reformatting all 
> the links in the buffer, and the fact they don't work is a sign of the bug?

For isearch compatibility, Org has to convert back-and-forth between
overlays and text properties. If `org-toggle-link-display' does not
work, we most likely have some isearch overlays leftover and not
converted back.

-- 
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-22  8:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-21 16:07 How to hide square brackets around [[url][links]]? William Denton
2023-09-22  8:49 ` 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:
  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=87a5tezj6y.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=wtd@pobox.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).