From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id kNCiJMGoPGblLwEAqHPOHw:P1 (envelope-from ) for ; Thu, 09 May 2024 12:43:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id kNCiJMGoPGblLwEAqHPOHw (envelope-from ) for ; Thu, 09 May 2024 12:43:13 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bryXwEzu; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715251393; 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=XFqtlryZ0ZsEOngZZj+F92fsbP69M81OjCh26XY/3Hg=; b=ME0bD7b6NGTVwjfRG3rkYlsIHH2eLmpPjULjxtOdfw2CdsqGhxQ5F30Kb3h+ZwkH2YLf/M wJ+1d/E2gRc41U8C6+rMhPWZ4h+YKLulxdlJ15LET1nIV+gG1yC7NlaapFyTb4HW2+fmFc IGkVoDMS2EdihL4izXJpoSdZ1s/KCEHcAuK6q5+wddr0wZ+abPTqJ4OpP+NQFaEr/A2gHF alhjFccZclurwDy3Cd9CQr+OVFkZ2ufRI3KzWwnykR1GINW0VKgP2dNPbI8iNQzSaZ136G 9RZ8McwVw8N07UunVBhypjcdhGwj2zIY9VYpTV/zeL1cMrjkuIc5GPZxW42Icw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bryXwEzu; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715251393; a=rsa-sha256; cv=none; b=i+7Pt611s5zzL9pK3REalOSTQxlF+CK8yil8wnE0RjAfMW9UMM+W3YNA1EjwITHqIkaPBT Nr3aCtyd1BCndrBo/8IKMxAyCnYXl551eynQyafcZgbBJO6hfux/oyc4uIeRWXwub6bP+0 pH/3zqKi7iq2qwArUmUyjSb06mIYm7pj9U4jY51NMFH+aPn3oHIAr0c8nUYtWVRZHUJlBv 3dCWau6xqgvEhvkhPePVh3OfFAZlSx5O6fKa3RNKrJVvJzGMIuax03d23qANXz6TJ5hsAX 0/55HlUH/ZvVVDFlCRSCTj4zfToBI/agQdPACnnxSL6Zy51mWSXo7sdCoMJXBA== 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 799FE53A95 for ; Thu, 9 May 2024 12:43:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s51Ec-0005sq-3D; Thu, 09 May 2024 06:42:46 -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 1s51Ea-0005sI-10 for emacs-orgmode@gnu.org; Thu, 09 May 2024 06:42:44 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s51EX-0002C9-5u for emacs-orgmode@gnu.org; Thu, 09 May 2024 06:42:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 46380240104 for ; Thu, 9 May 2024 12:42:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715251356; bh=o84K1zS+ukrio2mjGqoGIPhX90M9+LZ2u4BYnfIXEYg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=bryXwEzuRLhAJKGf1TUTxIZJ1ywT/zUVm1N9U3nlUPMPyhUdjbspEETVrWyEv/GJ7 mJCZz727HFsh3ynniw59fA0DUh8a3pXIomvCDfgPWU6pUuzubAtRhwqcwxJV7u2Hsq QbhsGPxnRKGwGEZuRus12lUDjaEv8Yb6eSQy3P+o3rfOMwFIO8Ikd5CynGPp482gaO QlpWWIwMUVy8ZwjGffS4n4VyvEeaoBL9zKE8Rcd7bkUn5REZ5qN5C5ALIfgNS9bQzW qABV9Ws+Q0/EBQaXCGcEG9vgrxoosGPvYqcMwa3AC5v+GyD26+9SWlc8VxB4jt9cPs q/aaxZgRl1fpQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VZpVz2yBvz6twx; Thu, 9 May 2024 12:42:35 +0200 (CEST) From: Ihor Radchenko To: Ihor Radchenko Cc: Max Nikulin , Magnus Therning , emacs-orgmode@gnu.org Subject: Re: [BUG] org-store-link-functions advertizes that the first non-nil return value is used, but it is not how org-store-link handles it (was: [BUG] org-create-file-search-functions and description [9.5.5 (release_9.5.5 @ /usr/share/emacs/29.0.50/lisp/org/)]) In-Reply-To: <87tu4tppb6.fsf@localhost> References: <878rm7s61r.fsf@therning.org> <87k05qjpwg.fsf@localhost> <87tu4tppb6.fsf@localhost> Date: Thu, 09 May 2024 10:44:04 +0000 Message-ID: <87edabfeob.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: -7.64 X-Spam-Score: -7.64 X-Migadu-Queue-Id: 799FE53A95 X-Migadu-Scanner: mx13.migadu.com X-TUID: qDW+tPd7aXpr Ihor Radchenko writes: > Max Nikulin writes: > >> There is the `org-store-link-plist' variable used by :store functions >> from `org-link-parameters' but not by the >> `org-create-file-search-functions' hook. Maybe it is enough to add > > Reading through `org-store-link-functions' docstring and > `org-store-link' code, I noticed that `org-store-link-functions' > promises the following: > > Each function will be called in turn until one returns a non-nil > value. > > Yet, `org-store-link' does the following: > > (dolist (f (org-store-link-functions)) > (when (funcall f) > (push (cons f (copy-sequence org-store-link-plist)) > results-alist))) > ... > That is, all the store link functions are actually being executed, not > until first non-nil return value. If multiple non-nil values are > returned, an interactive query is displayed to the user. I updated the docstring to reflect the ground reality for now. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c6849a2bc -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at