[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: Org mode fails to compile using Emacs 24.5-r10 [9.4.5 (9.4.5-g3
From: |
Ihor Radchenko |
Subject: |
Re: Bug: Org mode fails to compile using Emacs 24.5-r10 [9.4.5 (9.4.5-g3ea248 @ /home/yantar92/.emacs.d/straight/build/org/)] |
Date: |
Sat, 01 May 2021 21:57:37 +0800 |
Bastien <bzg@gnu.org> writes:
> could you provide a patch for these two warnings for the maint branch?
>> In end of data:
>> ob-gnuplot.el:299:1:Warning: the function ‘file-local-name’ is not known to
>> be
This does not appear on maint. Only on master. The patch for master attached.
>> In org-display-inline-images:
>> org.el:16554:57:Warning: reference to free variable ‘image-map’
Kyle already dealt with it.
Best,
Ihor
>From d57d51007392f41645b78a28e8ef14132b42c324 Mon Sep 17 00:00:00 2001
Message-Id:
<d57d51007392f41645b78a28e8ef14132b42c324.1619877335.git.yantar92@gmail.com>
From: Ihor Radchenko <yantar92@gmail.com>
Date: Sat, 1 May 2021 21:54:13 +0800
Subject: [PATCH] Use org version of file-local-name for compatibility with
Emacs 25
---
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 c0a9ff13a..a9b8e65e5 100644
--- a/lisp/ob-gnuplot.el
+++ b/lisp/ob-gnuplot.el
@@ -101,7 +101,7 @@ (defun org-babel-gnuplot-process-vars (params)
org-babel-temporary-directory
"/gnuplot/"
(file-remote-p val 'host)
- (file-local-name val))))
+ (org-babel-local-file-name val))))
(if (and (file-exists-p local-name) ;; only download file if
remote is newer
(file-newer-than-file-p local-name val))
local-name
--
2.26.3
- Re: Bug: Org mode fails to compile using Emacs 24.5-r10 [9.4.5 (9.4.5-g3ea248 @ /home/yantar92/.emacs.d/straight/build/org/)],
Ihor Radchenko <=