From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KBYXAMQls2HytQAAgWs5BA (envelope-from ) for ; Fri, 10 Dec 2021 11:02:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eAx7N8Mls2H9YwAA1q6Kng (envelope-from ) for ; Fri, 10 Dec 2021 10:02:43 +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 852AA13762 for ; Fri, 10 Dec 2021 11:02:43 +0100 (CET) Received: from localhost ([::1]:40460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvcji-0000Ox-L3 for larch@yhetil.org; Fri, 10 Dec 2021 05:02:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvc5P-0003hr-57 for emacs-orgmode@gnu.org; Fri, 10 Dec 2021 04:21:03 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:57869) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvc5M-0000VU-BC for emacs-orgmode@gnu.org; Fri, 10 Dec 2021 04:21:02 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id DF34724000E; Fri, 10 Dec 2021 09:20:53 +0000 (UTC) From: Nicolas Goaziou To: Emmanuel Charpentier Subject: Re: [PATCH] c-csl : accept relative CSL filenames References: Date: Fri, 10 Dec 2021 10:20:52 +0100 In-Reply-To: (Emmanuel Charpentier's message of "Fri, 05 Nov 2021 18:56:09 +0100") Message-ID: <87h7bgstmz.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.178.230; envelope-from=mail@nicolasgoaziou.fr; helo=relay10.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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: , Cc: post+orgmodeml@guelker.eu, emacs-orgmode@gnu.org 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=1639130563; 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; bh=3Qo7rmTi4kwB9wOVrs5YPlhcspeFNFThaJEplTSzPDA=; b=JJ9Jo3y/xcZKUYLYyuyWghndNHnk00d1GUULMG3sHjsrP4+MNPWPkF25sv8eAUHTxkMNLr lp8wAsiT7apg96zVuo+kQUaEFPFG9kxlteF1gJ8tE/VznaRmDOOH6vOB7g/jlaLFdgRU2J RSAHGxm8gLAW3W8qXosi//dbAnR2FxkZ/EMaBIhFeYZDTkCbMB45VpPtt3TmIvFHaTK+Ao mXG9PUGu7lQHT7Phob7nXjJ7CgoLD72+jTdzaLdG9W7OO+unqvbi2yp4cYwMZgi+nEkb/A RvWwLbk4XNBAy2/JERBTVWOangzgS9bJXix7vHcdVx2WvlJxv9k7cmAbSfPpVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639130563; a=rsa-sha256; cv=none; b=njDZGuMnqO2dUumM2/jOQKwTR9o14mrTxnOSo0Dvu32p1lUY2Ekw+EY1J+3hgZOGO4pOi1 epm2ajBw/msCfZPe+MhTcq/x5PmFsgj+ZqBmbdtgQlFvLNs/T6wOuPA5K853u+UwxsyF5U kSeNIT9MZ3yr9hA8LlXKH+0lDQSvcbwpfPuiFab6CdFdTA09fFl44xRBgFhv28HkITOl/z Fa1ku0yuxR0/i1TShCdy7wgI5+wosER42137dR1zGP4+e/Kmk7NMFBTHJFw7pv7/UosTyV J3p19TtreeCX+NIgAheypqoomMSXMb/dHg5Pp37gcNgWVCiGfe9Qy/4gv57xvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Queue-Id: 852AA13762 X-Spam-Score: -3.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: KWknbusRESll Hello, Emmanuel Charpentier writes: > Quintus' example illustrates why I think my proposed patch is useful > (or, rather, will be when corrected :-)), and why the order of research > should be from most-specific to less-specific. > > If a finename is not absolute, search : > 1. relatively to the buffer's default directory > 2. if 1. unsuccessfull, relatively to`org-cite-csl-styles-dir' > 3. if 2. unsuccessfull, relatively to emacs' default directory > (BTW : what is this ? How to retrieve it ?) > 4. if 3. unsuccessfull, fail. > > BTW : my current code does *not* work, and I do not understand why my > test used to succeed... A better patch will follow ( but not > tonight...). Since you are probably busy, I implemented this on your behalf. The new behaviour is in main branch. Thank you. Regards, -- Nicolas Goaziou