From: Matthew Flaschen <matthew.flaschen@gatech.edu>
To: emacs <help-gnu-emacs@gnu.org>
Subject: Re: eshell regexp for prompt
Date: Sun, 04 Feb 2007 03:26:42 -0500 [thread overview]
Message-ID: <45C598C2.3060601@gatech.edu> (raw)
In-Reply-To: <45C58AA6.8050701@gatech.edu>
[-- Attachment #1.1: Type: text/plain, Size: 734 bytes --]
Matthew Flaschen wrote:
> Hadron wrote:
>> What is the best regexp to match my eshell prompt which is of the form
>>
>> ~/d1/d1 $
>>
>> which I assume is an eshell default since my normal bash shell is different?
>>
>
> First, are you aware that you can get a bash shell with M-x shell ?
>
> I'll try to look into how you could get the behavior you're asking about
> in eshell.
>
> Matt Flaschen
I figured out the reason it works in shell but not eshell is that shell
is based a framework called comint, which defines a "field" for the
prompt. Beginning of line will stop there. However, eshell makes no
field. I tried to make it do so, but couldn't figure it out (I'm new to
elisp).
Matthew Flaschen
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2007-02-04 8:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-04 5:58 eshell regexp for prompt Hadron
2007-02-04 7:26 ` Matthew Flaschen
2007-02-04 8:26 ` Matthew Flaschen [this message]
[not found] ` <mailman.3982.1170574001.2155.help-gnu-emacs@gnu.org>
2007-02-04 8:07 ` Hadron
2007-02-04 16:17 ` David Hansen
2007-02-04 17:21 ` Matthew Flaschen
[not found] ` <mailman.3997.1170606228.2155.help-gnu-emacs@gnu.org>
2007-02-05 7:58 ` Hadron
2007-02-05 9:00 ` Matthew Flaschen
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=45C598C2.3060601@gatech.edu \
--to=matthew.flaschen@gatech.edu \
--cc=help-gnu-emacs@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.