Wow,
I surely need more info on that wonderful package. It caught that one.
Probably a stupid paste from re-builder on my side...
Thanks! I'll fix that right now!
/PA
On 22/11/26 16:57, Morgan Smith wrote:
Hey Pedro,
I was running "relint" (an emacs package) on the org repository and it
flagged the following problem in the function
'org-beamer--insert-theme'. The backslashes here try to escape the "d"
and the "u". Did you mean the regex to look for a backslash? If so
should we apply the following change?
Thanks,
Morgan
---
diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el
index d6d298369..3418e5e66 100644
--- a/lisp/ox-beamer.el
+++ b/lisp/ox-beamer.el
@@ -913,9 +913,9 @@ org-beamer--insert-theme
return HEADER unaltered."
(save-match-data
;; this is only match beamer... will not do anything for ltx-talk(!)
- (when (string-match "\\documentclass\\(\\[.+?]\\)?{beamer}\n" header)
+ (when (string-match "\\\\documentclass\\(\\[.+?]\\)?{beamer}\n" header)
(let ((document-class (match-string 0 header)))
- (unless (string-match-p "\\usetheme\\(\\[.+?]\\)?{[^]]+}\n" header)
+ (unless (string-match-p "\\\\usetheme\\(\\[.+?]\\)?{[^]]+}\n" header)
(setq header
(string-replace document-class
(concat document-class theme-info) ;;
theme-info ends with '\n'
--
Pedro A. Aranda
ox-latex & ox-beamer maintainer
Sagen's Paradeiser! (ORF: Als Radiohören gefährlich war) => write BE!
IA: onomatopeya del rebuzno
2nd year of the New Koprocracy