Dear Kostas,
I read the list through news.gmane.org, so I can not post to
texmacs-user. I think, the reply should be sent to the list.
Kostas Oikonomou wrote:
I just noticed that with TeXmacs 1.0.7.3 and 1.0.7.5 (on OpenSolaris),
mathematical input in a maxima session doesn't seem to work any more.
If I type something, say (a+b)^2, and press return, a red question
mark comes back.
Does it work if you try to input something next time?
https://lists.texmacs.org/wws/arc/texmacs-users/2009-09/msg00062.html
As a workaround I use (in 1.0.7.3)
--- ~/.TeXmacs/progs/my-init-texmacs.scm ---
(lazy-menu (mydynamic mysession-menu) session-menu)
-----
--- ~/.TeXmacs/progs/mydynamic/mysession-menu.scm ---
(texmacs-module (mydynamic mysession-menu)
(:use (dynamic session-edit)))
(texmacs-module (dynamic session-edit))
(define (field-update-math t)
(if (session-math-input?)
(when (tm-func? (tree-ref t :up) 'document)
(when (tree-in? t '(input))
(tree-assign-node! t 'input-math))
(when (tree-in? t '(folded-io))
(tree-assign-node! t 'folded-io-math))
(when (tree-in? t '(unfolded-io))
(tree-assign-node! t 'unfolded-io-math)))
(when (tm-func? (tree-ref t :up) 'document)
(when (tree-in? t '(input-math))
(tree-assign-node! t 'input))
(when (tree-in? t '(folded-io-math))
(tree-assign-node! t 'folded-io))
(when (tree-in? t '(unfolded-io-math))
(tree-assign-node! t 'unfolded-io))
; There should be a better way than just clear the field.
; Copy from input-math to input field converts the expression
(tree-assign (tree-ref t 1) '(document "")))))
-----
I do not know whether it has side effects.
Archive powered by MHonArc 2.6.19.