[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix one remaining emacs-30 byte-compile warning
From: |
Arash Esbati |
Subject: |
[PATCH] Fix one remaining emacs-30 byte-compile warning |
Date: |
Tue, 24 Jan 2023 10:29:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 |
Hi all,
Robert sent a patch[1] which pacifies emacs-30 compiler warning. He
missed one which is fixed by the patch below. It is against org-mode
master (6b15897a56).
Footnotes:
[1] https://lists.gnu.org/archive/html/emacs-orgmode/2023-01/msg00743.html
Best, Arash
--8<---------------cut here---------------start------------->8---
diff --git a/lisp/ox.el b/lisp/ox.el
index ebf89bb..4c84686 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -6683,14 +6683,14 @@ see.
Optional argument POST-PROCESS is a function which should accept
no argument. It is always called within the current process,
from BUFFER, with point at its beginning. Export back-ends can
-use it to set a major mode there, e.g,
+use it to set a major mode there, e.g.,
(defun org-latex-export-as-latex
(&optional async subtreep visible-only body-only ext-plist)
(interactive)
(org-export-to-buffer \\='latex \"*Org LATEX Export*\"
async subtreep visible-only body-only ext-plist
- #'LaTeX-mode))
+ #\\='LaTeX-mode))
When expressed as an anonymous function, using `lambda',
POST-PROCESS needs to be quoted.
--8<---------------cut here---------------end--------------->8---
- [PATCH] Fix one remaining emacs-30 byte-compile warning,
Arash Esbati <=