From 5a176d76ad3ccb6396a2ae7e60afd16ce7ee3718 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Thu, 29 Feb 2024 09:29:04 +0100 Subject: [PATCH] Backport commit 862dfef88 from Emacs * lisp/org-macs.el (org-split-string): Escape control chars. * lisp/ox-latex.el (org-latex-guess-babel-language): And here. Pacify more docstring control char warnings 862dfef88d8e62d12bac3ca2e44e035a2ff5b298 Robert Pluim Thu Feb 29 09:31:41 2024 +0100 --- lisp/org-macs.el | 2 +- lisp/ox-latex.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 2332c0c92..aafbdf0e0 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -982,7 +982,7 @@ Otherwise, return nil." "Splits STRING into substrings at SEPARATORS. SEPARATORS is a regular expression. When nil, it defaults to -\"[ \f\t\n\r\v]+\". +\"[ \\f\\t\\n\\r\\v]+\". Unlike `split-string', matching SEPARATORS at the beginning and end of string are ignored." diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index b409f552a..bca387e59 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1632,7 +1632,7 @@ explicitly been loaded. Then it is added to the rest of package's options. The optional argument to Babel or the mandatory argument to -`\babelprovide' command may be \"AUTO\" which is then replaced +`\\babelprovide' command may be \"AUTO\" which is then replaced with the language of the document or `org-export-default-language' unless language in question is already loaded.