From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yNUJNRZ+3GLaYAAAbAwnHQ (envelope-from ) for ; Sun, 24 Jul 2022 01:02:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +NBNNBZ+3GJHDQEAG6o9tA (envelope-from ) for ; Sun, 24 Jul 2022 01:02:46 +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 F1E33B986 for ; Sun, 24 Jul 2022 01:02:45 +0200 (CEST) Received: from localhost ([::1]:33920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFO8y-0007nu-Kx for larch@yhetil.org; Sat, 23 Jul 2022 19:02:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFO8X-0007mH-L7 for emacs-orgmode@gnu.org; Sat, 23 Jul 2022 19:02:17 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:41414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFO8V-0006Qt-Hc for emacs-orgmode@gnu.org; Sat, 23 Jul 2022 19:02:17 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D673B16010B for ; Sat, 23 Jul 2022 16:02:11 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id jnvHznl-Yd0K; Sat, 23 Jul 2022 16:02:10 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5CB11160109; Sat, 23 Jul 2022 16:02:10 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gT2of4qjDlaG; Sat, 23 Jul 2022 16:02:08 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6CF0E160107; Sat, 23 Jul 2022 16:02:07 -0700 (PDT) From: Paul Eggert To: emacs-orgmode@gnu.org Cc: Paul Eggert Subject: [PROPOSED-PATCH] ox-publish: fix typo in function name Date: Sat, 23 Jul 2022 16:01:58 -0700 Message-Id: <20220723230158.16833-1-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658617366; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=RR8uEz7ppiWFAooX7FQPDrsW0LsMPoTsxoeEPH5igMo=; b=io4MnEVjNQUTvyW7hWhtXUcpu0okp+LA1kN6OBqKO46BSnCCVICNJYBAf23rwjHqjzsqk1 UVdRvjzZjPCYdk3ffNOoDyL0zXETRg/9kc9xy3D1/l/5JXUcJDMqvZBbE+oA+Bci8KeeUD qscRy0IOQ5NcYIDDQNMHHygm5rUz4ihZVnTquZID8+J0UyY2jRai8BdqZN3cOQcq9wvAVj OXPRGRCPHpJkMhXtNAQecNnjezmeuNqc7soLbgRuCCM+vHY6Ux6mWLRJwdYsxj1pzC12Nm W1RviGryiKO5EhnuA03v/xHTJyd6m6EYG0pTH+H02sdHJwdFnv0lHE6KTgzHfw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658617366; a=rsa-sha256; cv=none; b=C2r1jHUnOso4xnSGjqZVW7T4PysWcu5HIwlizja74xU09RK+gYyRW20Wxc225ChlFPVeDq HYO/BzUGbQ2c1WnCDkWlbC51Y6cxQKWACKLoEeMhUJLDVEphUqBQ5GIxQ2W2udt51YELVA N/DTFcLQ/YmsLyRHBtJJD4XqijP8+C9vnjpiazwUL0AKDacag6VnqpVubZUiQw01KB68eg rUg9OKdjXcwMCQwcFOiMNZ0HRHt5vz6nj+uLlxjzoNcnYMhxKKEbTS6QCONe64byh3eIIF RStDnHzKd2PRV3Bqm3RLfPWzrjYZLfoScKLQxf/zS89p2xbYQlfSekuziH0eng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Spam-Score: -1.73 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Queue-Id: F1E33B986 X-Spam-Score: -1.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: oOvvBKXmRViX * lisp/ox-publish.el (org-publish-cache-mtime-of-src): Rename from org-publish-cache-ctime-of-src, since it has always cached mtime not ctime. All uses changed. --- lisp/ox-publish.el | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index 5c6ad94c9..e3d67b695 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -379,7 +379,7 @@ still decide about that independently." "Update publishing timestamp for file FILENAME. If there is no timestamp, create one." (let ((key (org-publish-timestamp-filename filename pub-dir pub-func)) - (stamp (org-publish-cache-ctime-of-src filename))) + (stamp (org-publish-cache-mtime-of-src filename))) (org-publish-cache-set key stamp))) =20 (defun org-publish-remove-all-timestamps () @@ -1287,7 +1287,7 @@ the file including them will be republished as well= ." (let* ((key (org-publish-timestamp-filename filename pub-dir pub-func)= ) (pstamp (org-publish-cache-get key)) (org-inhibit-startup t) - included-files-ctime) + included-files-mtime) (when (equal (file-name-extension filename) "org") (let ((visiting (find-buffer-visiting filename)) (buf (find-file-noselect filename)) @@ -1308,15 +1308,15 @@ the file including them will be republished as we= ll." (substring m 0 (match-beginning 0)) m))))) (when filename - (push (org-publish-cache-ctime-of-src + (push (org-publish-cache-mtime-of-src (expand-file-name filename)) - included-files-ctime))))))) + included-files-mtime))))))) (unless visiting (kill-buffer buf))))) (or (null pstamp) - (let ((ctime (org-publish-cache-ctime-of-src filename))) - (or (time-less-p pstamp ctime) - (cl-some (lambda (ct) (time-less-p ctime ct)) - included-files-ctime)))))) + (let ((mtime (org-publish-cache-mtime-of-src filename))) + (or (time-less-p pstamp mtime) + (cl-some (lambda (ct) (time-less-p mtime ct)) + included-files-mtime)))))) =20 (defun org-publish-cache-set-file-property (filename property value &optional project-name) @@ -1361,8 +1361,8 @@ does not exist." (error "`org-publish-cache-set' called, but no cache present")) (puthash key value org-publish-cache)) =20 -(defun org-publish-cache-ctime-of-src (file) - "Get the ctime of FILE as an integer." +(defun org-publish-cache-mtime-of-src (file) + "Get the mtime of FILE as an integer." (let ((attr (file-attributes (expand-file-name (or (file-symlink-p file) file) (file-name-directory file))))) --=20 2.37.1