* Does eshell have something similar to bash's yank-last-arg
@ 2003-03-04 21:51 Barman Brakjoller
2003-03-04 22:28 ` Does eshell have something similar to bash's yank-last-rag John Wiegley
2003-03-05 7:11 ` Does eshell have something similar to bash's yank-last-arg Kai Großjohann
0 siblings, 2 replies; 9+ messages in thread
From: Barman Brakjoller @ 2003-03-04 21:51 UTC (permalink / raw)
Does eshell have something similar to bash's yank-last-arg:
yank-last-arg (M-., M-_)
Insert the last argument to the previous command (the last word
of the previous history entry). With an argument, behave
exactly like yank-nth-arg. Successive calls to yank-last-arg
move back through the history list, inserting the last argument
of each line in turn.
Anyone?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does eshell have something similar to bash's yank-last-rag
2003-03-04 21:51 Does eshell have something similar to bash's yank-last-arg Barman Brakjoller
@ 2003-03-04 22:28 ` John Wiegley
2003-03-05 14:41 ` Barman Brakjoller
2003-03-05 7:11 ` Does eshell have something similar to bash's yank-last-arg Kai Großjohann
1 sibling, 1 reply; 9+ messages in thread
From: John Wiegley @ 2003-03-04 22:28 UTC (permalink / raw)
brakjoller@hotmail.com (Barman Brakjoller) writes:
> Does eshell have something similar to bash's yank-last-rag:
You can use $_ to refer to the value of the last argument, but no,
there is no way to "yank" the last argument in the way you mentioned.
John
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does eshell have something similar to bash's yank-last-arg
2003-03-04 21:51 Does eshell have something similar to bash's yank-last-arg Barman Brakjoller
2003-03-04 22:28 ` Does eshell have something similar to bash's yank-last-rag John Wiegley
@ 2003-03-05 7:11 ` Kai Großjohann
2003-03-05 15:02 ` Barman Brakjoller
1 sibling, 1 reply; 9+ messages in thread
From: Kai Großjohann @ 2003-03-05 7:11 UTC (permalink / raw)
brakjoller@hotmail.com (Barman Brakjoller) writes:
> Does eshell have something similar to bash's yank-last-arg:
I use this:
(defun kai-eshell-insert-last-word (n)
(interactive "p")
(insert (car (reverse
(split-string
(eshell-previous-input-string (- n 1)))))))
Then I add a hook to bind the above to M-..
--
A preposition is not a good thing to end a sentence with.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does eshell have something similar to bash's yank-last-rag
2003-03-04 22:28 ` Does eshell have something similar to bash's yank-last-rag John Wiegley
@ 2003-03-05 14:41 ` Barman Brakjoller
2003-03-06 15:37 ` Romain FRANCOISE
0 siblings, 1 reply; 9+ messages in thread
From: Barman Brakjoller @ 2003-03-05 14:41 UTC (permalink / raw)
John Wiegley <johnw@gnu.org> wrote
> > Does eshell have something similar to bash's yank-last-rag:
>
> You can use $_ to refer to the value of the last argument, but no,
> there is no way to "yank" the last argument in the way you mentioned.
Then I suppose I could hack together a new eshell/yank-last-arg. I'll
see what I can come up with.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does eshell have something similar to bash's yank-last-arg
2003-03-05 7:11 ` Does eshell have something similar to bash's yank-last-arg Kai Großjohann
@ 2003-03-05 15:02 ` Barman Brakjoller
2003-03-06 5:44 ` Does eshell have something similar to bash's yank-last-rag John Wiegley
0 siblings, 1 reply; 9+ messages in thread
From: Barman Brakjoller @ 2003-03-05 15:02 UTC (permalink / raw)
kai.grossjohann@uni-duisburg.de (Kai Großjohann) wrote
> > Does eshell have something similar to bash's yank-last-arg:
>
> I use this:
>
> (defun kai-eshell-insert-last-word (n)
> (interactive "p")
> (insert (car (reverse
> (split-string
> (eshell-previous-input-string (- n 1)))))))
>
> Then I add a hook to bind the above to M-..
This must be my eshell-lucky day, excellent answers to both my
eshell-problems! Maybe I should go and buy a lottery ticket. :)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does eshell have something similar to bash's yank-last-rag
2003-03-05 15:02 ` Barman Brakjoller
@ 2003-03-06 5:44 ` John Wiegley
2003-03-06 18:14 ` Barman Brakjoller
0 siblings, 1 reply; 9+ messages in thread
From: John Wiegley @ 2003-03-06 5:44 UTC (permalink / raw)
brakjoller@hotmail.com (Barman Brakjoller) writes:
> This must be my eshell-lucky day, excellent answers to both my
> eshell-problems! Maybe I should go and buy a lottery ticket. :)
Or send that money my way, to convince me its worthwhile to write a
manual. :) I think if the community sent $2500 altogether, I would
be convinced.
John
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does eshell have something similar to bash's yank-last-rag
2003-03-05 14:41 ` Barman Brakjoller
@ 2003-03-06 15:37 ` Romain FRANCOISE
0 siblings, 0 replies; 9+ messages in thread
From: Romain FRANCOISE @ 2003-03-06 15:37 UTC (permalink / raw)
brakjoller@hotmail.com (Barman Brakjoller) writes:
> Then I suppose I could hack together a new eshell/yank-last-arg. I'll
> see what I can come up with.
There's also em-last.el, an Eshell module that does exactly what the
bash command does (cycle backwards through the arg list, etc).
http://orebokech.com/tmp/em-last.el
--
Romain FRANCOISE <romain@orebokech.com> | Wait, stop, wait just hold on
it's a miracle -- http://orebokech.com/ | a minute.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does eshell have something similar to bash's yank-last-rag
2003-03-06 5:44 ` Does eshell have something similar to bash's yank-last-rag John Wiegley
@ 2003-03-06 18:14 ` Barman Brakjoller
2003-03-06 19:42 ` John Wiegley
0 siblings, 1 reply; 9+ messages in thread
From: Barman Brakjoller @ 2003-03-06 18:14 UTC (permalink / raw)
> Or send that money my way, to convince me its worthwhile to write a
> manual. :) I think if the community sent $2500 altogether, I would
> be convinced.
You mean you are going to extract all docstrings and paste them into
the empty info pages? :)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does eshell have something similar to bash's yank-last-rag
2003-03-06 18:14 ` Barman Brakjoller
@ 2003-03-06 19:42 ` John Wiegley
0 siblings, 0 replies; 9+ messages in thread
From: John Wiegley @ 2003-03-06 19:42 UTC (permalink / raw)
brakjoller@hotmail.com (Barman Brakjoller) writes:
>> Or send that money my way, to convince me its worthwhile to write
>> a manual. :) I think if the community sent $2500 altogether, I
>> would be convinced.
>
> You mean you are going to extract all docstrings and paste them
> into the empty info pages? :)
Heh, no, that would just be a reference manual. A real manual
describes what the reader wants to know, not just what the program's
design wants to tell them.
John
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2003-03-06 19:42 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-04 21:51 Does eshell have something similar to bash's yank-last-arg Barman Brakjoller
2003-03-04 22:28 ` Does eshell have something similar to bash's yank-last-rag John Wiegley
2003-03-05 14:41 ` Barman Brakjoller
2003-03-06 15:37 ` Romain FRANCOISE
2003-03-05 7:11 ` Does eshell have something similar to bash's yank-last-arg Kai Großjohann
2003-03-05 15:02 ` Barman Brakjoller
2003-03-06 5:44 ` Does eshell have something similar to bash's yank-last-rag John Wiegley
2003-03-06 18:14 ` Barman Brakjoller
2003-03-06 19:42 ` John Wiegley
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.