From e7570c6e882831c10720d389bcf352ab6602ce8f Mon Sep 17 00:00:00 2001 From: Pranav Gadge Date: Thu, 19 Mar 2026 12:22:48 +0530 Subject: [PATCH 1/3] Remove redundant conditional in julia-launcher --- progs/init-julia.scm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/progs/init-julia.scm b/progs/init-julia.scm index 46742a3..0aa0460 100644 --- a/progs/init-julia.scm +++ b/progs/init-julia.scm @@ -24,9 +24,7 @@ (define (julia-launcher) (with boot (raw-quote (julia-entry)) - (if (url-exists-in-path? "julia") - (string-append "julia " boot) - (string-append "julia " boot)))) + (string-append "julia " boot))) (plugin-configure julia (:winpath "Julia" "bin") From b56ce6c1ce1c97ce5ffd1318700288f45f979877 Mon Sep 17 00:00:00 2001 From: Pranav Gadge Date: Thu, 19 Mar 2026 14:26:56 +0530 Subject: [PATCH 2/3] fix: correct MIME types for SVG and JPEG display --- julia/TeXmacsJulia.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/julia/TeXmacsJulia.jl b/julia/TeXmacsJulia.jl index 5e0b842..b90825b 100644 --- a/julia/TeXmacsJulia.jl +++ b/julia/TeXmacsJulia.jl @@ -186,6 +186,9 @@ display(d::InlineDisplay, m::MIME"image/png", x) = display(d::InlineDisplay, m::MIME"image/jpeg", x) = sendimage("jpg", m, x) +display(d::InlineDisplay, m::MIME"image/svg+xml", x) = + sendimage("svg", m, x) + display(d::InlineDisplay, m::MIME"application/pdf", x) = sendimage("pdf", m, x) @@ -211,10 +214,10 @@ display(d::InlineDisplay, x::Markdown.MD) = display(d, MIME("text/markdown"), x) # we try to display data according to these mime types # in order const tm_mimetypes = [ - MIME("image/svg"), + MIME("image/svg+xml"), MIME("application/pdf"), MIME("image/png"), - MIME("image/jpg"), + MIME("image/jpeg"), MIME("text/html"), MIME("text/markdown"), MIME("text/latex")] From 85cf6b1e09bda50827680e8eda18dcc08e093c6e Mon Sep 17 00:00:00 2001 From: Pranav Gadge Date: Thu, 19 Mar 2026 14:53:14 +0530 Subject: [PATCH 3/3] fix: replace deprecated catch_stack with current_exceptions --- julia/TeXmacsJulia.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/julia/TeXmacsJulia.jl b/julia/TeXmacsJulia.jl index b90825b..3143fd5 100644 --- a/julia/TeXmacsJulia.jl +++ b/julia/TeXmacsJulia.jl @@ -33,7 +33,7 @@ import REPL.REPLCompletions: completions, completion_text using REPL import UUIDs import Markdown -import Base: AbstractDisplay, display, redisplay, catch_stack, show +import Base: AbstractDisplay, display, redisplay, show const current_module = Ref{Module}(Main) const orig_stdout = Ref{IO}(stdout) @@ -344,7 +344,7 @@ while true end catch e err = e - result = catch_stack() + result = current_exceptions() end # output @@ -357,7 +357,7 @@ while true end catch e write(stdout, "Error showing values $(e)"); - Base.invokelatest(Base.display_error, stderr, catch_stack()) + Base.invokelatest(Base.display_error, stderr, current_exceptions()) end flush_all() # send all to texmacs # flush_output() # send all to texmacs