From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IOrMLSRhDWUL6wAAauVa8A:P1 (envelope-from ) for ; Fri, 22 Sep 2023 11:40:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IOrMLSRhDWUL6wAAauVa8A (envelope-from ) for ; Fri, 22 Sep 2023 11:40:52 +0200 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 71D1E67B78 for ; Fri, 22 Sep 2023 11:40:52 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YgRRi5OZ; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695375652; 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=9KJ29wOamgcpcrLkCX3hmWdLPO6sy8NxS8z6Ef1jp+g=; b=FOCsIuQG09oLnH5X7Wc5YJtv73A2CrKThXgDYxTskthwreuMcCaAzyAvNSRQBogxPtULBf HmCcrqvR9OEotkpY5J0yqw7TQPFcLOWPe0UGqwrxoR+sbkA/IFsUzfbhg3+o0ifHI7Imi8 45F27VautvArB4gzkXEKm2F62FGWRz+bjk7ERXZMFY7YJnsasBV/vuI1UTDd1WMvLoODvX dk2Cb3+hHbojG7NkEXrM1mMc3FPRkzhQop1ZdMAzGJzvdrdPmRMTUfuZrFAMEqTjnB2zdp tFaiJbAUSRjIRkrOnp0gs/ZksdH8N0H0bHZjLqjhiBVAE+lVUfI4TiurRwmz4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695375652; a=rsa-sha256; cv=none; b=HRLx81WlbD05+SNINGgOFVA7DoVlgDa4FNhfALHV8sxr6HL/VNoPvf+Cju7chFDclNfErV n6gWkQdlrn2POe3nyKWvBv4i7a/qXAU2w580ydzKOext4HkPjPHH5xuVIzgwrrvyXRzvpF D+Vd++fNC1PqNnT496c+GMHK8TFdvgnSEhZhaQ3BMP/LSf9QPqXT2Y/Da6Ge5xFK2O6ypy rq1gb6sVaVmUNiGBWlmGD53He/YDATRnAaoyGKxons1wD0RvGSLej9SE/+zuM/T+UJYUZ7 2BtDs409sY+YCloEVk8D6hXs4sVVytCg/PleS2McQiEAH0trJDryUpT0V89EYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YgRRi5OZ; 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=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjcdt-00079u-IF; Fri, 22 Sep 2023 05:40:09 -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 1qjcdq-00079Q-HP for emacs-orgmode@gnu.org; Fri, 22 Sep 2023 05:40:07 -0400 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 1qjcdn-0004iI-I0 for emacs-orgmode@gnu.org; Fri, 22 Sep 2023 05:40:06 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 195B5240027 for ; Fri, 22 Sep 2023 11:40:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695375601; bh=bV2VACtdmQ590nQnS+v4rPMiJLUuvlXrhLz0FmLRixY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=YgRRi5OZu16ZLely9H5dENzg/xLXcPA6mMCNFbv0gcTPxC/LaQUKLgEYE7rqkyAe2 xj7wS4vGOgNMrTFccS9jwj1dwHF+cpXjUl6QXthyccjUYZRUMHQvBFiIrzHs89/XO3 n2aH4ubBaJCF+Z9amspb7B7LhRDSRiyU5YFeR5y5TbFAYozwAtkKZWUDpdZtDUWvaf s93tyx71kzLwGhm1YU8nOEj7k6AjasRYoqT+BKhVyb6g2Il22f+ksmkrDdg+uTx6iu wcNh3Q8uPq3qvERiFSn/RUE/P6Y6XzMorJX9od1mz37oHUaDVO90AMQcZMf9Oy1zWv yp86DrX3Dxqhg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RsS0w32Ctz6tw4; Fri, 22 Sep 2023 11:39:59 +0200 (CEST) From: Ihor Radchenko To: Suhail Singh Cc: emacs-orgmode@gnu.org Subject: Re: [FR] Make notion of "modification time" configurable during publishing In-Reply-To: <87led01s5s.fsf@gmail.com> References: <87led01s5s.fsf@gmail.com> Date: Fri, 22 Sep 2023 09:41:15 +0000 Message-ID: <87v8c2y284.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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 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-Spam-Score: -8.90 X-Migadu-Spam-Score: -8.90 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 71D1E67B78 X-TUID: YX2ZKUpBqCCW Suhail Singh writes: >> The new suggested feature is (optionally) using last git commit time >> instead of file modification time. > > The requested feature is for the notion of "modification time" to be > configurable by the user. Even in the specific situation quoted above, > different users may desire different alternative notions of > "modification time". For instance, > > - the value of the DATE keyword > - if using git as vc, the "git author date" > - if using git as vc, the "git commit date" I am a bit confused. What do you mean by "git author date" and "git commit date"? > It would help for the notion of "modification time" (currently > hard-coded as file-attribute-modification-time ) to be configurable in > the following functions: > > - org-publish-cache-mtime-of-src: this is used to decide whether or not > a particular file needs to be republished. I.e., the function at the > heart of the motivating situation discussed during the meetup. I think that we should use an alternative approach. Both "git time" and "fs time" are only an approximation. The true decision to re-publish an article should be triggered by article text being modified. So, we may better decide based on the file text hash, not the modification times. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at