bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

comint-previous-prompt and comint-next-prompt in shell-mode.


From: Lute Kamstra
Subject: comint-previous-prompt and comint-next-prompt in shell-mode.
Date: Wed, 16 May 2001 16:58:48 +0200 (CEST)

This bug report will be sent to the Free Software Foundation,
 not to your local site managers!!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Dear people,

In GNU Emacs 20.3.1 (mips-sgi-irix6.2, Motif)
 of Do sep  3 1998 on zeus
configured using `configure  --with-x-toolkit=motif --with-gcc=no 
--prefix=/usr/local/emacs --with-pop'

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

This concerns a problem I encountered in the shell-mode. After I
invoked emacs from an xterm, I started the shell-mode by 'M-x
shell'. (I use bash-2.00.) Subsequently, using the shell-mode, I
created a new directory called 'tmp' with a new file called '#afile'
as follows:

[bash-2.00|kano|lute]> mkdir tmp
[bash-2.00|kano|lute]> cd tmp
[bash-2.00|kano|tmp]> touch \#afile

Of course, the '[...]>' string is my bash prompt. Then I did an ls:

[bash-2.00|kano|tmp]> ls
#afile
[bash-2.00|kano|tmp]> 

The problem now is that, when I issue a comint-previous-prompt, the
point travels to the position between the '#' and the 'a' in
'#afile'. I consider this a bug. A second comint-previous-prompt takes
the point to the right place, just before the 'l' in ls. Similarly,
two subsequent comint-next-prompt take the point first between '#' and
'a' (wrong) and then to the last position in the buffer (right).

When I do not use my .emacs file (-q option at startup), emacs behaves
the same. The same goes for the 20.7 version of emacs on my linux box.

Recent input:
M-x s h e l l return m k d i r SPC t m p return c d 
SPC t m p return t o u c h SPC \ # a f i l e return 
l s return M-x c o m i n t - p r e v i o u s - p r 
o m p t return C-c C-p M-x c o m i n t - n e x t - 
p r o m p t return C-c C-n menu-bar help-menu repo
rt-emacs-bug

Recent messages:
For information about the GNU Project and its goals, type C-h C-p.
Loading shell...
Loading shell...done
Loading mule-util...
Loading mule-util...done
Fontifying *shell*...
Fontifying *shell*...done
~/tmp 
Loading emacsbug...
Loading emacsbug...done

Kind regards,

  Lute Kamstra.


----------------------------------------------------------------------
Lute Kamstra                                      "Mailed from Emacs, 
CWI department PNA4                               the One True Editor"
Office M233
email: address@hidden                    phone: (+31) 20 592 4214
----------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]