Hello *,
There are some patches which Gentoo Linux team applies to maxima. I think
thay are rather un-controversial, and should be, probably, applied to
maxima itself.
1. The list of browsers tried by xmaxima looks antiquated: who now
remembers what was netscape? A better list is in the patch:
diff -U2 --recursive maxima-5.11.0-orig/interfaces/xmaxima/Tkmaxima/Menu.tcl maxima-5.11.0/interfaces/xmaxima/Tkmaxima/Menu.tcl
--- maxima-5.11.0-orig/interfaces/xmaxima/Tkmaxima/Menu.tcl 2006-12-09 20:52:11.000000000 +0100
+++ maxima-5.11.0/interfaces/xmaxima/Tkmaxima/Menu.tcl 2006-12-26 22:59:33.000000000 +0100
@@ -246,7 +246,7 @@
} else {
- set selectedbrowser mozilla
+ set selectedbrowser firefox
- foreach b { firefox mozilla konqueror epiphany galeon amaya netscape } {
+ foreach b { firefox konqueror epiphany galeon mozilla opera } {
if { ! [catch {exec which $b} ] } {
set selectedbrowser $b
2. ghostview is used in several places as a PostScript viewer. I think
nobody uses ghostview, because gv is much better (some may prefer
kghostview, which is quite good). The patch:
diff -U2 --recursive maxima-5.11.0-orig/interfaces/emacs/misc/bookmode.el maxima-5.11.0/interfaces/emacs/misc/bookmode.el
--- maxima-5.11.0-orig/interfaces/emacs/misc/bookmode.el 2000-05-08 08:09:44.000000000 +0200
+++ maxima-5.11.0/interfaces/emacs/misc/bookmode.el 2006-12-26 23:29:42.000000000 +0100
@@ -681,5 +681,5 @@
(and tem
(list (concat "View "(nth 1 tem))
- 'call-process "ghostview" nil nil nil
+ 'call-process "gv" nil nil nil
(expand-file-name(nth 1 tem))
))
@@ -706,5 +706,5 @@
(cond ((looking-at "%PS") "")
(t "gzip -dc | "))
- "ghostview -")
+ "gv -")
)))
diff -U2 --recursive maxima-5.11.0-orig/interfaces/xmaxima/Tkmaxima/Constants.tcl maxima-5.11.0/interfaces/xmaxima/Tkmaxima/Constants.tcl
--- maxima-5.11.0-orig/interfaces/xmaxima/Tkmaxima/Constants.tcl 2006-10-02 00:42:48.000000000 +0200
+++ maxima-5.11.0/interfaces/xmaxima/Tkmaxima/Constants.tcl 2006-12-26 23:31:47.000000000 +0100
@@ -144,5 +144,5 @@
image/png netmath
image/jpeg netmath
- application/postscript "ghostview -safer %s"
+ application/postscript "gv -safer %s"
application/pdf "acroread %s"
application/x-dvi "xdvi %s"
diff -U2 --recursive maxima-5.11.0-orig/src/plot.lisp maxima-5.11.0/src/plot.lisp
--- maxima-5.11.0-orig/src/plot.lisp 2006-10-10 23:13:17.000000000 +0200
+++ maxima-5.11.0/src/plot.lisp 2006-12-26 23:33:25.000000000 +0100
@@ -76,5 +76,5 @@
))
-(defvar $viewps_command "(ghostview \"~a\")")
+(defvar $viewps_command "(gv \"~a\")")
;; $plot_realpart option is false by default but *plot-realpart* is true because coerce-float-fun
3. I don't know what exactly was the problem encountered by the Gentoo
team, but they prefer to pass one additional option to sbcl while
compiling maxima:
diff -U2 --recursive maxima-5.11.0-orig/src/Makefile.am maxima-5.11.0/src/Makefile.am
--- maxima-5.11.0-orig/src/Makefile.am 2006-11-25 13:00:04.000000000 +0100
+++ maxima-5.11.0/src/Makefile.am 2006-12-26 23:53:46.000000000 +0100
@@ -152,5 +152,5 @@
if SBCL
-EXECUTESBCL = $(SBCL_NAME) --noinform --noprint --eval
+EXECUTESBCL = $(SBCL_NAME) --noinform --noprint --disable-debugger --eval
all-local: binary-sbcl/maxima.core
install-exec-local: install-sbcl
diff -U2 --recursive maxima-5.11.0-orig/src/Makefile.in maxima-5.11.0/src/Makefile.in
--- maxima-5.11.0-orig/src/Makefile.in 2006-12-21 17:49:36.000000000 +0100
+++ maxima-5.11.0/src/Makefile.in 2006-12-26 23:54:21.000000000 +0100
@@ -202,5 +202,5 @@
@SCL_TRUE at EXECUTESCL = $(SCL_NAME) -noinit -batch
@ACL_TRUE at EXECUTEACL = $(ACL_NAME) -batch
- at SBCL_TRUE@EXECUTESBCL = $(SBCL_NAME) --noinform --noprint --eval
+ at SBCL_TRUE@EXECUTESBCL = $(SBCL_NAME) --noinform --noprint --disable-debugger --eval
@GCL_TRUE at EXECUTEGCL = $(GCL_NAME) -batch -eval
@OPENMCL_TRUE at EXECUTEOPENMCL = $(OPENMCL_NAME) -e
At least, there seems to be no use in the debugger while compiling maxima.
So, I think, these 3 patches can be applied to maxima. What's your
oppinion?
Best wishes,
Andrey