From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Problem in removing the invisible brackets of a link Date: Fri, 29 Jun 2018 15:39:33 +0200 Message-ID: <87r2kpyane.fsf@nicolasgoaziou.fr> References: <23349.64936.867540.822322@frac.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYtcp-00070A-0z for emacs-orgmode@gnu.org; Fri, 29 Jun 2018 09:39:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYtck-0005P7-2p for emacs-orgmode@gnu.org; Fri, 29 Jun 2018 09:39:47 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:58679) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fYtcj-0005KU-Su for emacs-orgmode@gnu.org; Fri, 29 Jun 2018 09:39:42 -0400 In-Reply-To: <23349.64936.867540.822322@frac.u-strasbg.fr> (Alain Cochard's message of "Fri, 29 Jun 2018 11:36:40 +0200") 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: Alain.Cochard@unistra.fr Cc: emacs-orgmode@gnu.org Hello, Alain.Cochard@unistra.fr writes: > 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 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 , 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 > , then I see a single underlined 'x' (after a second > I see '[[]]'). > > Is this normal? (tested with emacs -Q with master, with emacs 24.5.1 > and 26.1) Yes, it is normal Emacs behaviour. See (info "(elisp) Invisible Text"). I guess we could clarify the manual. Suggestions welcome. > Incidentally, is there a way to have things like [[xx]] behave as > plain text? Yes, there is. Insert a zero width space after the opening brackets. > (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. =[[xx]]= and ~[[xx]]= are not links; try to export them. However, `org-open-at-point' still treats them as such -- see last paragraph in its docstring -- because this was a desirable feature for some users, IIRC. > 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.) No, you cannot change link syntax, but you don't need to, either. Regards, -- Nicolas Goaziou