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: Executing init script after launching eshell Date: Tue, 27 Mar 2012 13:28:46 +0530 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae93406213e30e404bc34dc94 X-Trace: dough.gmane.org 1332835142 2794 80.91.229.3 (27 Mar 2012 07:59:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2012 07:59:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 27 09:59:02 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 1SCRIz-0007K4-W6 for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Mar 2012 09:59:02 +0200 Original-Received: from localhost ([::1]:38306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCRIz-0003le-F5 for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Mar 2012 03:59:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCRIu-0003lP-R2 for help-gnu-emacs@gnu.org; Tue, 27 Mar 2012 03:58:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCRIn-0007kq-Bm for help-gnu-emacs@gnu.org; Tue, 27 Mar 2012 03:58:56 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:64673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCRIn-0007kU-4k for help-gnu-emacs@gnu.org; Tue, 27 Mar 2012 03:58:49 -0400 Original-Received: by iajr24 with SMTP id r24so11655877iaj.0 for ; Tue, 27 Mar 2012 00:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2ldhh6VoFsn9IU9rGBtEZfTQbRAF8Ye5KfW2ADrU7AM=; b=t5hGLoTFQEPFbXIWQ8E+pjw+AL8RmsxJ6yKEEgfT8KU4GWHQBadppuwekewD5IKLkJ UvEThHD4NXXGbpO5CeS50RyJ3NzdFOGwxSrAT/XfIkN8xw8liz9XawNlEq2lgIazb6bg 8y2keXXm/xabKbUOEFifUyQ66rof6UrHtK7kYcMdBHjueUZRbnDvwd/EBxXPee5KTi3i d42L2QsKV243fm3R0j2M499Hm5ciPqwtKZ2B7a2XQHgacwooIPYvlLdTnLmtZzxyO22F 6fs8U4BUCCHqfpbkkRb5nbVufBGxLlQonc6FTtbTamlEtpUuMTl/Rk5vULLi+GMCCm4B bF2g== Original-Received: by 10.50.45.231 with SMTP id q7mr7821639igm.42.1332835126226; Tue, 27 Mar 2012 00:58:46 -0700 (PDT) Original-Received: by 10.42.147.4 with HTTP; Tue, 27 Mar 2012 00:58:46 -0700 (PDT) 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:84108 Archived-At: --14dae93406213e30e404bc34dc94 Content-Type: text/plain; charset=ISO-8859-1 Hi All, Here's what I'd like to be doing - When I start emacs, I typically open up multiple eshells to do different kinds of compilation etc. Is there a way to retain the "session" in such a manner that all open eshells are also retained. As a workaround I was attempting to write a script that would open up the necessary eshells - (progn (eshell) (rename-buffer "b1") (insert "cd path1\n") (eshell) (rename-buffer "b2") (insert "cd path2\n") ) The problem is that I am not able to cd into the right place in eshell using (insert "cd path1\n") !!! Regards, Kashyap --14dae93406213e30e404bc34dc94 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi All,

Here's what I'd like to be doing - When I start emac= s, I=20 typically open up multiple eshells to do different kinds of compilation=20 etc. Is there=A0 a way to retain the "session" in such a manner t= hat all=20 open eshells are also retained.

As a workaround I was attempting to write a script that would open up t= he necessary eshells -

(progn
=A0=A0 (eshell)
=A0=A0 (rename-= buffer "b1")
=A0=A0=A0 (insert "cd path1\n")
=A0= =A0=A0 (eshell)
=A0=A0 (rename-buffer "b2")
=A0=A0=A0 (insert "cd path2\n= ")
)
The problem is that I am not able to cd into the right plac= e in eshell using (insert "cd path1\n") !!!

Regards,
Ka= shyap --14dae93406213e30e404bc34dc94--