texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texmacs-dev] TeXmacs-1.0.1.10 crashes!!


From: Leo
Subject: [Texmacs-dev] TeXmacs-1.0.1.10 crashes!!
Date: Fri, 11 Apr 2003 13:27:51 -0400
User-agent: KMail/1.4.3

I experience consistent crashes each time I perform the following steps:

1: start eqnarray by typing A-&

2: using your mouse click on main menu item "Mathematics"

3: At this point TeXmacs-1.0.1.10 crashes with the following messages 
   on the console:

---- CONSOLE MESSAGE ---------------------------------------------------
TeXmacs] Guile error: ((unbound-variable #f Unbound variable: ~S 
(table-equation-numbered?) #f))
/pkg/share/TeXmacs-1.0.1.10/progs/core/boot/debug.scm:197:19: In procedure 
apply in expression (apply throw err):
/pkg/share/TeXmacs-1.0.1.10/progs/core/boot/debug.scm:197:19: Unbound variable: 
table-equation-numbered?

Fatal error: Widget expected in 'eval_as_widget'
See file   : object.cc

---- END CONSOLE MESSAGE -----------------------------------------------

The problem is apprently related to the cruppy Guile module design 
which requires explicit export policy.

The function table-equation-numbered? is, indeed, defined in 
TeXmacs-1.0.1.10/progs/texmacs/edit/edit-table.scm but is never exported!

I appended a patch which exports table-equation-numbered? along with some
other functins which should had be exported but were forgottern.

BTW, what exactly was the motivation to use guile's module system??
I certainly understand the noble goal of modular design but 
using more and more guile specific features will make porting TeXmacs 
to other (read better) scheme implementations ever more difficult.

--Leo--

P.S. There is another bug in TeXmacs-1.0.1.10. Equation numbering A-* does not
     work anymore inside eqnarray environment.
For a time being I am going back to the save heaven of 1.0.1 :-)


############   PATCH  FOLLOWS  #################################
--- 
TeXmacs-1.0.1.10-src/TeXmacs-1.0.1.10/progs/texmacs/edit/edit-table.scm-r1.0.1.10
   2003-04-05 11:02:44.000000000 -0500
+++ TeXmacs-1.0.1.10-src/TeXmacs-1.0.1.10/progs/texmacs/edit/edit-table.scm     
2003-04-11 13:06:57.000000000 -0400
@@ -15,9 +15,11 @@
 (texmacs-module (texmacs edit edit-table)
   (:use (texmacs tools tm-circulate)))
 
 (export ;; interactive table commands
-        table-set-width-ia table-use-paragraph-width table-set-height-ia
+       table-equation-numbered? table-number-equation
+       table-nonumber-equation  table-toggle-number-equation
+    table-set-width-ia table-use-paragraph-width table-set-height-ia
        table-set-padding-ia table-set-lpadding-ia table-set-rpadding-ia
        table-set-bpadding-ia table-set-tpadding-ia table-set-border-ia
        table-set-lborder-ia table-set-rborder-ia table-set-bborder-ia
        table-set-tborder-ia table-set-row-origin-ia table-set-column-origin-ia





reply via email to

[Prev in Thread] Current Thread [Next in Thread]