summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarmo Hurri <jarmo.hurri@iki.fi>2025-05-11 14:45:02 +0300
committerJarmo Hurri <jarmo.hurri@iki.fi>2025-05-11 14:45:02 +0300
commit339b5bef1434b1833d636c9fea9b95b3e990fe71 (patch)
tree2101ac73a5b1b2955acb005b7d30b4d1358ce776
parent2afd4ebe1162cfdecd1206d8fe73a9e35c452b3a (diff)
* correct order of org-babel-process-file-name and file-name-sans-extension (Taichi Kawabata)externals/ob-asymptote
* new file NEWS * increased version number
-rw-r--r--NEWS8
-rw-r--r--ob-asymptote.el8
2 files changed, 12 insertions, 4 deletions
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..5bcb082
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,8 @@
+-*- mode: org; coding: utf-8 -*-
+
+* Version 1.0.2
+** Correct file name handling
+ Order of ~org-babel-process-file-name~ and
+ ~file-name-sans-extension~ is now correct (reversed from previous)
+ for proper file name processing on Windows platform. Thanks to
+ Taichi Kawabata for pointing out this issue.
diff --git a/ob-asymptote.el b/ob-asymptote.el
index 09be0f4..b8b03e4 100644
--- a/ob-asymptote.el
+++ b/ob-asymptote.el
@@ -1,10 +1,10 @@
;;; ob-asymptote.el --- Babel Functions for Asymptote -*- lexical-binding: t; -*-
-;; Copyright (C) 2009-2024 Free Software Foundation, Inc.
+;; Copyright (C) 2009-2025 Free Software Foundation, Inc.
;; Author: Eric Schulte
;; Maintainer: Jarmo Hurri <jarmo.hurri@iki.fi>
-;; Version: 1.0.1
+;; Version: 1.0.2
;; URL: https://github.com/hurrja/ob-asymptote
;; Keywords: literate programming, reproducible research
@@ -58,8 +58,8 @@ This function is called by `org-babel-execute-src-block'."
(out-format (or (file-name-extension out-file) "pdf"))
(cmd-output (if out-file
(concat "-globalwrite -f " out-format " -o "
- (file-name-sans-extension
- (org-babel-process-file-name out-file)))
+ (org-babel-process-file-name
+ (file-name-sans-extension out-file)))
"-V"))
(cmdline (cdr (assq :cmdline params)))
(in-file (org-babel-temp-file "asymptote-"))