Skip to content

Commit

Permalink
[56_1] Fix for backport
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Sep 24, 2023
1 parent b6c0f3d commit f5e7bd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Scheme/Glue/glue_basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10126,6 +10126,7 @@ initialize_glue_basic () {
tmscm_install_procedure ("scheme-dialect", tmg_scheme_dialect, 0, 0, 0);
tmscm_install_procedure ("get-texmacs-path", tmg_get_texmacs_path, 0, 0, 0);
tmscm_install_procedure ("get-texmacs-home-path", tmg_get_texmacs_home_path, 0, 0, 0);
tmscm_install_procedure ("get-tm-cache-path", tmg_get_tm_cache_path, 0, 0, 0);
tmscm_install_procedure ("get-user-login", tmg_get_user_login, 0, 0, 0);
tmscm_install_procedure ("get-user-name", tmg_get_user_name, 0, 0, 0);
tmscm_install_procedure ("mimetype-for-url", tmg_mimetype_for_url, 1, 0, 0);
Expand Down
6 changes: 6 additions & 0 deletions src/System/Misc/data_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ do_cache_stat_fail (string name) {

bool
do_cache_file (string name) {
if (is_empty (texmacs_path_string))
return false;
if (is_empty (texmacs_font_path_string))
return false;
return
!ends (name, ".ts") &&
(starts (name, texmacs_path_string) ||
Expand All @@ -150,6 +154,8 @@ do_cache_file (string name) {

bool
do_cache_doc (string name) {
if (is_empty (texmacs_doc_path_string))
return false;
return starts (name, texmacs_doc_path_string);
}

Expand Down

0 comments on commit f5e7bd1

Please sign in to comment.