From 01a0f15b6b493fc95743f03452e47dc50187890c Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Thu, 7 Mar 2024 15:40:57 +0300 Subject: [PATCH] org-babel-expand-body:gnuplot: Fix altering variable data case * lisp/ob-gnuplot.el (org-babel-expand-body:gnuplot): Pass FIXEDCASE and LITERAL arguments to `replace-regexp-in-string'. This prevents it from "smartly" altering the replacement text case when the variable name is upcased like $C or $FOO; and from interpreting \N constructs. Reported-by: Paul Stansell Link: https://orgmode.org/list/CAMJKaZyH0ZwaitHxCTdd2ZGMKOZtVCvwVf_OEuRe9crPbqG9jA@mail.gmail.com --- lisp/ob-gnuplot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el index 8d7e62928..bba8edca6 100644 --- a/lisp/ob-gnuplot.el +++ b/lisp/ob-gnuplot.el @@ -186,7 +186,7 @@ code." ;; value of the variable (mapc (lambda (pair) (setq body (replace-regexp-in-string - (format "\\$%s" (car pair)) (cdr pair) body))) + (format "\\$%s" (car pair)) (cdr pair) body t t))) vars) (when prologue (funcall add-to-body prologue)) (when epilogue (setq body (concat body "\n" epilogue)))