From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6jVqOvtF4l/yVwAA0tVLHw (envelope-from ) for ; Tue, 22 Dec 2020 19:16:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6A+0NftF4l+MFQAA1q6Kng (envelope-from ) for ; Tue, 22 Dec 2020 19:16:11 +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 592439401C0 for ; Tue, 22 Dec 2020 19:16:11 +0000 (UTC) Received: from localhost ([::1]:54290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krn8j-0004wn-Lu for larch@yhetil.org; Tue, 22 Dec 2020 14:16:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krn6t-0004wN-Cq for emacs-orgmode@gnu.org; Tue, 22 Dec 2020 14:14:16 -0500 Received: from out0.migadu.com ([94.23.1.103]:59520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krn6q-0007Ib-2u for emacs-orgmode@gnu.org; Tue, 22 Dec 2020 14:14:15 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1608664448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I71oh/ZCUI9aj1eTWg/qphd+6Zh32sXe6KLmNlm1wjg=; b=D2BWZwMWox0lE77DFij26oNzYuiBAaUUAv1nxhiY34iLAIpw7uqDCkkLztAbrwoLgCd4hr X3yymLcrqwI73PvFJXDMObNEcb/KblydC2mA7CFwVj16al+R7q0+cEwOnegdlkoVNKP+Ca hTv71++kBARqdXaDhPB9wXubWeHmCwOFEUy9CNw8XVqymiqGd7tDp/AW0EilvR1jrjBDLq 4q/2puGkPL3g5zsZ7mSnr3NNroE2X+L6jOwY82VssaRbVsErzgdaYbTYeIML7c8IDtFJ7J 03/xI0F7utwbf6ob7fbYw+RjQKMmPtBLlSlhB7lpxtWaLs1NBRaB8YAxgF1D1A== From: Kyle Meyer To: emacs-orgmode@gnu.org Subject: [PATCH] tempo: Support inserting an absolute file name for 'include' In-Reply-To: <87k0tkwd3p.fsf@mat.ucm.es> References: <87k0tkwd3p.fsf@mat.ucm.es> Message-ID: <87y2hphcw5.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Date: Tue, 22 Dec 2020 19:14:08 GMT Received-SPF: pass client-ip=94.23.1.103; envelope-from=kyle@kyleam.com; helo=out0.migadu.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=D2BWZwMW; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 592439401C0 X-Spam-Score: -2.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: v2hLvKq9OaYc Uwe Brauer writes: > Hi > > I use tempo template and writing > > Although the minibuffer presents me with the absolute path, only the > relative path is inserted. > > Where can I change this behaviour? It's hard coded at the moment. I'd be okay adding a defcustom that controls this behavior, though perhaps those familiar with tempo.el can suggest a better approach. Thoughts? -- >8 -- Subject: [PATCH] tempo: Support inserting an absolute file name for 'include' * lisp/org-tempo.el (org-tempo-include-use-relative): New option. (org-tempo--include-file): Insert file name according to org-tempo-include-use-relative. Suggested-by: Uwe Brauer Ref: https://orgmode.org/list/87k0tkwd3p.fsf@mat.ucm.es --- etc/ORG-NEWS | 7 +++++++ lisp/org-tempo.el | 12 +++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 65098d85d..d486eb4a5 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -12,6 +12,13 @@ Please send Org bug reports to mailto:emacs-orgmode@gnu.org. * Version 9.5 (not yet released) ** New options and settings + +*** New option ~org-tempo-include-use-relative~ + +By default, inserting an =include= keyword via =