From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain.Cochard@unistra.fr Subject: Re: Problem in removing the invisible brackets of a link Date: Tue, 3 Jul 2018 15:12:15 +0200 Message-ID: <23355.30255.900844.106396@frac.u-strasbg.fr> References: <23349.64936.867540.822322@frac.u-strasbg.fr> <87r2kpyane.fsf@nicolasgoaziou.fr> Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faL6G-0008MJ-Md for emacs-orgmode@gnu.org; Tue, 03 Jul 2018 09:12:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1faL6B-0007g3-KL for emacs-orgmode@gnu.org; Tue, 03 Jul 2018 09:12:08 -0400 Received: from smr1.u-strasbg.fr ([130.79.222.217]:46214 helo=mailhost.u-strasbg.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1faL6B-0007Ur-9R for emacs-orgmode@gnu.org; Tue, 03 Jul 2018 09:12:03 -0400 In-Reply-To: <87r2kpyane.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes on Fri 29 Jun 2018 15:39: > > The manual says: > > > > If you place the cursor at the beginning or just behind the = end > > of the displayed text and press , you will remove th= e > > (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 , 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 pres= s > > , then I see a single underlined 'x' (after a second > > I see '[[]]'). > > > > Is this normal=3F [...] > Yes, it is normal Emacs behaviour. See (info "(elisp) Invisible > Text"). OK, thanks a lot. > I guess we could clarify the manual. Suggestions welcome. I guess you could simply add a footnote after "location." in the excerpt above. - Minimalist: See (info "(elisp) Invisible Text"). - Hardly more: For more details, see (info "(elisp) Invisible Text"). - Facetious: If unexpected behavior occurs, check (info "(elisp) Invisible Text"). - Too kind: Beware, the precise behavior depends on how the cursor has been placed there -- see (info "(elisp) Invisible Text"). > > Incidentally, is there a way to have things like [[xx]] behave as > > plain text=3F > Yes, there is. Insert a zero width space after the opening > brackets. Thanks again. I would also advocate some mention of this in the manual (if not already there somewhere, which I did not find). I was thinking about an extra sentence at the end of "4.1 Link format"; something like: To have =E2=80=98[[text]]=E2=80=99 constructs behave as plain text a= nd not as links, insert a zero-width space (C-x 8 ZERO WIDTH SPACE ) between the opening (or the closing) brackets. However, I still don't see how this can be something convenient for massive and frequent use. In my case, I often yank and work on code fragments written in the Mathematica language, for which the [[]] syntax is used for list indexing. Well, I guess I'll have to learn to live with that... > > (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. > =3D[[xx]]=3D and ~[[xx]]=3D are not links; try to export them. Indeed. Thanks once more. Regards --=20 EOST (=C3=89cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=C3=A9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20= F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 =20=