texmacs-karlheg-git-svn icon indicating copy to clipboard operation
texmacs-karlheg-git-svn copied to clipboard

tm-define migration problem

Open da-liii opened this issue 8 years ago • 0 comments

at this commit https://github.com/sadhen/texmacs/commit/b54364bbd2fc4344895ab06cb35a90c2f6329e22

we can use tm-define in init-texmacs.scm, but at next step, when I try to make tm-preferences.scm compile, it fails and says (since it works in init-texmacs.scm, there are hopes to make it work):

;;; WARNING: compilation of /home/sadhen/software/share/TeXmacs/progs/kernel/texmacs/tm-preferences.scm failed:
;;; ERROR: build-constant-store: unrecognized object #<directory (kernel texmacs tm-preferences) 464ed80>
WARNING: (kernel texmacs tm-preferences): imported module (kernel boot abbrevs) overrides core binding `when'
Backtrace:
In unknown file:
   ?: 19 [apply-smob/1 #<catch-closure 4337380>]
In ice-9/boot-9.scm:
 171: 18 [with-throw-handler #t #<catch-closure 43372a0> #<catch-closure 4337280>]
In unknown file:
   ?: 17 [apply-smob/1 #<catch-closure 43372a0>]
In ice-9/eval.scm:
 505: 16 [#<procedure 3f31280 at ice-9/eval.scm:499:4 (exp)> (use-modules # # # ...)]
In ice-9/psyntax.scm:
1106: 15 [expand-top-sequence ((use-modules # # # ...)) () ((top)) ...]
 989: 14 [scan ((use-modules # # # ...)) () ((top)) ...]
 279: 13 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
In ice-9/boot-9.scm:
3597: 12 [process-use-modules ((#) (#) (#) (#) ...)]
 702: 11 [map #<procedure 3fd0bc0 at ice-9/boot-9.scm:3597:25 (mif-args)> #]
3598: 10 [#<procedure 3fd0bc0 at ice-9/boot-9.scm:3597:25 (mif-args)> (#)]
2864: 9 [resolve-interface (kernel texmacs tm-preferences) #:select ...]
2789: 8 [#<procedure 3fc34e0 at ice-9/boot-9.scm:2777:4 (name #:optional autoload version #:key ensure)> # ...]
3065: 7 [try-module-autoload (kernel texmacs tm-preferences) #f]
2401: 6 [save-module-excursion #<procedure 4379f30 at ice-9/boot-9.scm:3066:17 ()>]
3085: 5 [#<procedure 4379f30 at ice-9/boot-9.scm:3066:17 ()>]
In unknown file:
   ?: 4 [primitive-load-path "kernel/texmacs/tm-preferences" ...]
In ice-9/eval.scm:
 432: 3 [eval # ()]
 387: 2 [eval # ()]
 393: 1 [eval #<memoized set-preference> ()]
In unknown file:
   ?: 0 [memoize-variable-access! #<memoized set-preference> #<directory # 464ed80>]

ERROR: In procedure memoize-variable-access!:
ERROR: Unbound variable: set-preference

da-liii avatar Jun 15 '16 14:06 da-liii