From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oKmpJU2fl2FKewAAgWs5BA (envelope-from ) for ; Fri, 19 Nov 2021 13:57:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yDgzIU2fl2HoVQAAbx9fmQ (envelope-from ) for ; Fri, 19 Nov 2021 12:57:49 +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 384631CBAF for ; Fri, 19 Nov 2021 13:57:49 +0100 (CET) Received: from localhost ([::1]:34814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mo3Se-00017R-CL for larch@yhetil.org; Fri, 19 Nov 2021 07:57:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo3PU-0005dC-6f for emacs-orgmode@gnu.org; Fri, 19 Nov 2021 07:54:32 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:53257) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo3PS-0006LV-0c for emacs-orgmode@gnu.org; Fri, 19 Nov 2021 07:54:31 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id EA771240004; Fri, 19 Nov 2021 12:54:26 +0000 (UTC) From: Nicolas Goaziou To: Emmanuel Charpentier Subject: Re: [PATCH] c-csl : accept relative CSL filenames References: Date: Fri, 19 Nov 2021 13:54:25 +0100 In-Reply-To: (Emmanuel Charpentier's message of "Fri, 05 Nov 2021 18:56:09 +0100") Message-ID: <87r1bc2tmm.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.183.193; envelope-from=mail@nicolasgoaziou.fr; helo=relay1-d.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_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: , 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637326669; 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=FrzRbpmmlSc77A+2QRm4Wr0jjAeaXsJgDmI9n7/cl48=; b=NHimq9pQJfaH7/JQ90zh3I5R/hdFyFIZ3IE06T5vich/7SsTPZhN/DnnP3FQdv8W2eMX0/ f5lZUhkJjNlXiwAlaHFtWnF8BbQFQwoKPhIs76NiQhJ5OUrwpx3fyJXnjAyni071wHSaUr gpeHK6oqZMBTX++mwaRE4XL3Sd4nAJ/7ymGAe1Rs0IRIyJWLHRC+3twMxIwe9tV9dPOdhc fzjTWPCzHJyV3mH+ulDIRL7n2Wn1zZvSTmU4Qp/ImLLJKM8oyn1IaZ3KrL/rZwLBmDckol +psbxlFDxc6Et3CTGlTzSa6XMFyWiSIHGNZziQKq4tP1O7zTCN0EAuPGsPYkJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637326669; a=rsa-sha256; cv=none; b=mtW2dMGg4WOv+k1/jjD0Ap+brVwB9hb5Lz0+RhR0D7exNJ6LWHx/wLxUu1F9bp6gESGUgq L4VAT44q0xG4VbxKetYoTGXzatIbY8PSiOxJvqoW8vFYdFXw58yAEUHXm8jmK7+dGD9TFX +09ZyyozXbI/aPC731BF+SxPc9u2IMLf6CcHp6TEhFmTZrylnucn3ytgipeobN2sTuDTBd NdIKBbyVskK4eEEVCasxb2c20UpJzBOST2MrW8MiRzh9JPDydXvCeVfo7Z/lALZeAA0BjB 1c8OfDyADRP2r3d2S9ubxerrSc9Lg6AR6/z9c8oWPTKQt58Rwk2MWEro2kXBJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.96 Authentication-Results: aspmx1.migadu.com; dkim=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: 384631CBAF X-Spam-Score: -2.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: jtuTOEdSShqD Hello, Emmanuel Charpentier writes: > 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 ?) There's no such thing. > 4. if 3. unsuccessfull, fail. I think `org-cite-csl-styles-dir' trumps buffer default directory as much as explicit trumps implicit. If you need to override the variable, you can still use an absolute file name. I think a better order for a relative file name would be: 1. relatively to `org-cite-csl-styles-dir', 2. relatively to buffer's default directory, 3. failure. WDYT? Regards, -- Nicolas Goaziou