From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: need for a shell-mode-post-hook ?
Date: Tue, 11 Mar 2003 16:31:34 +0100 [thread overview]
Message-ID: <84d6kxkjhl.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: 5l65qrnfa3.fsf@rum.cs.yale.edu
"Stefan Monnier" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> writes:
>>>>>> "Matthew" == Matthew Kennedy <mbkennedy@austin.rr.com> writes:
>> (add-hook 'shell-mode-post-hook '(erase-buffer))
>
> That's difficult because the shell buffer is asynchronous, so
> Emacs doesn't know when the shell's initialization is done.
>
> Tramp has to deal with the problem and it's pretty ugly, but maybe
> you can convince Kai to tell you how to reuse that ugly code for
> this other case ?
Tramp just looks for a shell prompt...
But maybe Matthew could change his ~/.emacs_bash to produce less
output? For example, maybe it works to put all commands on one
(virtual) line by doing things like
command1; \
command2; \
...
in ~/.emacs_bash.
--
A preposition is not a good thing to end a sentence with.
next prev parent reply other threads:[~2003-03-11 15:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-05 9:07 need for a shell-mode-post-hook ? Matthew Kennedy
2003-03-05 9:23 ` Kai Großjohann
2003-03-05 19:38 ` Kevin Rodgers
2003-03-10 20:21 ` Stefan Monnier
2003-03-11 15:31 ` Kai Großjohann [this message]
2003-03-12 7:53 ` Matthew Kennedy
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=84d6kxkjhl.fsf@lucy.is.informatik.uni-duisburg.de \
--to=kai.grossjohann@uni-duisburg.de \
/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.