Bug 130245 - maxima-5.9.3: wrong file name for emacs support; after correction still problem
|
Bug#:
130245
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P3
|
|
Resolution: FIXED
|
Assigned To: sci-mathematics@gentoo.org
|
Reported By: schubert.seb@googlemail.com
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: maxima-5.9.3: wrong file name for emacs support; after correction still problem
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-04-17 04:42 0000
|
The ebuild implements a wrong sed command to change the folder name for emacs
support. See attached diff for a possible correction.
Changing that, I still have problems with the maxima mode in emacs. M-x maxima
hangs. Here the messages:
For information about the GNU Project and its goals, type C-h C-p.
Loading maxima (source)...
Loading regexp-opt...done
Loading edmacro...done
Loading derived...done
Loading easy-mmode...done
Loading maxima (source)...done
I have to C-g. After that I can try again and now it works...
Sorry - I don't use emacs and didn't realise there had been a change. I have
updated this in CVS - if you emerge it again then emacs should hopefully be
fixed. I am on a slow hotel DSL connection though and about to fly out so I may
be unable to do any more... Please reopen if problems persist.
Please change typo in 50maxima-gentoo.el:
(setq load-path (cons "/usr/shar/maxima/PV/emacs" load-path))
into
(setq load-path (cons "/usr/share/maxima/PV/emacs" load-path))
^^^^^^^
The typo really need to be changed to have the emacs support working...
Thx
Yes I fixed the path problem manually,
but I still have to press C-g, otherwise emacs halts there
what's wrong?
I am using maxima-5.9.3 with sbcl-0.9.12
(In reply to comment #0)
> The ebuild implements a wrong sed command to change the folder name for emacs
> support. See attached diff for a possible correction.
>
> Changing that, I still have problems with the maxima mode in emacs. M-x maxima
> hangs. Here the messages:
>
> For information about the GNU Project and its goals, type C-h C-p.
> Loading maxima (source)...
> Loading regexp-opt...done
> Loading edmacro...done
> Loading derived...done
> Loading easy-mmode...done
> Loading maxima (source)...done
>
> I have to C-g. After that I can try again and now it works...
>
RE: comment #6 Confirmed - the maxima program hangs in the function
inferior-maxima-wait-for-output which is defunned in maxima.el at line 2706.
Changing the 'while' to a 'when' seems to fix it:
(defun inferior-maxima-wait-for-output ()
"Wait for output from the Maxima process."
(when (and
inferior-maxima-waiting-for-output
(inferior-maxima-running))
(accept-process-output inferior-maxima-process))
(if maxima-running-xemacs
(sleep-for 0.1)
(sit-for 0 inferior-maxima-after-output-wait)))
Maybe this should be made into a separate bug?
(In reply to comment #8)
> maxima-5.9.3-r1 in the gentoo scientific overlay at http://gentooscience.org.
> fixes this bug and add patches
>
I haven't tried this because I don't see a patch in there for the
inferior-maxima-wait-for-output bug. Am I missing something?
(In reply to comment #10)
Didn't see that - even though I did actually look inside the file %-)
Thanks! :)
sci-mathematics,
the file 50maxima-gentoo.el is still broken in the portage tree. To fix this,
either grab
http://www.gentooscience.org/browser/overlay/sci-mathematics/maxima/files/50maxima-gentoo.el
or apply the following patch:
--- /usr/portage/sci-mathematics/maxima/files/50maxima-gentoo.el
2006-04-17 18:07:08.000000000 +0200
+++ /usr/local/portage/sci-mathematics/maxima/files/50maxima-gentoo.el
2006-12-04 19:58:23.000000000 +0100
@@ -1,5 +1,5 @@
;; maxima mode
-(setq load-path (cons "/usr/shar/maxima/PV/emacs" load-path))
+(setq load-path (cons "/usr/share/maxima/PV/emacs" load-path))
(autoload 'maxima-mode "maxima" "Maxima mode" t)
(autoload 'maxima "maxima" "Maxima interactive" t)
(setq auto-mode-alist (cons '("\\.max" . maxima-mode) auto-mode-alist))
Regards
Christian
Thanks for adding me to the CC Christian - really busy right now and so I don't
always get the time to read all my bugzilla email... I have added the updated
emacs file from the overlay and bumped to 5.11.0. Hopefully this will correct
the problems with the emacs mode.
I would like to thank Andrey Grozin <A.G.Grozin@inp.nsk.su> and Sebastien
Fabbro <seb@ist.utl.pt> for all their hard work on this ebuild in the overlay.