Maxima GUIs/emacs troubles!



Good day,

(Some interesting things, read through!)

Ok, following your instructions, I got a fresh gcl from CVS. I compiled 
it, and made it. ./configure finds libreadline. Ok. Everything checks out.

>
>1) You have correctly built gcl-2.5.0 from cvs with readline support,
>   and that 'ldd unixport/saved_gcl' shows the readline library linked
>   in. 
>
Yes, it does.

[lemire@lagrange gcl]$ ldd unixport/saved_gcl
        libc.so.6 => /lib/i686/libc.so.6 (0x40033000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40163000)
        libreadline.so.4.1 => /usr/lib/libreadline.so.4.1 (0x40187000)
        libncurses.so.5 => /usr/lib/libncurses.so.5 (0x401ad000)
        libbfd-2.10.91.0.2.so => /usr/lib/libbfd-2.10.91.0.2.so (0x401ef000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

>
>2) When executing the script front-end to saved_gcl from an xterm,
>   i.e. the 'gcl' script, you see ^OD] with back-arrow, backspace
>   works, and that tab, Alt-b, etc., report similar ascii
>   representations of control characters to the screen.
>
That's correct.

[lemire@lagrange gcl]$ unixport/saved_gcl
GCL (GNU Common Lisp)  Version(2.5.0) ven fév 15 14:16:05 AST 2002
Licensed under GNU Library General Public License
Contains Enhancements by W. Schelter

 >gfdggfdff^[OD^[OD^[ODgggdddddg^[OD^[ODgf^[OD^[OD^[OD

>
>3) Terminal is as described below, which is the same setup I have
>   here, and should work fine.
>
I don't understand this question.

>
>4) For completeness sake, you don't have some old gcl script in your
>   path, and the script you are executing is:
>
>	#!/bin/sh
>	exec /usr/lib/gcl-2.5.0/unixport/saved_gcl \
>	   -dir /usr/lib/gcl-2.5.0/unixport/ \
>	   -libdir /usr/lib/gcl-2.5.0/ \
>	   -eval '(setq si::*allow-gzipped-file* t)' \
>	   -eval '(setq si::*tk-library* "/usr/lib/tk8.2")' \
>	   -eval '(si::init-readline)' \
>	     "$@"
>	# other options: -load /tmp/foo.o -load jo.lsp -eval "(joe 3)"
>
Yes, it is.

[lemire@lagrange lib]$ which gcl
/usr/local/bin/gcl
[lemire@lagrange lib]$ more /usr/local/bin/gcl
#!/bin/sh
exec /usr/local/lib/gcl-2.5.0/unixport/saved_gcl \
   -dir /usr/local/lib/gcl-2.5.0/unixport/ \
   -libdir /usr/local/lib/gcl-2.5.0/ \
   -eval '(setq si::*allow-gzipped-file* t)' \
   -eval '(setq si::*tk-library* "/usr/lib/tk8.3")' \
   -eval '(si::init-readline)' \
     "$@"
# other options: -load /tmp/foo.o -load jo.lsp -eval "(joe 3)"


For completeness sake...

[lemire@lagrange lib]$ gcl
GCL (GNU Common Lisp)  Version(2.5.0) ven fév 15 14:16:05 AST 2002
Licensed under GNU Library General Public License
Contains Enhancements by W. Schelter
 >

*****However!!! Here the arrows work!!!*****
*****They work!!!*****

However, it is somewhat non-standard as I'm used to type "ctrl-d" to 
quit a program. Here it won't quit and I don't know what to do, so I 
have to go to another shell and kill the process.

Following this, I was hopeful. I checked out Maxima again. Change with 
the following two lines
MAXDIR=/home/lemire/cvs/maxima/maxima-pre59
GCLDIR=/home/lemire/CVS/gcl/gcl

I built a fresh Maxima. (.configure, make, make install).

No go. Maxima has still the same problem!

So this would seem to be a maxima problem, not a gcl problem, even 
though, I'd like to know how the h*ll you quit gcl...!!!

>
>
>Questions:
>
>1) Can anyone else on this list confirm this behavior on a Redhat box?
>2) Can anyone else report a correctly working setup on Redhat or any
>   other Linux system?
>
>In other words, I cannot reproduce your behavior at all, and I need to
>at least here from someone else who can before concluding that it is a
>gcl problem as opposed to a local setup problem.
>
>
>Thanks for your patience, and report!
>
>
>Daniel Lemire <lemire@ondelette.com> writes:
>
>>Good day,
>>
>>What do you mean by "still"? By upgrading gcl, the only thing I bought 
>>was the backspace key. All other control keys do not work. It is 
>>somewhat nicer than what I had before, but it is still very limited.
>>
>>Since I have more than one RedHat 7.1 machine, I can assume that it will 
>>be the result for just about everyone using RedHat.
>>
>>
>>Camm Maguire wrote:
>>
>>>Greetings!  Do you still see this behavior when running gcl in
>>>stand-alone mode?  Do you have tab completion in this case?
>>>
>>>Take care,
>>>
>>>
>>>Daniel Lemire <lemire@ondelette.com> writes:
>>>
>>>>Actually, I have several RedHat Linux 7.1 machines. The same thing 
>>>>happens on all these machines. Right now, at the office, here's what I 
>>>>get...
>>>>
>>>>[lemire@lagrange lemire]$ set
>>>>BASH=/bin/bash
>>>>BASH_ENV=/home/lemire/.bashrc
>>>>BASH_VERSINFO=([0]="2" [1]="04" [2]="21" [3]="1" [4]="release" 
>>>>[5]="i386-redhat-linux-gnu")
>>>>BASH_VERSION='2.04.21(1)-release'
>>>>COLORS=/etc/DIR_COLORS
>>>>COLORTERM=
>>>>COLUMNS=125
>>>>DIRSTACK=()
>>>>DISPLAY=:0.0
>>>>EUID=500
>>>>GROUPS=()
>>>>GTK_RC_FILES=/etc/gtk/gtkrc:/home/lemire/.gtkrc:/home/lemire/.gtkrc-kde
>>>>HISTFILE=/home/lemire/.bash_history
>>>>HISTFILESIZE=1000
>>>>HISTSIZE=1000
>>>>HOME=/home/lemire
>>>>HOSTNAME=lagrange
>>>>HOSTTYPE=i386
>>>>IFS='
>>>>'
>>>>INPUTRC=/etc/inputrc
>>>>KDEDIR=/usr
>>>>KDE_MULTIHEAD=false
>>>>LAMHELPFILE=/etc/lam/lam-helpfile
>>>>LANG=fr_FR@euro
>>>>LESSOPEN='|/usr/bin/lesspipe.sh %s'
>>>>LINES=35
>>>>LOGNAME=lemire
>>>>LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:'
>>>>MACHTYPE=i386-redhat-linux-gnu
>>>>MAIL=/var/spool/mail/lemire
>>>>MAILCHECK=60
>>>>OPTERR=1
>>>>OPTIND=1
>>>>OSTYPE=linux-gnu
>>>>PATH=/usr/local/bin:/opt/IBMJava2-13/bin:/opt/IBMJava2-13/bin:/opt/IBMJava2-13/bin:/opt/IBMJava2-13/bin:/opt/IBMJava2-13/bin:/usr/kerberos/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/home/lemire/bin
>>>>PIPESTATUS=([0]="0")
>>>>PPID=4243
>>>>PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
>>>>PS1='[\u@\h \W]\$ '
>>>>PS2='> '
>>>>PS4='+ '
>>>>PVM_ROOT=/usr/share/pvm3
>>>>PVM_RSH=/usr/bin/rsh
>>>>PWD=/home/lemire
>>>>QTDIR=/usr/lib/qt-2.3.1
>>>>QT_XFT=0
>>>>SESSION_MANAGER=local/lagrange:/tmp/.ICE-unix/960
>>>>SHELL=/bin/bash
>>>>SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:interactive-comments:emacs
>>>>SHLVL=2
>>>>SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
>>>>TERM=xterm
>>>>UID=500
>>>>USER=lemire
>>>>XMODIFIERS=@im=none
>>>>XPVM_ROOT=/usr/share/pvm3/xpvm
>>>>_=/etc/bashrc
>>>>i=/etc/profile.d/xpvm.sh
>>>>langfile=/home/lemire/.i18n
>>>>sourced=1
>>>>mc=()
>>>>{
>>>>   mkdir -p ~/.mc/tmp 2>/dev/null;
>>>>   chmod 700 ~/.mc/tmp;
>>>>   MC=~/.mc/tmp/mc-$$;
>>>>   /usr/bin/mc -P "$@" >"$MC";
>>>>   cd "`cat $MC`";
>>>>   /bin/rm "$MC";
>>>>   unset MC
>>>>}
>>>>[lemire@lagrange lemire]$ echo $TERM
>>>>xterm
>>>>[lemire@lagrange lemire]$ uname -a
>>>>Linux lagrange 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
>>>>[lemire@lagrange lemire]$ echo $0
>>>>/bin/bash
>>>>[lemire@lagrange lemire]$ tty
>>>>/dev/pts/20
>>>>[lemire@lagrange lemire]$ stty
>>>>speed 38400 baud; line = 0;
>>>>-brkint -imaxbel
>>>>[lemire@lagrange lemire]$
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>Camm Maguire wrote:
>>>>
>>>>>Greetings!
>>>>>
>>>>>Daniel Lemire <daniel.lemire@ns.sympatico.ca> writes:
>>>>>
>>>>>>Good day,
>>>>>>
>>>>>>Oh! Yes, I have a working terminal. For sure. I do all my work in 
>>>>>>consoles and text editors. I would go mad without a decent console!!!
>>>>>>
>>>>>>Here's what happens when I use the back arrow (^[OD appears). Please 
>>>>>>note that "backspace" works. Back arrow is when you want to go back 
>>>>>>inside the command and edit it.
>>>>>>
>>>>>OK, this ^[OD is the back arrow key code, at least here, which is
>>>>>obviously not being interpreted correctly by your terminal.  Please
>>>>>post the result of the following:
>>>>>
>>>>>set
>>>>>echo $TERM
>>>>>uname -a
>>>>>echo $0
>>>>>tty
>>>>>stty
>>>>>
>>>>>
>>>>>What system is this?
>>>>>
>>>>>Take care,
>>>>>
>>>>>>[lemire@romeo lemire]$ maxima
>>>>>>GCL (GNU Common Lisp)  Version(2.5.0) jeu jan 31 23:03:22 EST 2002
>>>>>>Licensed under GNU Library General Public License
>>>>>>Contains Enhancements by W. Schelter
>>>>>>Maxima 5.6 jeu jan 31 23:03:13 EST 2002 (with enhancements by W. Schelter).
>>>>>>Licensed under the GNU Public License (see file COPYING)
>>>>>>(C1) fdsfds^[OD^[OD^[OD^[OD
>>>>>>
>>>>>>
>>>>>>I should point out that I'm using RedHat. I built gcl myself and 
>>>>>>frankly, I just did the obvious (./configure, make, make install). I 
>>>>>>didn't check my installation. I don't know anything about lisp.
>>>>>>
>>>>>>Thanks!
>>>>>>
>>>>>>Camm Maguire wrote:
>>>>>>
>>>>>>>Greetings!  On my gcl 2.5.0 build, tab completion, backspace, Emacs
>>>>>>>keys (i.e. Alt-b to back over a word), and the back arrow all work.
>>>>>>>Are you sure you have a working terminal?  Does bash show the expected
>>>>>>>behavior?  What about gcl directly from the command prompt?
>>>>>>>
>>>>>>-- 
>>>>>>Daniel Lemire, Ph.D.
>>>>>>
>>>>>>http://www.ondelette.com/
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>>>
>>
>>
>>
>>
>