From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eChyFQhJvmbRqQAA62LTzQ:P1 (envelope-from ) for ; Thu, 15 Aug 2024 18:29:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eChyFQhJvmbRqQAA62LTzQ (envelope-from ) for ; Thu, 15 Aug 2024 20:29:28 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=sCAVO0Yk; 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=1723746568; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=TKz+bM+yXhI5eHW8g4ZRfbvcLh0pLyickZ8N0Ca+Yk4=; b=LTyLPjzTmCLEyLpmUdlJCJ44NBijYwiCIITuh9472yxXYpsaoSAuKyRwhPaGTWMVHdZDoK CdNLZ1bJMfvmEmPEpYCp487cBOzrObRSjMa1QVT+wcXwxifO4PlWqvIbWw1nVRLeX4W56U I3a9qYsXlEfdPrNMjxg5pWqeO1napZ32NfJ3AH8hM80bjqCAEtrviRVWpHvcaEsN/ph0QR Wd01WDvyGB6PPSH5P0wkDI4vZa+N1niXGOh2sTFsXV/Jh0WpCO18GCnDacCmtdkrRchqN2 bkTNsHLV63xwCK+J1k+PLo8V5Sip2K5e3ClzBQ372+AS/UTzW0sRgwQZ+ViWPA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723746568; a=rsa-sha256; cv=none; b=mLjUTGsOwKEP8yDZjnTER/El6OihxCJWWglb4NaDwDAYe4TMADrk72TTlEPbgxQ2EX0R4E z67VcQF3vl34vlRzoWWjXjjp/5UXJ4IYxVa/SpjYtOYZA/3tkQjf9l3Iz2ha9IIZGfUGjq n9bxjfjyPrrj6x+eUPh0t3rTaRxHoRAoqMQgG1Lc8goxUZ0L5AAG3KkWM98TpHQ/bblwwl 8h2SUmeIhqkcIrhjn7E3W4GOLpSSjtygWb/5ZPUM37crU+q4xUNJyJ4l/02vmqARRgvOyy mHxh+VbAsxJha6OxfBdqyHM2hwGJn8smOZGcLmFg1VujVHnd8L0nS2eqyxGfEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=sCAVO0Yk; 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" 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 1D5006243B for ; Thu, 15 Aug 2024 20:29:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sefCu-0006bX-EF; Thu, 15 Aug 2024 14:28:20 -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 1sefCs-0006Zv-QU for emacs-orgmode@gnu.org; Thu, 15 Aug 2024 14:28:18 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sefCp-0000do-BU for emacs-orgmode@gnu.org; Thu, 15 Aug 2024 14:28:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 800D7240103 for ; Thu, 15 Aug 2024 20:28:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1723746492; bh=rXA82dOwx6pysh+//jAHBZtuYeRlAJhBx9+zvRWnaTQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=sCAVO0YkHWOUO9S1a84h3js4suMsCNIkjseBRmQm4hbATVOGhk0wNDf0Ie41ZZTXs ppf8uqaVUSPFvmrtuMk3Wg2YDjjPROxoZem015SRA44c3HadZ9UZpFOUrZofIGJ5v4 L8ktjygAed6PIg7vLaCJR4Z7wox8/0XOcFeeRq43ljFxncW98yrnxqM8AuQO3OlAg6 lHLJk4mwUj2Re7zn6UirehRJ251F7UGwhPQyUXH35/1tvlYzv1zufopjkFFPcZB83f /+7k+x5ZvQorJwuf2bIQCZWMMjjSf3460bhuKtYd5m6BAbwi0ih5E9mXyyjk8vAtcE 6xX7RlnyOF29Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WlDBy5Kt2z9rxB; Thu, 15 Aug 2024 20:28:10 +0200 (CEST) From: Ihor Radchenko To: Jens Lechtenboerger Cc: Eli Zaretskii , emacs-orgmode@gnu.org Subject: Re: Proposal: Change publication timestamps (was: Publishing cache) In-Reply-To: <87bk1yxjhw.fsf_-_@wi.uni-muenster.de> References: <86ed921oxu.fsf@gnu.org> <874j9vllbp.fsf@localhost> <87y177pqzm.fsf@wi.uni-muenster.de> <87a5jnk347.fsf@localhost> <87bk1yxjhw.fsf_-_@wi.uni-muenster.de> Date: Thu, 15 Aug 2024 18:29:18 +0000 Message-ID: <87o75t1vy9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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-Queue-Id: 1D5006243B X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.68 X-Spam-Score: -9.68 X-TUID: FGv7TaEZQvHy Jens Lechtenboerger writes: >> See "14.4 Triggering Publication" section of Org mode manual: >> >> Org uses timestamps to track when a file has changed. The above >> functions normally only publish changed files. You can override this >> [...] > > I propose to change caching and checking of timestamps as in the > attached path. > > Currently, org-publish-cache-file-needs-publishing checks whether > the source file was modified after the cached modification time, > which is fine. However, for each included file B, it checks whether > that was modified more recently than the source file A. If so, the > source is file A is considered to need publishing. This does not > make sense. File A will be published again and again, even if > neither A nor B changed since the last publishing. > > In the patch, I store the current time in the publish cache, not the > source file=E2=80=99s modification time. Also, for included files, I do = not > check their timestamp against the one of the source file but against > the cached publish timestamp. > > What do you think? The patch looks reasonable. Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D38d1bc67b2 Ideally, it would be nice to have tests as well. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at