Re: Rexecuting commands in an Emacs shell
- From: General Schvantzkoph <schvantzkoph@xxxxxxxxx>
- Date: 15 May 2007 03:02:38 GMT
On Mon, 14 May 2007 21:27:10 -0400, Dan Espen wrote:
General Schvantzkoph <schvantzkoph@xxxxxxxxx> writes:
On Mon, 14 May 2007 16:03:29 -0400, Dan Espen wrote:
General Schvantzkoph <schvantzkoph@xxxxxxxxx> writes:
On Mon, 14 May 2007 12:02:33 -0400, Dan Espen wrote:
General Schvantzkoph <schvantzkoph@xxxxxxxxx> writes:
What do I need to do to enable the ability to re-execute a command
in an Emacs shell? To clarify, when in an Emacs shell it's always
been possible to re-execute a command simply by putting the cursor
on that line in a buffer and doing a CR. I've just built a copy of
21.4.20 on CentOS5 (which doesn't come with an Xemacs RPM). In the
Xemacs that I built command re-execution doesn't work.
works here on 2.4.19.
Maybe you need to be more specific.
Yes I'm using M-x shell. It works on the versions of Xemacs that I
didn't build, i.e. FC6 and Cygwin, it's just the copies that I built
from source that have the problem.
To give you a very simple example, if I do an ls in the shell and the
re- execute the same line, i.e. put the cursor on the line that has
the ls on it, on the copies of Xemacs that were built by others the
ls will list the files again. On the copies of Xemacs that I built
myself, nothing happens.
So, you put the cursor in the line above, hit return and the cursor
doesn't move at all? Or does it move back to the prompt you started
on, or does it create a new prompt?
If you do:
^h k ret
in the shell buffer does it say:
RET runs `comint-send-input'
On the broken copies of Xemacs putting the cursor on a prior line and
the hitting return places the cursor at the end of the buffer and
otherwise does nothing. On the pre-built working copies placing the
cursor on a prior line cause that line to be replicated at the end of
the buffer and re-executed.
Here is the working case,
/home/bjrosen/foo> ls
bar
/home/bjrosen/foo> ls
bar
/home/bjrosen/foo>
Here is the broken case,
/home/bjrosen/foo> ls
bar
/home/bjrosen/foo>
/home/bjrosen/foo>
Ok, looks like it's not pulling the command down as it should.
You didn't do the "^h k RET" thing to check the mode map. Please do
that.
Also, try starting XEmacs with -q so it doesn't read your .emacs and see
if it works that way.
I know you keep associating this with compile from source but I don't
see the connection. Yet.
Most of the time I compile XEmacs from source too.
xemacs -q didn't make any difference.
^h k RET yields the same thing for both the working and non working
copies.
RET runs `comint-send-input'
`comint-send-input' is an interactive compiled Lisp function
-- loaded from "comint"
(comint-send-input &optional NO-NEWLINE ARTIFICIAL)
.
- Follow-Ups:
- Re: Rexecuting commands in an Emacs shell
- From: Dan Espen
- Re: Rexecuting commands in an Emacs shell
- References:
- Rexecuting commands in an Emacs shell
- From: General Schvantzkoph
- Re: Rexecuting commands in an Emacs shell
- From: Dan Espen
- Re: Rexecuting commands in an Emacs shell
- From: General Schvantzkoph
- Re: Rexecuting commands in an Emacs shell
- From: Dan Espen
- Re: Rexecuting commands in an Emacs shell
- From: General Schvantzkoph
- Re: Rexecuting commands in an Emacs shell
- From: Dan Espen
- Rexecuting commands in an Emacs shell
- Prev by Date: Re: Rexecuting commands in an Emacs shell
- Next by Date: Re: Rexecuting commands in an Emacs shell
- Previous by thread: Re: Rexecuting commands in an Emacs shell
- Next by thread: Re: Rexecuting commands in an Emacs shell
- Index(es):
Relevant Pages
|