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 ms13.migadu.com with LMTPS id CJ7ZNNdg1WacUgEAqHPOHw:P1 (envelope-from ) for ; Mon, 02 Sep 2024 06:53:12 +0000 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 CJ7ZNNdg1WacUgEAqHPOHw (envelope-from ) for ; Mon, 02 Sep 2024 08:53:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jjLkcFEz; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725259991; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=d4hTS7o/MaY5vj+tNhs+D9R6kxgDiUvoRAh8AbrPrqA=; b=QAD9inkAKHPY+ixvQmL9R6o+vfz6+sStl2IORHP8OltECJB9hFE5YJV5MJyWByNYbEUB6B Vx8eZ+LE+/shdnSLwGazUmmGz85PnvbwZXLk3vO/cfYzN+Tb8g+GYy4iXmpp5MzdFIqtls 7y2x3PD/l23OU+cbIa1GWhuGkn8B4zyiIKDqV5j5AETBN9Y02KhQypdCWQ1pMU4vqTU+iu hSbUMI2o6TUaFYyWbCuxOfcstv+AG19McX02f7Fug/IjEcGTcwNOON30jisxq1SlFtScLf QvVDcXodqg2Bk7UesVS4orgBwNbqmnJ28Tx6rI8caCiqXTnNB/ykfjIARFZMJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jjLkcFEz; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725259991; a=rsa-sha256; cv=none; b=fRxKxBRdRiFCrl8TTh8eK4QHnXHgl+bWUrYVOxCACGHtQ6GE6v2Hrdr+Bnj1p6GycNRkd6 HT/b6IrvG0dSERhryspc8Vrd58u8rAxd86S22qDgjVZQ0w4Joaozot7lHx9EbEKPKEOALm odTQ1WpBXPLI7z0+mhvw+PtyWCNDmiXLJqwUzbW74VenUvQJWoMJ5tW8l7zVwRKzeRFsfh vGgT0rdVG7guuAJG2qAO0q8tjn/IDnoi+9rMMZnz4BP3Wy0ynb+BR64q6IxyVvbdWLY040 11OxLCaQVMXVxFoGPWc89STD780yLxmIO+IpYausC6jFRBv1Vrpv5rYYQAu1hQ== 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 85D2E3F243 for ; Mon, 2 Sep 2024 08:53:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl0vK-0005Sq-GX; Mon, 02 Sep 2024 02:52:26 -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 1sl0v8-0005Rf-C5 for emacs-orgmode@gnu.org; Mon, 02 Sep 2024 02:52:16 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sl0uv-0001jf-SB for emacs-orgmode@gnu.org; Mon, 02 Sep 2024 02:52:03 -0400 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2d8881850d9so1481639a91.3 for ; Sun, 01 Sep 2024 23:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725259919; x=1725864719; darn=gnu.org; h=mime-version:date:subject:to:from:message-id:from:to:cc:subject :date:message-id:reply-to; bh=d4hTS7o/MaY5vj+tNhs+D9R6kxgDiUvoRAh8AbrPrqA=; b=jjLkcFEzO7D7hcBE/lo41Hh7ZZAIYfrVWA+IiWp9GJW8WyfMR/q1/Hs9i0wOxfEDx3 uaZQ0/VSnhJzn/DJN+xmBwyuFz6Ozqc7yYAbmeZjS8PY/KTEWH2PmgGhGTnkJ/1QwNwB RKzSegQSiBYiheVrblFHiZtXLNvx3Mn3u+aZHKxzTE5pVikcMiQS4HwPZUsr/6r2ee0y Xe2G0jxVt++dlTS3BARhbVsphP0P/8T6dzbsVOz5OD9IZuB0yeYPtwAx/QwoBc2AwsNT 5MCzxZFl864SmvsfEEUaHoviPgptaSLLzR97wEesYH+G8SVIzvRndDMl7N5J+PWgKc6f kjZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725259919; x=1725864719; h=mime-version:date:subject:to:from:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=d4hTS7o/MaY5vj+tNhs+D9R6kxgDiUvoRAh8AbrPrqA=; b=gcgqTGLkH2gKz/+LR91cZvt4r4IJsSKx/gEtN0+oMlGkt3WnbdMF+oVVdg70iUcHHT npiodlo1HyfUi0T2dQQ0qNVgGbVpDHdLf0evhFOMPINna1fpT19A0bBvFXZMClejZw7K crSN8YZBrLApjYroJzqY/YKQnaaZsEC6FH8Ohs+wGNDdlxc7B8LdzsXy16pdUb9DoMnb EbYqJLZnATmElt1xjnpS0VnWS2lT8eSbAuOKBrEdMurw1F+WFXW1qmUw4I5aA6V52XkV 6nhXjN9woG1VlWMCAEEx6fCCRwoX5C0f6fVMUWwoinmterDhq1A2naaDapAdS6GopBCO pOig== X-Gm-Message-State: AOJu0Yz2YHRJad6fDFnNEjyTcPkXwizDBCEXC+u3AzNXRKAIJwJUUjCP LhCNuyNFKnd0KfX7f2lEBJLWFz/rPXsDTSNnAZFfPCjL48YN0WNy08/xIIVnqw== X-Google-Smtp-Source: AGHT+IGyMojG4X7R0DoLFjrpn9q5I7LrEBEK1Giiqgc49a8PVLz7WjIoQFej7fnj1ZpgqOopukk+rQ== X-Received: by 2002:a17:90a:fd12:b0:2d8:bec7:930a with SMTP id 98e67ed59e1d1-2d8bec79401mr1952872a91.40.1725259918929; Sun, 01 Sep 2024 23:51:58 -0700 (PDT) Received: from Mac-mini.local ([39.171.198.82]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d85b119b3dsm8346615a91.13.2024.09.01.23.51.57 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 01 Sep 2024 23:51:57 -0700 (PDT) Message-ID: <66d5608d.170a0220.998ef.c484@mx.google.com> X-Google-Original-Message-ID: Received: by Mac-mini.local (Postfix, from userid 501) id A2083E85E2CE; Thu, 29 Aug 2024 11:36:32 +0800 (CST) From: "Christopher M. Miles" To: Org mode mailing list Subject: [PATCH] put `org-attach-after-change-hook` at the end of org-attach Date: Thu, 29 Aug 2024 11:36:28 +0800 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=numbchild@gmail.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 85D2E3F243 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -10.90 X-Spam-Score: -10.90 X-TUID: 6cS2vKbmkBFR --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain lisp/org-attach.el (org-attach-attach): Put org-attach-after-change-hook at the end to make sure user can access attach link in org-store-links. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-attach.el-put-org-attach-after-change-hook-at-th.patch Content-Transfer-Encoding: quoted-printable From=20f21ef819ab6670f1ed64a731d5d7b5fb29119f33 Mon Sep 17 00:00:00 2001 From: stardiviner Date: Thu, 29 Aug 2024 11:31:53 +0800 Subject: [PATCH] org-attach.el: put org-attach-after-change-hook at the end lisp/org-attach.el (org-attach-attach): Put org-attach-after-change-hook at the end to make sure user can access attach link in org-store-links. =2D-- lisp/org-attach.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-attach.el b/lisp/org-attach.el index 7a03d170e..d43cbc74c 100644 =2D-- a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -615,8 +615,6 @@ METHOD may be `cp', `mv', `ln', `lns' or `url' default = taken from (url-copy-file file attach-file) (error "The remote resource %S is considered unsafe, and will no= t be downloaded" file)))) =2D (run-hook-with-args 'org-attach-after-change-hook attach-dir) =2D (org-attach-tag) (cond ((eq org-attach-store-link-p 'attached) (push (list (concat "attachment:" (file-name-nondirectory attach-fil= e)) (file-name-nondirectory attach-file)) @@ -629,6 +627,8 @@ METHOD may be `cp', `mv', `ln', `lns' or `url' default = taken from (push (list (concat "file:" attach-file) (file-name-nondirectory attach-file)) org-stored-links))) + (run-hook-with-args 'org-attach-after-change-hook attach-dir) + (org-attach-tag) (if visit-dir (dired attach-dir) (message "File %S is now an attachment" basename))))) =2D-=20 2.39.3 (Apple Git-146) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmbP7L0ACgkQG13xyVro msNewQf+JUKBxp9ZvwpGqW76kE3UcHjObcDhDB7t/9O68lQt3x65xSTr6yjmKJqD FbGqumMQkhC2HqSHK9EPM1CTV0yFz8CJnVsA1t5I7wO6n5+QAVkiSnNxXhdVUrFe EzinEl31Eb3gIuWlEHU77zl3o+cCfxikO/pq8Y8WK57kOtzG+Jk9fTUQ9aD51pP4 lZrCKU30See5W6lsr5ZtVNRaP7vwry7V8gL5/4m2GgTUTHwjtsDi7xrqYDdJFmsc VFQ2BUprTYZwWtm2HOE/ciBxJmOZLxf5jAo39S+zsM3GEACGWhBXRb0LwZ6iRr8p 6WWlJva0jqMvAXnh2wtcfg2hIJl0lw== =ay5w -----END PGP SIGNATURE----- --==-=-=--