branch: externals/ob-asymptote
commit 339b5bef1434b1833d636c9fea9b95b3e990fe71
Author: Jarmo Hurri <jarmo.hu...@iki.fi>
Commit: Jarmo Hurri <jarmo.hu...@iki.fi>

    * correct order of org-babel-process-file-name and file-name-sans-extension 
(Taichi Kawabata)
    * new file NEWS
    * increased version number
---
 NEWS            | 8 ++++++++
 ob-asymptote.el | 8 ++++----
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000000..5bcb08200e
--- /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 09be0f49e0..b8b03e47fb 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.hu...@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-"))

Reply via email to