From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mN//BUSQnGCCcAEAgWs5BA (envelope-from ) for ; Thu, 13 May 2021 04:34:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +EWxAUSQnGCkWgAAB5/wlQ (envelope-from ) for ; Thu, 13 May 2021 02:34:44 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 864A21E31A for ; Thu, 13 May 2021 04:34:43 +0200 (CEST) Received: from localhost ([::1]:45976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lh1BQ-00080j-TX for larch@yhetil.org; Wed, 12 May 2021 22:34:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lh1B5-00080b-Sz for emacs-orgmode@gnu.org; Wed, 12 May 2021 22:34:19 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:34456) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lh1B4-0001C9-BV for emacs-orgmode@gnu.org; Wed, 12 May 2021 22:34:19 -0400 Received: by mail-pf1-x42a.google.com with SMTP id 10so20470448pfl.1 for ; Wed, 12 May 2021 19:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=lsKdHScMhT6Jx/J2qJPievEwQFPTMx7z/ig+x/cXLoU=; b=CfBYUo0dh9W7wMUuG1qshjLW9jZLZrwVvABeqJYzvCM1L5+lQ6TkmjXV71ysm7nQO0 X3TTVHL4iXsgurPvIZ1GqsGExWKcQ0fzkoi9Gx0PyWO0jh9N35Df5HXCn1n5sVJ/5Xzy 0g9AnIQDN16khz4sF0UvBVy9+cR5k06YHqS+94KkaxEj/iGFfytcf0n4ibnV8xDMP6c1 DlWVfb8Sv1E3iG7uF9BzlebgfLyVlqLgBZKy0fJqts+tBZDkXbeFu/NqLUei23cKDCXJ t8jGH4HxFnwHFYTmmWQXrcoZ4r5qpTbPPLg6t36KNaPxoMSafqzGLeoD42WW3xtHdWVA Q5mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=lsKdHScMhT6Jx/J2qJPievEwQFPTMx7z/ig+x/cXLoU=; b=M/SAz0wjG29ll2mBojPbQ2hRg9euFjVRGzYX3ih/4zywNgo4LAMs4RIVECLdUZurrM kJ/4JyHVwmnlKBmRjYyqsVJHS+0IqoooDp6G7gVqu03W2C/p9WcIOLT3dvYk2uwbEVCT q5JRiUTTGzmK7aW5mYJJBX+WE68ZO3pQWxxveFsCFx6pUGVNrNO8dt2LPP6n6GgZ4Sgs KjsqIZeVI72gX2IsFIW7DjC8JE8kwsBHqbtNX3ILTDA4OOmVvlk4fHK8XkYbiWzzjPMU xWmmOAjwEGDffQdBfeicKvtqx6ofYzKKzV5dMCfep4fuiXupucj7lggX9DF1ik9uDOrW jhLw== X-Gm-Message-State: AOAM53236ICt9TgvACKeJ0h9DVp46uHQkzyGJ2i64Pmhvj+LxAry27ry 9Egz3xVrm6UZKksTLUFlwTK61yY0hAI= X-Google-Smtp-Source: ABdhPJykt6NeE4kPySwQB+oPxVr8i9D3+C3bmk6jKNRXsjQq44FsQ7nDm2G0MJPkD0G64hS6hwodRQ== X-Received: by 2002:a05:6a00:230b:b029:28e:bdea:9b12 with SMTP id h11-20020a056a00230bb029028ebdea9b12mr38411157pfh.7.1620873256714; Wed, 12 May 2021 19:34:16 -0700 (PDT) Received: from tim-desktop (220-235-15-145.dyn.iinet.net.au. [220.235.15.145]) by smtp.gmail.com with ESMTPSA id e23sm873801pfd.104.2021.05.12.19.34.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 19:34:16 -0700 (PDT) References: <87lf8k2yr6.fsf@yandex.com> User-agent: mu4e 1.5.13; emacs 27.2.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: URLs with brackets not recognised Date: Thu, 13 May 2021 12:21:01 +1000 In-reply-to: Message-ID: <871rabxsyi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620873283; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=lsKdHScMhT6Jx/J2qJPievEwQFPTMx7z/ig+x/cXLoU=; b=jzzlScf7NXnjglBbpwS+7fTXJBCsw+ETnwNL9NDLJrn6yxPx0OXU4ck/vvKKbD8QNDd5z/ QcMAF9umz9kQ2l6qx5sFkeK7wOfei03E1DFlGu2rqcskYZuLpVnBw0mJVnt9qUPByX73BY pbi742mhGUsNG46CEtrS+7SoyOW6cWARRRTiGgVmWGOV8NyFcjSFTxfSdudSiCTrSuAoio PZElb/UzRspnyNglWanX70nL0hdFyEOKu/xZu6G6Pw+CyyNulaIdvi0n8Auk+HkTpRPhhF /yFjh68lCy46IvtPKVsyFVwzvZaqItw5EDpGQ/7t/EM12gHDBLN81QwDpP7cBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620873283; a=rsa-sha256; cv=none; b=sOyoiXGA4y7aNb0NswkmrQ+6jv3G0X7NtQCCyNz9AuKViiWUopd6YPuk2cYbjtN0zg/ha1 abz5sk5xmQkFgQEVFNlGMJsLlyklOGOTIAXOE7SlhJ0qx1yNRUTsVHQeZFj1nUvEQeAaeJ PPSz6hBoaaY39BkVZDpD1xz7J2bG1EuHxi1iZxQdHKaB27vyyI+1ushImPNd/WH0mudgEc BaX9RiwI/2ax6STEvh+2PzuS5AAxo+L5i/EhQPcwzo22H6vXHOQ4v5cIwpx4SjWTDB4NmH 0PHmgktJizjnGIl7v/jRwD00GjE+YCnM8OUDMWzeunaFhsOHbYCZDydMTh5niw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=CfBYUo0d; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=CfBYUo0d; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 864A21E31A X-Spam-Score: -3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: 74UyChuasUpd Rudolf Adamkovi=C4=8D writes: > Maxim Nikulin writes: > >> I do not think it is a bug. Plain text links detection is a kind of >> heuristics. It will be always possible to win competition with regexp.=20 >> Consider it as a limitation requiring some hints from an intelligent >> user. > > I disagree. URLs are well-specified. Per RFC 3986, the characters > allowed in a URL are [A-Za-z0-9\-._~!$&'()*+,;=3D:@\/?]. Org mode should > implement proper URL detection, not asking its users "to give it some > hints" and using "a kind of heuristics". A string either is a valid URL > per the relevant RFCs or it is not. > Limitations with plain text links are documented in the manual, with an explanation of why you need to use the org link insertion commands to created a valid link which escapes the problematic characters. As this is defined and documented behaviour, I don't see how it can be considered a bug. You might consider it a frustrating or even unnecessary limitation, but not a bug. I'm sure a patch which improves org handling of plain urls would be considered. However, previous attempts at such enhancements have either resulted in significant performance impact or unexpected and unwanted side effects. In short, this is a non-trivial problem to solve. As the need for such use cases in plain text links is a small use case and as you can have those links using org link syntax, it would be very hard to justify a patch which may have adverse performance impact for all users.=20 This change could be considered a feature enhancement, but it is not a bug. --=20 Tim Cross