From 80dff08ed15838b66fa7ca4423da117435e42024 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Tue, 27 Feb 2024 23:59:21 +0300 Subject: [PATCH] Fix unescaped \ in docstrings * lisp/org-macs.el (org-split-string): * lisp/ox-latex.el (org-latex-guess-babel-language): Fix docstrings, as revealed by compiler warnings. --- 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 b891284a8..e32a1198f 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 7b5308b5b..8848a6254 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1633,7 +1633,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.