From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id ePpVFKCMu2Xt7wAAe85BDQ:P1 (envelope-from ) for ; Thu, 01 Feb 2024 13:20:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id ePpVFKCMu2Xt7wAAe85BDQ (envelope-from ) for ; Thu, 01 Feb 2024 13:20:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; none 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 436AA39694 for ; Thu, 1 Feb 2024 13:20:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVW39-0005ZS-OH; Thu, 01 Feb 2024 07:20:11 -0500 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 1rVW32-0005ZH-0a for emacs-orgmode@gnu.org; Thu, 01 Feb 2024 07:20:04 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVW2x-0000Iz-Vw for emacs-orgmode@gnu.org; Thu, 01 Feb 2024 07:20:02 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D787D240028 for ; Thu, 1 Feb 2024 13:19:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706789997; bh=X1nZDnJ3zXiq7OHFyIcWfzyFXkrw9VV119Tp5ryUOaE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=G6lDMhu9XExFM53ceNFWUMaw25Ow7tFIOC8ddwsO9wo1AMpGa+Dvq4n3/qI5OOpwX IQLe7JLb0n9Dd4EgPPCRQMDynav+dNEdqpFV2ZL/RyAnO4U/dxkPNXNvpl7iKn20ue WOCESNOzvYkLt6Y2PGfh8O4KIdUjQFYaE+3tkNcwcJQvWKkRuj3xLLt/wpOVMESAtB I26ktBSvFmAwH6OYhvljZfehCF2NCaU6JFhn/GhpF2fhdRmvAZVEkGU0TLBF524NiX Qkf7lxPitb486RlLBCvEXA8/UbQj/Jsb79qzZTfL3tJh6hnth8pg/f6i8C4UONikxi QHSWdaVGcbygg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TQdJX2h4Pz9rxB; Thu, 1 Feb 2024 13:19:55 +0100 (CET) From: Ihor Radchenko To: joseph@ushin.org Cc: emacs-orgmode@gnu.org, Adam Porter Subject: Re: Should org-link-parser add type "file" when link has no "file:" prefix? In-Reply-To: References: <87o7e9ei3p.fsf@ushin.org> <87wmsx3vyc.fsf@localhost> <87a5pro14q.fsf@ushin.org> <87le9a76mk.fsf@localhost> <87wmss1r51.fsf@ushin.org> <87ttnvan3m.fsf@localhost> <87v87v0zno.fsf@ushin.org> <87le8pl7lw.fsf@localhost> <87mst5f1o9.fsf@ushin.org> <87ttnchzi2.fsf@localhost> Date: Thu, 01 Feb 2024 12:23:26 +0000 Message-ID: <87v878gypt.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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.00 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -4.00 X-Migadu-Queue-Id: 436AA39694 X-TUID: hhYSAZou9wgd joseph@ushin.org writes: >> > > What we can do then is pass an extra argument to :follow function - the >> > > link object. That way, :follow function can get all the information it >> > > needs. >> > > >> > >> > I like this idea! Would this change break existing :follow functions >> > which only expect max two args? >> > >> >> No. We can preserve backwards-compatibility by checking :follow function >> arity and only passing the extra argument with the :follow function >> supports that many arguments. > > Good to know. If the goals of hyperdrive.el can be accomplished without adding complexity to Org mode, it may be best to avoid avoid adding another argument to :follow functions. WDYT? I did not make any changes to Org mode. And I will not, unless we need to pass this extra information to :follow functions. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at