From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yPTTD4Dkq2WUYwAAe85BDQ:P1 (envelope-from ) for ; Sat, 20 Jan 2024 16:19:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id yPTTD4Dkq2WUYwAAe85BDQ (envelope-from ) for ; Sat, 20 Jan 2024 16:19:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=khGNNScX; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705763968; 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=ZsjVX+biy/zn6NHRbAAIJDnMbMBcyOS+BB4iZn6Lpa4=; b=HhR78Rd1S1t9gGEi6YTh6CJkJVaZ3i7EVtNNCohtAxpFm6wk4B1tIMcT7nn0ITqg9c0b/e xYxlEMxrqSkBD3CsnVGFDVXq+nYNLMHGX0sI/sU11fHnITos+1zOilrTkVPOb/64fNjzkk IENOypY6Geei8ct1dqFLSSoXnR+49XRIwIBbfcbtoQzhXvl6l6SzhJk9bGvjaOLsmMaaC0 yi04RLfsmlk16wDAc9a94VjKnyMe96JuvRHiHx/gSMqYgJcyRjt3eYsDWyzQLDbWTIwRFW r1joedN+aSC+QDR0vQsCdNChAtHbPYbQSlIv1q7iF8h1xLdw9HBPDbEYWeLvKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=khGNNScX; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705763968; a=rsa-sha256; cv=none; b=UfutCLrAGomj0emls9mpDa1rTRJMPYSuMaanpHgsBUpOLb4jE8xO+eK6Ctr0EGAbocvDsi e7MFZaiPqAYIpx6scCb18sjFzHc7uy2icGySEvZru0F6+kBNM+cpehyBnJfyLfYvR5h3X6 4K3KZa+gHPalOBvMGa1mZVqvuYz2q60C48wxV2CsIbmGKx31ccsHkwa1hgPFsU4adWcOBR rw3fqDel2jyrFFJo10uIvc/h8EbRSofSvc+73gOTE4L7uQrRGp/qNxweYyKCrjt9wdzCKV RV1WCz0aWIM++AD/6TLR5jgpT8MSPUQkvfn4jX0Gz4aj2rHH063kHfCGEi5N9g== 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 20FBF22567 for ; Sat, 20 Jan 2024 16:19:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRD77-0006XG-LW; Sat, 20 Jan 2024 10:18:29 -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 1rRD75-0006Ua-R0 for emacs-orgmode@gnu.org; Sat, 20 Jan 2024 10:18:28 -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 1rRD73-0006Jg-Ix for emacs-orgmode@gnu.org; Sat, 20 Jan 2024 10:18:27 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A105D240029 for ; Sat, 20 Jan 2024 16:18:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705763902; bh=Yg8K1xgwXyPDmIxDaNInBKGZCFzJ2lT/IZHDrjHhxp8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=khGNNScXuv23hq4MNBLrtKknQnvGO2bMzk0guQTvFkEUyZ3E8wD2Ug0S2F78BqNmS Qo0oT7qwPYRlr5glc6hfiru4PBhDk9TMBcGDAtEPdGDUOIeYUne+Mq1DVGtQmbduQG ay8ZEN8S3Xg/j7yGuWXiMh0Ecp9VeIIN6e4nHStoAm77uWIBUkl3qbi28mxMEV7Qvp Vfg42GA7RHY0YRh05XYHcF3TAODiE8oXKh0VwNWPfpHuv3pnmGN3RkArDB7S376s8e IYhzAMZKnSYCErQIgoYau6A7RdX6kNN6AAqkBZ3I3COcPJjGF8cUCcXv7VAVxuIMME TajJ2cx2FBXwQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4THKqx4XGrz6twV; Sat, 20 Jan 2024 16:18:21 +0100 (CET) From: Ihor Radchenko To: Ihor Radchenko Cc: Bastien , emacs-orgmode@gnu.org Subject: [PATCH] Change the default value of org-attach-store-link-p to 'attached In-Reply-To: <878sdrm1em.fsf@localhost> References: <87imd2yth5.fsf@localhost> <87ft7zyws1.fsf@gnu.org> <878sdrm1em.fsf@localhost> Date: Sat, 20 Jan 2024 15:21:38 +0000 Message-ID: <87frys58u5.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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_H5=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: -9.90 X-Spam-Score: -9.90 X-Migadu-Queue-Id: 20FBF22567 X-Migadu-Scanner: mx12.migadu.com X-TUID: cM27TWPorsUq --=-=-= Content-Type: text/plain Ihor Radchenko writes: >> Feel free to propose a patch for this and the suggested switch, we can >> apply it after Org 9.4. > > I will add it to my todo list. This should be lower priority than org-fold.el See the attached patch. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org-attach-store-link-p-Change-default-value-to-atta.patch >From 175937da259fe0b29057d69055bf3469aa1a8679 Mon Sep 17 00:00:00 2001 Message-ID: <175937da259fe0b29057d69055bf3469aa1a8679.1705764051.git.yantar92@posteo.net> From: Ihor Radchenko Date: Sat, 20 Jan 2024 16:20:20 +0100 Subject: [PATCH] org-attach-store-link-p: Change default value to 'attached * lisp/org-attach.el (org-attach-store-link-p): Change the default value. * etc/ORG-NEWS (The default value of ~org-attach-store-link-p~ is now ~attached~): Announce the change. --- etc/ORG-NEWS | 5 +++++ lisp/org-attach.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 847ddf614..ea456c67b 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -371,6 +371,11 @@ The change is breaking when ~org-use-property-inheritance~ is set to ~t~. The =TEST= parameter is better served by Emacs debugging tools. ** New and changed options +*** The default value of ~org-attach-store-link-p~ is now ~attached~ + +Now, after attaching a file, =[[attach:...]]= link to the attached file +is stored. It can later be inserted using =M-x org-insert-link=. + *** New option ~org-fast-tag-selection-maximum-tags~ You can now limit the total number of tags displayed in the fast tag diff --git a/lisp/org-attach.el b/lisp/org-attach.el index 58bfcf9ba..81ce9a73c 100644 --- a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -142,7 +142,7 @@ (defcustom org-attach-use-inheritance 'selective (const :tag "Inherit parent node attachments" t) (const :tag "Respect org-use-property-inheritance" selective))) -(defcustom org-attach-store-link-p nil +(defcustom org-attach-store-link-p 'attached "Non-nil means store a link to a file when attaching it. When t, store the link to original file location. When `file', store link to the attached file location. -- 2.43.0 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--