|
From: | Max Nikulin |
Subject: | Re: Importing "quoted" strings in `org-babel-import-elisp-from-file' |
Date: | Sat, 4 May 2024 21:55:44 +0700 |
User-agent: | Mozilla Thunderbird |
On 04/05/2024 18:51, Ihor Radchenko wrote:
Max Nikulin writes:Quotes are not stripped: (org-babel-read "\"abc\nsdf\"" t) "\"abc sdf\""Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=edb5eaaac
Thanks
(org-babel-read "(\n\"abc\"\n" t) progn: End of file during parsingI cannot reproduce. Still, I added a prophylactic measure to recover from parsing errors.
(should (equal "\"foo\"(\"bar\"" (org-babel-read "\"foo\"(\"bar\"" inhibit)))
you added to tests, does not cause the error since the unbalanced parenthesis is after first string. With the new regexp the error might happen for
(org-babel-read "\"Quoted closing quote:\\\"" t) but it is caught by `ignore-errors'.Perhaps `save-match-data' may be dropped if `string-match-p' is used instead of `string-match'. New code does not rely on match groups.
[Prev in Thread] | Current Thread | [Next in Thread] |