From 53d3fcfbe9ef7c67295d943cb39944ed4be981a2 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 1 Oct 2023 19:00:26 +0200 Subject: [PATCH] Backport commit 6b2219cd2 from Emacs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lisp/org.el (org-read-date-analyze): * lisp/ox-html.el (org-html-latex-fragment): Add several "duplicate value in `cond`" FIXMEs. Found by Mattias Engdegård . Ref: https://debbugs.gnu.org/51368#51 ; Add several "duplicate value in `cond`" FIXMEs 6b2219cd2744c711580cc7226554e69c8cec8247 Stefan Kangas Sun Oct 1 19:00:26 2023 +0200 --- lisp/org.el | 1 + lisp/ox-html.el | 1 + 2 files changed, 2 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index 803664d9b..3c754a239 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14035,6 +14035,7 @@ user." (unless deltadef (let ((now (decode-time))) (setq day (nth 3 now) month (nth 4 now) year (nth 5 now)))) + ;; FIXME: Duplicated value in ‘cond’: "" (cond ((member deltaw '("h" "")) (when (boundp 'org-time-was-given) (setq org-time-was-given t)) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 5a345a942..1e9185919 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -3094,6 +3094,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." (let ((latex-frag (org-element-property :value latex-fragment)) (processing-type (plist-get info :with-latex))) (cond + ;; FIXME: Duplicated value in ‘cond’: t ((memq processing-type '(t mathjax)) (org-html-format-latex latex-frag 'mathjax info)) ((memq processing-type '(t html))