<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>130245</bug_id>
          
          <creation_ts>2006-04-17 04:42 0000</creation_ts>
          <short_desc>maxima-5.9.3: wrong file name for emacs support; after correction still problem</short_desc>
          <delta_ts>2007-01-13 10:44:51 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>schubert.seb@googlemail.com</reporter>
          <assigned_to>sci-mathematics@gentoo.org</assigned_to>
          <cc>again@gmx.de</cc>
    
    <cc>cryos@gentoo.org</cc>
    
    <cc>paul@wolfbone.ath.cx</cc>

      

      
          <long_desc isprivate="0">
            <who>schubert.seb@googlemail.com</who>
            <bug_when>2006-04-17 04:42:50 0000</bug_when>
            <thetext>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...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schubert.seb@googlemail.com</who>
            <bug_when>2006-04-17 04:44:02 0000</bug_when>
            <thetext>Created an attachment (id=84827)
changed ebuild

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2006-04-17 06:03:26 0000</bug_when>
            <thetext>Hi 

The 50emacs-gentoo.el file was updated in the overlay but wasn&apos;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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cryos@gentoo.org</who>
            <bug_when>2006-04-17 09:07:35 0000</bug_when>
            <thetext>Sorry - I don&apos;t use emacs and didn&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schubert.seb@googlemail.com</who>
            <bug_when>2006-04-18 10:38:00 0000</bug_when>
            <thetext>Please change typo in 50maxima-gentoo.el:

(setq load-path (cons &quot;/usr/shar/maxima/PV/emacs&quot; load-path))

into

(setq load-path (cons &quot;/usr/share/maxima/PV/emacs&quot; load-path))
                           ^^^^^^^
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schubert.seb@googlemail.com</who>
            <bug_when>2006-05-08 05:40:43 0000</bug_when>
            <thetext>The typo really need to be changed to have the emacs support working...

Thx</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>yuan.mei@gmail.com</who>
            <bug_when>2006-05-19 19:46:17 0000</bug_when>
            <thetext>Yes I fixed the path problem manually,
but I still have to press C-g, otherwise emacs halts there

what&apos;s wrong?

I am using maxima-5.9.3 with sbcl-0.9.12

(In reply to comment #0)
&gt; The ebuild implements a wrong sed command to change the folder name for emacs
&gt; support. See attached diff for a possible correction.
&gt; 
&gt; Changing that, I still have problems with the maxima mode in emacs. M-x maxima
&gt; hangs. Here the messages:
&gt; 
&gt; For information about the GNU Project and its goals, type C-h C-p.
&gt; Loading maxima (source)...
&gt; Loading regexp-opt...done
&gt; Loading edmacro...done
&gt; Loading derived...done
&gt; Loading easy-mmode...done
&gt; Loading maxima (source)...done
&gt; 
&gt; I have to C-g. After that I can try again and now it works...
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paul@wolfbone.ath.cx</who>
            <bug_when>2006-06-13 01:02:49 0000</bug_when>
            <thetext>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 &apos;while&apos; to a &apos;when&apos; seems to fix it:

(defun inferior-maxima-wait-for-output ()
  &quot;Wait for output from the Maxima process.&quot;
  (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? </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2006-06-13 03:23:51 0000</bug_when>
            <thetext>maxima-5.9.3-r1 in the gentoo scientific overlay at http://gentooscience.org.
fixes this bug and add patches</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paul@wolfbone.ath.cx</who>
            <bug_when>2006-06-13 04:05:06 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; maxima-5.9.3-r1 in the gentoo scientific overlay at http://gentooscience.org.
&gt; fixes this bug and add patches
&gt; 

I haven&apos;t tried this because I don&apos;t see a patch in there for the inferior-maxima-wait-for-output bug. Am I missing something?  </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2006-06-13 04:09:16 0000</bug_when>
            <thetext>(In reply to comment #9)

&gt; 
&gt; I haven&apos;t tried this because I don&apos;t see a patch in there for the
&gt; 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

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schubert.seb@googlemail.com</who>
            <bug_when>2006-06-13 04:16:13 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; maxima-5.9.3-r1 in the gentoo scientific overlay at http://gentooscience.org.
&gt; fixes this bug and add patches
&gt; 

Works. Thx</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paul@wolfbone.ath.cx</who>
            <bug_when>2006-06-13 04:22:39 0000</bug_when>
            <thetext>(In reply to comment #10)

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

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>again@gmx.de</who>
            <bug_when>2006-12-04 11:08:55 0000</bug_when>
            <thetext>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 &quot;/usr/shar/maxima/PV/emacs&quot; load-path))
+(setq load-path (cons &quot;/usr/share/maxima/PV/emacs&quot; load-path))
 (autoload &apos;maxima-mode &quot;maxima&quot; &quot;Maxima mode&quot; t)
 (autoload &apos;maxima &quot;maxima&quot; &quot;Maxima interactive&quot; t)
 (setq auto-mode-alist (cons &apos;(&quot;\\.max&quot; . maxima-mode) auto-mode-alist))

Regards
Christian</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>again@gmx.de</who>
            <bug_when>2007-01-13 04:51:25 0000</bug_when>
            <thetext>bump, this is an easy fix.
(see comment #13)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cryos@gentoo.org</who>
            <bug_when>2007-01-13 10:44:51 0000</bug_when>
            <thetext>Thanks for adding me to the CC Christian - really busy right now and so I don&apos;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 &lt;A.G.Grozin@inp.nsk.su&gt; and  Sebastien Fabbro &lt;seb@ist.utl.pt&gt; for all their hard work on this ebuild in the overlay.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>84827</attachid>
            <date>2006-04-17 04:44 0000</date>
            <desc>changed ebuild</desc>
            <filename>filename.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9zY2ktbWF0aGVtYXRpY3MvbWF4aW1hL21heGltYS01LjkuMy5lYnVp
bGQJMjAwNi0wNC0xNSAxNjo1Nzo0Ni4wMDAwMDAwMDAgKzAyMDAKKysrIC91c3IvbG9jYWwvcG9y
dGFnZS9zY2ktbWF0aGVtYXRpY3MvbWF4aW1hL21heGltYS01LjkuMy1yMS5lYnVpbGQJMjAwNi0w
NC0xNyAxMDo1MzoyNC4wMDAwMDAwMDAgKzAyMDAKQEAgLTEwMSw3ICsxMDEsNyBAQAogCQkvdXNy
L3NoYXJlLyR7UE59LyR7UFZ9L3htYXhpbWEvbWF4aW1hLW5ldy5wbmcKIAogCWlmIHVzZSBlbWFj
czsgdGhlbgotCQlzZWQgLWUgInMvUFYvJHtQVn0vIiAiJHtGSUxFU0RJUn0iLzUwbWF4aW1hLWdl
bnRvby5lbCA+IDUwbWF4aW1hLWdlbnRvby5lbAorCQlzZWQgLWUgInMvNS45LjEvJHtQVn0vIiAi
JHtGSUxFU0RJUn0iLzUwbWF4aW1hLWdlbnRvby5lbCA+IDUwbWF4aW1hLWdlbnRvby5lbAogCQll
bGlzcC1zaXRlLWZpbGUtaW5zdGFsbCA1MG1heGltYS1nZW50b28uZWwKIAlmaQogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>