From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tom <adatgyujto@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: A smarter command history
Date: Sat, 25 Jan 2014 16:55:02 -0500 [thread overview]
Message-ID: <jwvbnyzn2zu.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <loom.20140125T174138-721@post.gmane.org> (Tom's message of "Sat, 25 Jan 2014 16:53:32 +0000 (UTC)")
> For example, in grep's case the command history would look
> like this after the fix:
> (let ((default-directory "/home/me/projx")) (grep "grep -n -i test"))
That could also be problematic if the user wants to run the same grep in
various directory.
But, for various other reasons, we do need to provide a way for an
interactive spec to indicate the precise form of the command recorded in
the command history. We currently have some hacks, for example to try
and recognize when two arguments correspond to the region boundaries and
replace the corresponding numbers with (point) and (mark), but those are
brittle and need to be replaced by something more reliable and flexible.
Stefan
next prev parent reply other threads:[~2014-01-25 21:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-25 16:53 A smarter command history Tom
2014-01-25 21:55 ` Stefan Monnier [this message]
2014-01-26 16:53 ` Tom
2014-01-26 18:53 ` Drew Adams
2014-01-26 19:13 ` Tom
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=jwvbnyzn2zu.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=adatgyujto@gmail.com \
--cc=emacs-devel@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.