[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals-release/org 01a0f15b6b: org-babel-expand-body:gnuplot:
From: |
ELPA Syncer |
Subject: |
[elpa] externals-release/org 01a0f15b6b: org-babel-expand-body:gnuplot: Fix altering variable data case |
Date: |
Thu, 7 Mar 2024 09:58:38 -0500 (EST) |
branch: externals-release/org
commit 01a0f15b6b493fc95743f03452e47dc50187890c
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
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 <paulstansell@gmail.com>
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 8d7e62928a..bba8edca62 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)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals-release/org 01a0f15b6b: org-babel-expand-body:gnuplot: Fix altering variable data case,
ELPA Syncer <=