When setting imaxima-use-maxima-mode-flag to t with (setq imaxima-use-maxima-mode-flag t) and start imaxima session in GNU/Emacs with M-x imaxima It oops with save-current-buffer: Wrong number of arguments: (lambda (string) "Send a string to the Maxima process." (setq string (maxima-strip-string string)) (maxima-start) (save-current-buffer (set-buffer (process-buffer inferior-maxima-process)) (goto-char (point-max)) (insert string) (inferior-maxima-comint-send-input) (goto-char (point-max)))), 2 Reproducible: Always Steps to Reproduce: 1. Set imaxima-use-maxima-mode-flag to non-nil in GNU/Emacs. 2. Start imaxima in the same GNU/Emacs 3. Actual Results: Imaxima session doesn't start but an error message prints out saying save-current-buffer: Wrong number of arguments: (lambda (string) "Send a string to the Maxima process." (setq string (maxima-strip-string string)) (maxima-start) (save-current-buffer (set-buffer (process-buffer inferior-maxima-process)) (goto-char (point-max)) (insert string) (inferior-maxima-comint-send-input) (goto-char (point-max)))), 2 Expected Results: Start Imaxima session in GNU/Emacs. Long ago in Sep, 2004, I asked the author of Imaxima, Jesper Harder <harder@ifa.au.dk>, about this bug and he gave me a patch which did solve the problem. But I haven't see any upgrade in imaxima, and it seems he no longer maitains this elisp package. I think Gentoo had better include this patch for users. Following is the patch. diff -c /home/harder/imaxima-0.9/imaxima.el /home/harder/projekter/imaxima/imaxima.el *** /home/harder/imaxima-0.9/imaxima.el Sun Aug 15 17:19:39 2004 --- /home/harder/projekter/imaxima/imaxima.el Tue Sep 21 23:46:32 2004 *************** *** 937,943 **** (add-hook 'kill-buffer-hook 'imaxima-clean-up t t) (imaxima-setup-preoutput-filter) (maxima-single-string ! (format "block(load(\"%s\"), linenum:0)$\n" imaxima-lisp-file) t) (goto-char (point-max))))) (defun imaxima () --- 937,943 ---- (add-hook 'kill-buffer-hook 'imaxima-clean-up t t) (imaxima-setup-preoutput-filter) (maxima-single-string ! (format "block(load(\"%s\"), linenum:0)$\n" imaxima-lisp-file)) (goto-char (point-max))))) (defun imaxima ()
Created attachment 81519 [details] New imaxima ebuild I found another bug in imaxima-0.9 this morning (while trying out the new maxima-5.9.2 from the gentooscience.org overlay). It was a missing progn in part of the imaxima.lisp file and it's been fixed in imaxima-0.93. imaxima does have a new maintainer now, Y. Honda, and it may well be that this bug has also been fixed. I've attached an ebuild for it with the new homepage and src URI, if you'd like to try it.
Created attachment 84216 [details] imaxima-0.94.ebuild New imaxima ebuild for version bump - update src_uri - added some examples doc - cleaned a bit the ebuild
I took the last ebuild and added the possibility to use breqn in texlive and renamed it to use 0.94b. It works x86.
Created attachment 88798 [details] imaxima-0.94b.ebuild
The patch given in the original bug report seems to have been applied to the imaxima.el in imaxima-0.94b but when I tried it out it didn't work because of a dollar sign instead of a semicolon. IOW, I think the patch should have been: diff -c /home/harder/imaxima-0.9/imaxima.el /home/harder/projekter/imaxima/imaxima.el --- /home/harder/imaxima-0.9/imaxima.el Sun Aug 15 17:19:39 2004 +++ /home/harder/projekter/imaxima/imaxima.el Tue Sep 21 23:46:32 2004 @@ -937,7 +937,7 @@ (add-hook 'kill-buffer-hook 'imaxima-clean-up t t) (imaxima-setup-preoutput-filter) (maxima-single-string - (format "block(load(\"%s\"), linenum:0)$\n" imaxima-lisp-file) t) + (format "block(load(\"%s\"), linenum:0);\n" imaxima-lisp-file)) (goto-char (point-max))))) (defun imaxima () which works for me.
I commited an imaxima-0.94b full ebuild in the gentoo scientific overlay at http://gentooscience.org. Please test it and report here.
(In reply to comment #6) > I commited an imaxima-0.94b full ebuild in the gentoo scientific overlay at > http://gentooscience.org. Please test it and report here. > Works great. Thanks. :)
(In reply to comment #6) > I commited an imaxima-0.94b full ebuild in the gentoo scientific overlay at > http://gentooscience.org. Please test it and report here. > Works. Thx
Could someone from the science team take the ebuild described in the overlay and commit it to portage?
Ebuild was commited today