From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Link "bracket-types" Date: Sat, 12 May 2018 10:12:13 +0200 Message-ID: References: <87a7t8q64z.fsf@nicolasgoaziou.fr> <87603vr86w.fsf@nicolasgoaziou.fr> <87mux7prcw.fsf@nicolasgoaziou.fr> <87a7t7pjb2.fsf@nicolasgoaziou.fr> <87603voxbl.fsf@nicolasgoaziou.fr> <877eoanxrv.fsf@nicolasgoaziou.fr> <8736yynuqo.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000006b6e09056bfdcf92" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHPdX-00035Q-NL for emacs-orgmode@gnu.org; Sat, 12 May 2018 04:12:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHPdX-00022C-2b for emacs-orgmode@gnu.org; Sat, 12 May 2018 04:12:15 -0400 Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]:42211) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHPdW-000226-Tn for emacs-orgmode@gnu.org; Sat, 12 May 2018 04:12:15 -0400 Received: by mail-qt0-x22a.google.com with SMTP id c2-v6so10100318qtn.9 for ; Sat, 12 May 2018 01:12:14 -0700 (PDT) In-Reply-To: <8736yynuqo.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: Org Mode --0000000000006b6e09056bfdcf92 Content-Type: text/plain; charset="UTF-8" Hi Nicolas Thank you for the patch. I changed it (attached) to something that preserves org-toggle-link-display and allows more different configs for more different usages, please see the docstring of org-link-brackets. I tried it out with org-toggle-link-display and for org-link-brackets '(0 0), '(1 1) and '(0 2). Michael --0000000000006b6e09056bfdcf92 Content-Type: application/octet-stream; name="org-link-brackets.diff" Content-Disposition: attachment; filename="org-link-brackets.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jh340b5g1 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLmVsIGIvbGlzcC9vcmcuZWwKaW5kZXggMmNmZTQ2Ni4uMjYx ZDVlZCAxMDA2NDQKLS0tIGEvbGlzcC9vcmcuZWwKKysrIGIvbGlzcC9vcmcuZWwKQEAgLTE4OTcs NiArMTg5NywyOCBAQCBZb3UgY2FuIGludGVyYWN0aXZlbHkgc2V0IHRoZSB2YWx1ZSBvZiB0aGlz IHZhcmlhYmxlIGJ5IGNhbGxpbmcKICAgOmdyb3VwICdvcmctbGluawogICA6dHlwZSAnYm9vbGVh bikKIAorKGRlZmN1c3RvbSBvcmctbGluay1icmFja2V0cyAnKDAgMCkKKyAgIk51bWJlciBvZiBi cmFja2V0IHBhaXJzIHNob3duIHdoaWxlIGBvcmctZGVzY3JpcHRpdmUtbGlua3MnIGlzIHQuCisK K1RoZSBmaXJzdCBlbGVtZW50IGlzIGZvciBkZXNjcmlwdGl2ZSBsaW5rcyBhbmQgY2FuIGJlIDAg b3IgMS4gVGhlCitzZWNvbmQgZWxlbWVudCBpcyBmb3Igbm9uLWRlc2NyaXB0aXZlIGxpbmtzIGFu ZCBjYW4gYmUgMCwgMSBvciAyLgorCitWYWx1ZSBleGFtcGxlczoKKworJygxIDEpIGNhbiBiZSB1 c2VmdWwgZm9yIGEgYmV0dGVyIG5hdmlnYXRpb24gYW5kIGVkaXRpbmcKK2V4cGVyaWVuY2UgYXQg dGhlIGJlZ2lubmluZyBhbmQgZW5kIG9mIGEgbGluay4KKworJygwIDIpIGNhbiBiZSB1c2VmdWwg dG8gZ2V0IHRoZSBzYW1lIHRhYmxlIGFsaWdubWVudCBhbmQKK3BhcmFncmFwaCBmaWxsaW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