Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130245 - maxima-5.9.3: wrong file name for emacs support; after correction still problem
Summary: maxima-5.9.3: wrong file name for emacs support; after correction still problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-17 04:42 UTC by Sebastian Schubert
Modified: 2007-01-13 10:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
changed ebuild (filename.diff,505 bytes, patch)
2006-04-17 04:44 UTC, Sebastian Schubert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Schubert 2006-04-17 04:42:50 UTC
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...
Comment 1 Sebastian Schubert 2006-04-17 04:44:02 UTC
Created attachment 84827 [details, diff]
changed ebuild
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2006-04-17 06:03:26 UTC
Hi 

The 50emacs-gentoo.el file was updated in the overlay but wasn't updated in the portage tree. Could a gentoo dev move http://gentooscience.org/browser/overlay/sci-mathematics/maxima/files/50maxima-gentoo.el?rev=169
to the main tree? 
The patch sent in Comment #1 should not be needed then.
Then we see about the second issue.

Sebastien
Comment 3 Marcus D. Hanwell (RETIRED) gentoo-dev 2006-04-17 09:07:35 UTC
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.
Comment 4 Sebastian Schubert 2006-04-18 10:38:00 UTC
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))
                           ^^^^^^^
Comment 5 Sebastian Schubert 2006-05-08 05:40:43 UTC
The typo really need to be changed to have the emacs support working...

Thx
Comment 6 Yuan MEI 2006-05-19 19:46:17 UTC
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...
> 

Comment 7 PL Hayes 2006-06-13 01:02:49 UTC
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? 
Comment 8 Sébastien Fabbro (RETIRED) gentoo-dev 2006-06-13 03:23:51 UTC
maxima-5.9.3-r1 in the gentoo scientific overlay at http://gentooscience.org.
fixes this bug and add patches
Comment 9 PL Hayes 2006-06-13 04:05:06 UTC
(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?  
Comment 10 Sébastien Fabbro (RETIRED) gentoo-dev 2006-06-13 04:09:16 UTC
(In reply to comment #9)

> 
> 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?  

merged. See: http://gentooscience.org/browser/overlay/sci-mathematics/maxima/files/maxima-5.9.3-emaxima.patch

Comment 11 Sebastian Schubert 2006-06-13 04:16:13 UTC
(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
> 

Works. Thx
Comment 12 PL Hayes 2006-06-13 04:22:39 UTC
(In reply to comment #10)

Didn't see that - even though I did actually look inside the file %-)
Thanks! :) 

Comment 13 Christian Schlotter 2006-12-04 11:08:55 UTC
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
Comment 14 Christian Schlotter 2007-01-13 04:51:25 UTC
bump, this is an easy fix.
(see comment #13)
Comment 15 Marcus D. Hanwell (RETIRED) gentoo-dev 2007-01-13 10:44:51 UTC
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.