From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org link to OCaml comment Date: Fri, 07 Feb 2020 15:33:49 +0100 Message-ID: <874kw21n76.fsf@nicolasgoaziou.fr> References: <87a75vu60w.fsf@polytechnique.org> <87v9ojsp1w.fsf@polytechnique.org> <87lfpf1w12.fsf@nicolasgoaziou.fr> <87pnersh08.fsf@polytechnique.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51505) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j04hp-0000Eq-J1 for emacs-orgmode@gnu.org; Fri, 07 Feb 2020 09:34:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j04ho-0002mE-Bq for emacs-orgmode@gnu.org; Fri, 07 Feb 2020 09:34:05 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:56693) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j04ho-0002fu-5w for emacs-orgmode@gnu.org; Fri, 07 Feb 2020 09:34:04 -0500 In-Reply-To: <87pnersh08.fsf@polytechnique.org> (Alan Schmitt's message of "Thu, 06 Feb 2020 19:33:11 +0100") 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Alan Schmitt Cc: emacs-orgmode , John Kitchin Hello, Alan Schmitt writes: > Thank you for the explanation. Is there a way to either escape the > parentheses (maybe url-encode them), *shivers* Please never suggest again url-encoding links in Org! ;) We only got out of this hell recently. I don't want to dive in again. > or to automatically not include the closing one as you suggest when > creating the link? There is some specific syntax in links. More specifically, the following are meaningful: - a star at the beginning of the link (or search option) - a hash at the beginning of the link - forward slashes around the link - parenthesis around the link I think that `org-store-link' should be careful about it and prevent these pathological cases if necessary. In any other situation, however, I think the user is responsible for not using these specific constructs. WDYT? Regards, -- Nicolas Goaziou