#1695 maxima.el inferior-maxima-complete on Emacs 23

closed
nobody
5
2012-12-04
2009-06-18
Anonymous
No

the M-TAB in maxima.el, i.e. the function inferior-maxima-complete is
unusable on Emacs 23.

After a bit of debugging, it seems that in the calling stack of that
function, somewhere an alist is expected while a list is supplied.

Can somebody else confirm this bug?

Discussion

  • Ulrich Müller
    Ulrich Müller
    2010-03-02

    A similar problem was reported as Gentoo bug 307349: <http://bugs.gentoo.org/307349>

    This problem occurs when I use maxima inside emacs and I try to complete a
    When the completion is unique it works fine, but when the completion is
    ambiguous I only get this in the Messages buffer:
    comint-dynamic-simple-complete: Wrong number of arguments:
    (lambda (completions) [...rest of message deleted...]

    The reason is a broken version number check in maxima.el which (re)defines function comint-dynamic-list-completions if the following condition is true:

    (and
    (not maxima-running-xemacs)
    (or
    (< emacs-major-version 21)
    (< emacs-minor-version 3)))

    This obviously breaks for Emacs 23.1. I guess that the intention was to test for versions <21.3 (which would fit the date when this code was committed, namely 2004-11-03).

     
  • Ulrich Müller
    Ulrich Müller
    2010-03-02

    This patch should fix it:

    --- maxima-5.20.1-orig/interfaces/emacs/emaxima/maxima.el
    +++ maxima-5.20.1/interfaces/emacs/emaxima/maxima.el
    @@ -2109,6 +2109,7 @@
    ;;; The next functions are from comint.el in cvs emacs
    (if (and
    (not maxima-running-xemacs)
    + (<= emacs-major-version 21)
    (or
    (< emacs-major-version 21)
    (< emacs-minor-version 3)))

     
  • Leo Butler
    Leo Butler
    2011-01-16

    The suggested patch is applied in revision 1.63 of maxima.el.
    I am marking the bug report as closed.

     
  • Leo Butler
    Leo Butler
    2011-01-16

    • status: open --> closed