Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 101186
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: GNU Emacs Team <emacs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Xiao-Yong JIN <jinxiaoyong@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
imaxima-0.93.ebuild New imaxima ebuild text/plain P.L.Hayes 2006-03-06 07:13 0000 791 bytes Details
imaxima-0.94.ebuild imaxima-0.94.ebuild text/plain Sébastien Fabbro 2006-04-08 10:53 0000 882 bytes Details
imaxima-0.94b.ebuild imaxima-0.94b.ebuild text/plain Sebastian Schubert 2006-06-09 16:26 0000 904 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 101186 depends on: Show dependency tree
Bug 101186 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-08-03 04:13 0000
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 ()

------- Comment #1 From P.L.Hayes 2006-03-06 07:13:30 0000 -------
Created an attachment (id=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.

------- Comment #2 From Sébastien Fabbro 2006-04-08 10:53:19 0000 -------
Created an attachment (id=84216) [details]
imaxima-0.94.ebuild

New imaxima ebuild for version bump
- update src_uri
- added some examples doc
- cleaned a bit the ebuild

------- Comment #3 From Sebastian Schubert 2006-06-09 16:25:04 0000 -------
I took the last ebuild and added the possibility to use breqn in texlive and
renamed it to use 0.94b. It works x86.

------- Comment #4 From Sebastian Schubert 2006-06-09 16:26:14 0000 -------
Created an attachment (id=88798) [details]
imaxima-0.94b.ebuild

------- Comment #5 From P.L.Hayes 2006-06-13 02:48:43 0000 -------
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.

------- Comment #6 From Sébastien Fabbro 2006-06-13 03:22:35 0000 -------
I commited an imaxima-0.94b full ebuild in the gentoo scientific overlay at
http://gentooscience.org. Please test it and report here.

------- Comment #7 From P.L.Hayes 2006-06-13 03:41:54 0000 -------
(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. :)

------- Comment #8 From Sebastian Schubert 2006-06-13 04:20:29 0000 -------
(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

------- Comment #9 From Matthew Kennedy (RETIRED) 2006-06-18 12:18:35 0000 -------
Could someone from the science team take the ebuild described in the overlay
and commit it to portage?

------- Comment #10 From Christian Faulhammer 2006-10-31 05:57:07 0000 -------
Ebuild was commited today

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug