From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: bash and reverse-search-history
Date: Fri, 21 Apr 2006 09:45:09 -0700 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICMEBEDFAA.drew.adams@oracle.com> (raw)
In-Reply-To: <20060421154309.GK5280@radix50.net>
> >I'm using bash inside emacs and want to use the
reverse-search-history
> >of bash, bound to C-r. Unfortunately, C-r is interpreted by emacs and
> >doesn't apparently reach bash. How can I use this function of bash
> >from
> >within emacs?
>
> I don't know. By escaping? What is so bad about Emacs' own shell
> history?
Do you mean M-r? Two reasons:
1. It's not as convenient for me as the bash's one shows what it found
as I type, and with emacs' one I have to modify regexp on the next
run.
2. I couldn't find a way to search the whole bash history. When I type
some expression that I know is in ~/.bash_history, emacs says "Not
found".
I don't know if this helps you or not, but you might take a look. Icicles (a
library for GNU Emacs) lets you search the entire history (your #2),
updating matches as you type (your #1). I don't know what you mean by "have
to modify regexp on the next run".
Anyway, take a look:
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_History_Enhancements. That
discussion is in the middle of the Icicles doc, so if it's not immediately
obvious how it could apply to your question you might read some of the
introductory material. The doc entry point is here:
http://www.emacswiki.org/cgi-bin/wiki/Icicles.
next prev parent reply other threads:[~2006-04-21 16:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-21 12:43 bash and reverse-search-history Baurzhan Ismagulov
2006-04-21 15:13 ` Peter Dyballa
2006-04-21 15:43 ` Baurzhan Ismagulov
2006-04-21 16:45 ` Drew Adams [this message]
2006-04-22 19:24 ` Baurzhan Ismagulov
2006-04-22 20:27 ` Drew Adams
2006-04-22 21:05 ` Baurzhan Ismagulov
2006-04-22 21:29 ` Peter Dyballa
2006-04-22 21:53 ` Baurzhan Ismagulov
2006-04-22 22:21 ` Peter Dyballa
2006-04-23 7:00 ` Baurzhan Ismagulov
2006-04-21 22:02 ` Kevin Rodgers
2006-04-22 12:24 ` Baurzhan Ismagulov
[not found] <mailman.700.1145623405.9609.help-gnu-emacs@gnu.org>
2006-04-22 9:18 ` Gary Wessle
2006-04-22 12:21 ` Baurzhan Ismagulov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNEMKBNJBGPAOPIJOOICMEBEDFAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).