From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sE2qJW9Q8WTCpAAAauVa8A:P1 (envelope-from ) for ; Fri, 01 Sep 2023 04:46:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sE2qJW9Q8WTCpAAAauVa8A (envelope-from ) for ; Fri, 01 Sep 2023 04:46:07 +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 60EF354A7F for ; Fri, 1 Sep 2023 04:46:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=jgbL47xu; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1693536367; 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=+eArMZ0pbFPVB5APnZGVr2fzC7KT5GmtMnHbiGcWxlQ=; b=NziWNW2DU70h0gFChEeI6Qf9in+eqW3kEvfWnVdZ24BqXD1M14DouEmQefIo55drcYft8E 0tRfmtqiuzebpdOE6f3GB/ZO0YZpWYVYb7TxpvUj22MrQLIoBEq3Wv5XqnIs1l1iDf+nS6 sc/uWOTrIBTsna7PTcrrPTcqe54Dy4Fn+2Lb4Lf4HtqcGecr64IRFD4w7kiKj676mOydQP bVfINTNLPw1olF0ouP//lS3Vmp0v+g5EwG52+gTqbFlAdAbB1H1FqvWghX0HBF9ONX2dGb 2NO/QMwJk92+j1hdcvPCLTqOZKB/7mG2NhFhg0jLoI40czj4B7ofwRcRPy2IWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693536367; a=rsa-sha256; cv=none; b=Wqy6yXCVOMcoQU1hUPSK+LMsozcXUax3aGOAQTV136glB9WTugm9SxNCmiPrjZJM1ZJVqd BakGrw8GFrDubm82hF5oABgYxmuqAj3xSydd8dUl2E8o4DBCdYMV2UTI2GqLKDfsz3xhHw 3P04KzEZeGNB/QyxVZLmRjSZ86Kw65Zi08lCAvWAjZUeAiPeOsL6n3hhRWRxZNunRdYYy0 qG+IEZtTMhFHh/p1KbtcKclK6szwKglVrfas/oVVVnUgv2zo4vdYb76uX3r6qQ7HpAmQOa I4n1XvzxseChz07YINEEHOj1BHbtB0ywWTIPlkhBGAQGIY9L7H1aAipNRZZzMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=jgbL47xu; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbu9f-0004Z7-E7; Thu, 31 Aug 2023 22:45:03 -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 1qbu9e-0004YL-0O for emacs-orgmode@gnu.org; Thu, 31 Aug 2023 22:45:02 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbu9b-0005u8-IX for emacs-orgmode@gnu.org; Thu, 31 Aug 2023 22:45:01 -0400 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-5008d16cc36so2735201e87.2 for ; Thu, 31 Aug 2023 19:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693536297; x=1694141097; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=+eArMZ0pbFPVB5APnZGVr2fzC7KT5GmtMnHbiGcWxlQ=; b=jgbL47xugxlo9cu3GFf4a9b+Vn1Rxn2393AOi8PyrpqDRsxm9p0PeH1ZKzR8/P9v/F GtGAAvR3tYxYwffOjYIaEgnhe2/j+cabyQXHbsd4HmrunLoTI/YO6pwYpGvSZGCLI4/u OQ7Lu/s8wBAS/sZ3i4avmQsmvjkVQU+oYXkr6tuQ4SxAYIdO9YPbWobwIMx5VjABW7W5 lQcvyU5OElItSrIUYGnwIlC0k4/QQHNi8/877lNnzLxv1uezeiulC259oUYwC2nHWAwl N7XI6OpADTNzumlMOBp5cugy6NwXBl3GTq5/ebdA7bT8ehlDJZ0B4Grq0IaaUWBI4Myq pePw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693536297; x=1694141097; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+eArMZ0pbFPVB5APnZGVr2fzC7KT5GmtMnHbiGcWxlQ=; b=HRo0T8FoHpD6J5oAJXcD0yguRB/uxsgpJONh1v4b34NDrmR5IAsidU1nLuNgjoPJIi cvbl/1FCU9HyaR6y7vzrLZmxiQP02cYZem4uIEmnfVDgxR1c6NhHRPD7f6JZr7BQqLQ4 8m+zvDCnMXMg1YLeLoe1uhsXu9VXIZXbSCAI4zx9soxQ3/aoxgZoyu2kyIIYXep0tGFx 5319fUOPk/YBHlP+uf3C6AOlcT+iDIdAalbrKvCzGX8WZASst5ApyZjHORpTL/0XrYDB jwrwxjHGEI2jCewPgEfxnMvA3r2jy4RklDPTIJkoQ59ctK16GjDGAz+ehOkKm8WuY6aj 9TXA== X-Gm-Message-State: AOJu0YzEDkd/ufoOLoDqErpLnzCBd3FU2a3k96gdZv2w0bhvJKhNHaQ3 AKdqAYvsWglkw2Slaf6izfDhUpbOXmM= X-Google-Smtp-Source: AGHT+IGFZs3tso/Fdx+U+LjfZ9lRrarBUE9ISFCPiBjzuGSYj5hTwVhTwzEPJfN/nGz26qmaGLzpYw== X-Received: by 2002:a05:6512:2208:b0:4fb:889c:c53d with SMTP id h8-20020a056512220800b004fb889cc53dmr750610lfu.10.1693536296394; Thu, 31 Aug 2023 19:44:56 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id t18-20020ac243b2000000b004fe3a8a9a0bsm497207lfl.202.2023.08.31.19.44.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 31 Aug 2023 19:44:56 -0700 (PDT) Message-ID: <89434f4f-8aea-23f2-bbfc-3961c18f2154@gmail.com> Date: Fri, 1 Sep 2023 09:44:54 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [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/)] Content-Language: en-US, ru-RU To: Csepp , emacs-orgmode@gnu.org References: <87il8v2q00.fsf@riseup.net> From: Max Nikulin Mail-Followup-To: Csepp , emacs-orgmode@gnu.org In-Reply-To: <87il8v2q00.fsf@riseup.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -55 X-Spam_score: -5.6 X-Spam_bar: ----- X-Spam_report: (-5.6 / 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, NICE_REPLY_A=-3.478, 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: 2.96 X-Spam-Score: 2.96 X-Migadu-Queue-Id: 60EF354A7F X-Migadu-Scanner: mx2.migadu.com X-TUID: s8ZytMIjdVlu On 31/08/2023 22:25, Csepp wrote: > There seems to be no easy way to tell it > to just treat it the same way it would treat an HTTP link and include it > verbatim. There does seem to be a way to do some Elisp scripting, but > it's honestly really annoying to do this for every protocol type. > > Please, just let users include URLs in their docs. (info "(org) Adding Hyperlink Types") https://orgmode.org/manual/Adding-Hyperlink-Types.html (Side note: I would consider `org-export-derived-backend-p' instead of `pcase' with fixed symbols.) So it is possible to have custom link types. However I do not mind to have an easy way to delegate URI from :export function to the link transcoder of active export backend. Current behavior with with treating link paths as fuzzy search targets is a kind of compromise. It allows internal search links to be shorter. One may have e.g. #+name: fig:something code blocks, so not every link looking as having some "scheme:" prefix should be treated as an external URI. As a result link types must be enabled explicitly.