From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Tassilo Horn <tsdh@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: repeat the last single shell command
Date: Thu, 18 Jul 2013 16:12:17 +0200 [thread overview]
Message-ID: <8738rcx8hq.fsf@yahoo.fr> (raw)
In-Reply-To: <878v14t3lp.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Thu, 18 Jul 2013 15:11:30 +0200")
Tassilo Horn <tsdh@gnu.org> writes:
> You can capture the last shell command using an advice, and have a
> command for repeating it, though.
Since a history is maintained accross invocations, there must be a
variable holding that, already. Its name is shell-command-history ; its
(car) holds the last command.
--
Nico.
next prev parent reply other threads:[~2013-07-18 14:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-18 9:00 repeat the last single shell command Luca Ferrari
[not found] ` <CAKcmqqyD8e2bX99NHMKG0h+fdF=U66mBsJ-W=4ygtmvJgNGaGA@mail.gmail.com>
2013-07-18 9:55 ` Luca Ferrari
2013-07-18 11:35 ` Suvayu Ali
2013-07-18 12:34 ` Luca Ferrari
2013-07-18 12:42 ` Nicolas Richard
2013-07-18 13:24 ` Tassilo Horn
2013-07-18 13:52 ` Nicolas Richard
2013-07-18 14:18 ` Tassilo Horn
2013-07-18 16:08 ` Yuri Khan
[not found] ` <mailman.1343.1374163702.12400.help-gnu-emacs@gnu.org>
2013-07-18 19:07 ` Barry Margolin
[not found] ` <mailman.1333.1374153910.12400.help-gnu-emacs@gnu.org>
2013-07-18 14:45 ` Barry Margolin
2013-07-18 10:33 ` Peter Dyballa
2013-07-18 13:11 ` Tassilo Horn
2013-07-18 14:01 ` Luca Ferrari
2013-07-18 14:12 ` Nicolas Richard [this message]
2013-07-18 14:22 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8738rcx8hq.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=help-gnu-emacs@gnu.org \
--cc=tsdh@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.