From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YDOvHINhFWD0OQAA0tVLHw (envelope-from ) for ; Sat, 30 Jan 2021 13:39:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +GZgGINhFWDMcQAAbx9fmQ (envelope-from ) for ; Sat, 30 Jan 2021 13:39:15 +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 F08B79403E6 for ; Sat, 30 Jan 2021 13:39:14 +0000 (UTC) Received: from localhost ([::1]:34910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5qT3-000108-Bq for larch@yhetil.org; Sat, 30 Jan 2021 08:39:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5qSd-0000yU-Tf for emacs-orgmode@gnu.org; Sat, 30 Jan 2021 08:38:48 -0500 Received: from mout02.posteo.de ([185.67.36.66]:42923) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5qSb-0007QT-Qb for emacs-orgmode@gnu.org; Sat, 30 Jan 2021 08:38:47 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 353312400FD for ; Sat, 30 Jan 2021 14:38:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1612013923; bh=5yESPgEsjtFkChOmM4GBpgwYRfq3LNmwggKzn0Drdgg=; h=From:To:Cc:Subject:Date:From; b=RTI0CtdFbDTI9Vw4CNDAUto+jjQBzM6et6af7YKNixid4Z3IKwnP+v4pdcYmbjqw9 iLtMmWF+9lzOfYoPzRfhtGM5P7Vl12ooZ3po/6mOWC4g56fdbOO5I5ENfmMTSTwS1C NmWgo45gwDdKjRpWpTtBGi/vONrZ5Puerq4XUNyE/i36m9+Qp4C7zaPz5oJA1Qmlg0 NJVQeAEuXl0yyxVzxUwV42zUwWWtbQQ9VE89caEFAMSeweje4OQKIElDoYuxw4yY5A sBi+iyQSrFtO3frwkMR9baPhsHJKqDtscnorXIzaBoD0ea81n8lR6USMqXHLF6b5aU Tjm60aak6+buQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DSZzk3F7cz6tmH; Sat, 30 Jan 2021 14:38:42 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Subject: Re: org-attach-git don't automatically commit changes References: <87czxn91dj.fsf@posteo.net> <87a6sr6mcq.fsf@localhost> Date: Sat, 30 Jan 2021 14:38:41 +0100 In-Reply-To: <87a6sr6mcq.fsf@localhost> (Ihor Radchenko's message of "Sat, 30 Jan 2021 13:10:45 +0800") Message-ID: <8735yiv926.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.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_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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RTI0CtdF; dmarc=pass (policy=none) header.from=posteo.net; 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: F08B79403E6 X-Spam-Score: -3.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5CbeA7Se8frR Hi Ihor, Ihor Radchenko writes: > Note that org "sees" changes in the attachment dir only when you use > M-x org-attach command to manage the attachments. Directly changing the > attachment directory will not be noticed. You can force org-mode to > check for changes in attachment dir by running "C-c C-a z". Thanks for the explanation. It seems that I had misinterpreted what the manual said :-) Anyway, in my case, it still doesn't work (?). I think it's for a path problem. In `org-attach-git-commit' there is this variable: #+begin_src emacs-lisp ;; ... (let* ((dir (expand-file-name org-attach-id-dir)) ;; ... #+end_src The default value of `org-attach-id-dir' is "data/", and if I evaluate `(expand-file-name org-attach-id-dir)' on my current node, it returns a wrong path to the attached folder. `org-attach-sync' only works for me if I set in `org-attach-git-commit' the variable like this: #+begin_src emacs-lisp ;; ... (let* ((dir (org-attach-dir)) ;; <==== ;; ... #+end_src In that case, it does recognize the path correctly. Again, I don't know if I'm missing something... Best regards, Juan Manuel