emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alain.Cochard@unistra.fr
To: emacs-orgmode@gnu.org
Subject: Problem in removing the invisible brackets of a link
Date: Fri, 29 Jun 2018 11:36:40 +0200	[thread overview]
Message-ID: <23349.64936.867540.822322@frac.u-strasbg.fr> (raw)

Hello.

The manual says:

      If you place the cursor at the beginning or just behind the end
   of the displayed text and press <BACKSPACE>, you will remove the
   (invisible) bracket at that location.

The problem for me it that it depends on the way I arrive at those
locations.  For example, for '[[xx]]', seen as 'xx' underlined, if I
have the cursor on the right of it and have it go towards the left
just after the second 'x' and press <BACKSPACE>, then the behavior is
as I expect (I see '[[xx]'), but, if I have the cursor on the left and
have it go to towards the right just after the second 'x' and press
<BACKSPACE>, then I see a single underlined 'x' (after a second
<BACKSPACE> I see '[[]]').

Is this normal?  (tested with emacs -Q with master, with emacs 24.5.1
and 26.1)

Incidentally, is there a way to have things like [[xx]] behave as
plain text?  (I am not talking about literal links which are still
understood as links.)  I have tried 'quote', 'verse', 'verbatim',
'comment', 'example', and org code block: none work.

In the case of 'example' the 'xx' string is not underlined, yet
hitting <RET> on it generates "org-link-search: No match for fuzzy
expression: xx".

In the case of an org code block the 'xx' remains underlined but <RET>
on it generates "Evaluate this org code block on your system? (yes or
no)", which is strange to me...

PS: for me this is not a theoretical issue: In many circumstances I
would like '[[xx]]' instances not behave as links.  I would be happy
if I could change the link format (e.g., use {{xx}} instead -- is it
possible? (I fear it is not.)


Thank you.

Regards


-- 
EOST (École et Observatoire des Sciences de la Terre) 
IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr
5 rue René Descartes   [bureau 106] | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France    | Fax:   +33 (0)3 68 85 01 25     

             reply	other threads:[~2018-06-29  9:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-29  9:36 Alain.Cochard [this message]
2018-06-29 13:39 ` Problem in removing the invisible brackets of a link Nicolas Goaziou
2018-07-03 13:12   ` Alain.Cochard
2018-10-14  8:07     ` Nicolas Goaziou
2018-10-14 12:11       ` Kaushal Modi

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=23349.64936.867540.822322@frac.u-strasbg.fr \
    --to=alain.cochard@unistra.fr \
    --cc=emacs-orgmode@gnu.org \
    /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).