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

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

comint-previous-prompt in *shell* fooled just too often


From: Dan Jacobson
Subject: comint-previous-prompt in *shell* fooled just too often
Date: 23 Feb 2001 16:01:15 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

In the *shell* buffer, C-c C-p runs the command
comint-previous-prompt, which gets fooled by all kinds of junk,
e.g. Start a shell buffer.  In it do:

$ cd /etc/rc.d/rc6.d
$ ls -l
total 0
lrwxrwxrwx 1 root root 19 12 5 05:09 K00linuxconf -> ../init.d/linuxconf*
lrwxrwxrwx 1 root root 18 12 5 04:59 K05keytable -> ../init.d/keytable*
lrwxrwxrwx 1 root root 13 12 5 05:00 K10xfs -> ../init.d/xfs*
lrwxrwxrwx 1 root root 18 12 5 05:49 K11drakfont -> ../init.d/drakfont*
lrwxrwxrwx 1 root root 13 12 5 15:03 K15gpm -> ../init.d/gpm*
$ 
Now do some C-c C-p's.  Notice how it crawls tirefully up the symbolic
links?  How about having it at least take a look around first before I
hit return [or after previous return] to see what its current prompt
is, or maybe remember a list of previous spots in the buffer... all
better that relying on a regexp?
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.



reply via email to

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