From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.help Subject: Re: need for a shell-mode-post-hook ? Date: 10 Mar 2003 15:21:56 -0500 Organization: Yale University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5l65qrnfa3.fsf@rum.cs.yale.edu> References: <87smu22ncd.fsf@killr.ath.cx> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047332518 5856 80.91.224.249 (10 Mar 2003 21:41:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2003 21:41:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 10 22:41:57 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18sV0F-0001Pf-00 for ; Mon, 10 Mar 2003 22:40:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18sUqx-0006XK-02 for gnu-help-gnu-emacs@m.gmane.org; Mon, 10 Mar 2003 16:30:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!news.ycc.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: rum.cs.yale.edu User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 10 Mar 2003 15:21:56 -0500, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:110965 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7468 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7468 >>>>> "Matthew" == Matthew Kennedy 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 ? Stefan