From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +AToC2cz8mSAMAEA9RJhRA:P1 (envelope-from ) for ; Fri, 01 Sep 2023 20:54:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +AToC2cz8mSAMAEA9RJhRA (envelope-from ) for ; Fri, 01 Sep 2023 20:54:31 +0200 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 DFC6B382FA for ; Fri, 1 Sep 2023 20:54:30 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Cz5fBTAZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693594470; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wG4t8fIxNktKsnyd8/S4zBUWiqNlVotJj/tbMs/t7pE=; b=RiGbgr5OMUiE5aZIrRT9qcIGDIX+YMTGbvWsd2aRua8LM48D8ST3Ak6eyFKLAfmdsNoOif JZRWUE713Tscerad1SgCE42ttL+Fwou4Rd3PfOrOA+qnoOaBuCneRgUVqi0V0tPgtspgUU DHGDZ7H17mYWyXCKr2HhEQW5gxW80P7QgCl75tWo4fqCbtdrCQAy/Xf5bC+kv2NHvukZKO /Imhg+07nNeQhfWxV4cHrB3At39vJKrdarkZQYliDALQEibcGXzgKWU8TLbve0PbdUOAhS unW0R4l/mFAlDqxnel/UX1zbXcLMeAqo0cPUfIIo1QUaxSKJrgSG1khvfBR4EQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Cz5fBTAZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693594470; a=rsa-sha256; cv=none; b=juea/W/WSmAuqiE4se95HHWhUsjOh80gILw8+RjDE5Ev9JeEzHWUO6GQlaGCyziecZvXaa Pt1PQ6aDOsWrXVRPXRHlehO8/aiMd2i2VgHczWrqm8aBdMwMGOrsrPiL5PxuIZP857KBVg CrF4oAWNXQczEL30RQmXAUOLYasf0Jjsa1/3NjlwdLn/4s7NCMN9uTj0saPzECtn2yg5vl mkXZTrgglI3WNZ3vq60UNA91eqwjfzrpxMIzI+bBmtpVGrBdnHCKyzLycQ5cVXBTDk1mL7 cbz1MjrWlXqp869zBPZrcK9CJkGgRODJe2RV4D2ZjdjY/fcWaRltxh0IYo/1ow== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qc9HC-0002Yg-Oh; Fri, 01 Sep 2023 14:53:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qc9HC-0002YX-4Q for emacs-orgmode@gnu.org; Fri, 01 Sep 2023 14:53:50 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qc9H9-0007Ht-Vj; Fri, 01 Sep 2023 14:53:49 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1bf7423ef3eso17674395ad.3; Fri, 01 Sep 2023 11:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693594426; x=1694199226; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wG4t8fIxNktKsnyd8/S4zBUWiqNlVotJj/tbMs/t7pE=; b=Cz5fBTAZEWjtuEfOWX5PrjsclZYjfSBoCBFNV686aFevy8TVLD8kykcew+kiAt3Nhk /wKtW2kOhHj7Mu5ixO9mHM8IYHoKVYRgqpD+WuE9MPWVD9h2jjWIWeo+wH89Of5jnjNK yCPcFsXth6FP2ALdeUbtSZQlIxTaK1q183m18sZTMELrGEo2u7/mbcog7Vq+hguZd6NL mDRvKoqk2Vs5e0p41wif2hkjtJJ+Z3DAb8erldBJ5QCr2RCFbJGrjCyMA0Zjjklw7nnf FnpXKUoeNlrbpVInzvPLM8lhBxeMTx7McVhz0ag7pBOSA6gnuvefyLgK4kq3/89jhSkx CE3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693594426; x=1694199226; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wG4t8fIxNktKsnyd8/S4zBUWiqNlVotJj/tbMs/t7pE=; b=bUJOBJSpFVTw60wE4qkL0ZECt8xQHB4h1IGjKjrmlMUX7NOu/aRskej/I7fIZRGBJZ CpwL+t7QC2G16hvs8JCZAL0N2ENyCljc6JGUVHzpoBu5d9UbFS2sxUyZV9D5r0E60voc rYIOmGvszLxjn2pUp117p5pCFOE7KPfR617c/y3vh05jMH9jBU0Bmbccatq26bbNbHdp HdAtM2z1BghLyYwwv/1p6b/nRy5HRufrAc4l1KoqDtiBvX1PyO0Meqfz4FJNgxrBjogq bb2UreMiYDFSFQNHi/AmTADdoh9hMnKyVqudV99Lg5/Yz+sqnUyy/6u742rqAka+SQHd SERw== X-Gm-Message-State: AOJu0Yx/GOY84wdUhHmQVTbRWe/gXbGODNH8rUFdTsf1A3bXTEwZFVuG LRt1FIsDYNaF38a8tEZIFBm+OGVi2wFXqIGPtqA= X-Google-Smtp-Source: AGHT+IF2hzAGnfKvLdgrEQSNiHEGc9jOSYnu1iuk5HyXOMjTsZ0BmcipNeLjiqCkoRq+czVUuHvE8Uzmkf0XL6akSr0= X-Received: by 2002:a17:90a:cb0f:b0:271:ae4f:dd12 with SMTP id z15-20020a17090acb0f00b00271ae4fdd12mr3285794pjt.26.1693594425964; Fri, 01 Sep 2023 11:53:45 -0700 (PDT) MIME-Version: 1.0 References: <87il8v2q00.fsf@riseup.net> <89434f4f-8aea-23f2-bbfc-3961c18f2154@gmail.com> <87a5u6tgb3.fsf@localhost> In-Reply-To: <87a5u6tgb3.fsf@localhost> From: Tom Gillespie Date: Fri, 1 Sep 2023 11:53:34 -0700 Message-ID: Subject: Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3mpjk70si-emacs-org-9.6.7/share/emacs/site-lisp/org-9.6.7/)]) To: Ihor Radchenko , "Dr. Arne Babenhauserheide" Cc: Max Nikulin , Bastien , Timothy , Csepp , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=tgbugs@gmail.com; helo=mail-pl1-x62b.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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.68 X-Spam-Score: -4.68 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: DFC6B382FA X-TUID: BcYI4UWXocs7 This is a timely discussion. I have been thinking about how to deal with prefixes defined by the #+link: keyword which is directly related to this question. I think the following might be a solution that also avoids the issue brought up by Arne. The original "bug" cannot be resolved because bare URIs have syntax that conflicts with Org syntax. However I think we can do better than directing users to org-link-set-parameters. My suggestion is as follows. Schemes/prefixes defined by the #+link: keyword can be used without surrounding syntax markers but may not contain spaces etc. To support this Org parsers should always parse prefix:suffix as a _putative_ link which must then be checked against a list of known schemes that are either built in or have been declared by the user to indeed be legitimate schemes. In the tel: case, the way to solve the original bug is simply to add the line #+link: tel tel: which would tell Org that e.g. tel:555-555-5555 is a real uri, and that it should expand to itself. At the same time this solution would avoid Arne's issue (which I also have in some of my documents where I have use fig: and tbl: as prefixes in names and reference them via [[fig:figure-name]]) because the parser would only treat prefix: in an internal link as a scheme if it is defined explicitly by the user in a #+link: keyword or in their init.el. Thoughts? Tom