Fix setting the comment status open/closed

This commit is contained in:
Tom Willemse 2023-04-12 00:42:49 -07:00
parent b2fc64d2b0
commit 7c531e3ab3

View file

@ -32,7 +32,7 @@
;; #+TITLE: SOME TITLE ;; #+TITLE: SOME TITLE
;; #+DATE: <2021-06-03 Thu 22:45> ;; #+DATE: <2021-06-03 Thu 22:45>
;; #+TAGS: comma,separated ;; #+TAGS: comma,separated
;; #+COMMENTS: open ;; #+COMMENT_STATUS: open
;; #+COMMENTS_DATE: ;; #+COMMENTS_DATE:
;; #+STATUS: publish ;; #+STATUS: publish
@ -58,7 +58,7 @@
("DATE" ,(tekuti--format-date)) ("DATE" ,(tekuti--format-date))
("TAGS") ("TAGS")
("STATUS") ("STATUS")
("COMMENTS") ("COMMENT_STATUS")
("COMMENTS-CLOSED-DATE") ("COMMENTS-CLOSED-DATE")
("BODY"))) ("BODY")))
(data (append (data (append
@ -72,7 +72,7 @@
(and (not (string-empty-p date)) (and (not (string-empty-p date))
(tekuti--format-date date)))) (tekuti--format-date date))))
(_ pair))) (_ pair)))
(org-collect-keywords '("TITLE" "TAGS" "STATUS" "COMMENTS" "DATE" "COMMENTS_DATE"))) (org-collect-keywords '("TITLE" "TAGS" "STATUS" "COMMENT_STATUS" "DATE" "COMMENTS_DATE")))
(list (list
(list "BODY" (list "BODY"
(with-current-buffer (org-html-export-as-html nil nil nil t) (with-current-buffer (org-html-export-as-html nil nil nil t)
@ -101,7 +101,7 @@
(goto-char (point-min)) (goto-char (point-min))
(search-forward "\n\n") (search-forward "\n\n")
(backward-char) (backward-char)
(let ((data (org-collect-keywords '("TITLE" "TAGS" "STATUS" "COMMENTS" "DATE" "COMMENTS_DATE")))) (let ((data (org-collect-keywords '("TITLE" "TAGS" "STATUS" "COMMENT_STATUS" "DATE" "COMMENTS_DATE"))))
(mapc (lambda (item) (mapc (lambda (item)
(let ((key (car item)) (let ((key (car item))
(value (cadr item))) (value (cadr item)))