From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: Re: Executing init script after launching eshell Date: Tue, 27 Mar 2012 18:43:33 +0530 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9340605fe51dd04bc3941a0 X-Trace: dough.gmane.org 1332854038 20253 80.91.229.3 (27 Mar 2012 13:13:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2012 13:13:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tom Willemsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 27 15:13:57 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SCWDh-0002At-8n for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Mar 2012 15:13:53 +0200 Original-Received: from localhost ([::1]:59894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCWDg-0001eL-8S for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Mar 2012 09:13:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCWDX-0001dX-Di for help-gnu-emacs@gnu.org; Tue, 27 Mar 2012 09:13:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCWDP-0006Su-7W for help-gnu-emacs@gnu.org; Tue, 27 Mar 2012 09:13:42 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:57526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCWDO-0006Sc-W9 for help-gnu-emacs@gnu.org; Tue, 27 Mar 2012 09:13:35 -0400 Original-Received: by iajr24 with SMTP id r24so12126176iaj.0 for ; Tue, 27 Mar 2012 06:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=46DO69rhlyB39zKgXwO9e7FP5gjVb8yQQotvlR/HdyA=; b=ECBMInOttD6dhw/Ya6+qO9qDw23hR0S3BGLmgarR+SieRlFUv+4+wycqPS8pmr2Cdl 3rO5W4qUAs5S0tDKqUbjWPUohLA9uTU76uA1Q2AFLe2WgP+Rr/i/0Jr4PKqT0Yf2wswp QASd0QWMYpMVrAnJCG+C1JW6qnSXyAn47g5lt0oqeTn9H4juSFvODl3p/FYC0uODjpuC A06JIY7DtiQ1UZYMEbNvZ/aFMxsm2aWFjvm7t95/OO+eHUvlO90DqRdKr41u+0vLcYyd 5jXp949SAY/QA+uflNfd76yHwr61AMip6KdF+sBG8K8CKTHL3gsLve+/0foT63/ceHQs +eAA== Original-Received: by 10.50.45.202 with SMTP id p10mr8455685igm.52.1332854013186; Tue, 27 Mar 2012 06:13:33 -0700 (PDT) Original-Received: by 10.42.147.4 with HTTP; Tue, 27 Mar 2012 06:13:33 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84113 Archived-At: --14dae9340605fe51dd04bc3941a0 Content-Type: text/plain; charset=ISO-8859-1 Thanks a lot Tom, The `eshell/cd' function is what is executed when you type 'cd' into > eshell, unless you have changed this. It doesn't change what you see in > eshell though, so the `eshell-send-input' should send an empty command, > > Oh, I now get the use of (eshell-send-input) ... I can even do (progn (eshell t) (insert "cd /Users/kck") (eshell-send-input) ) Regards, Kashyap --14dae9340605fe51dd04bc3941a0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks a lot Tom,

The `eshell/cd' function is what is executed w= hen you type 'cd' into
eshell, unless you have changed this. It doesn't change what you see in=
eshell though, so the `eshell-send-input' should send an empty command,=


Oh, I now get the use of (eshell-send-input) ... = I can even do
(progn
=A0 (eshell t)
=A0 (insert "cd /Users/kc= k")
=A0 (eshell-send-input)
=A0 )

Regards,
Kashyap
=
--14dae9340605fe51dd04bc3941a0--