From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Grant Rettke Newsgroups: gmane.emacs.help Subject: Re: shortcut to take me from eshell to shell and preserve cwd Date: Fri, 9 May 2014 13:53:39 -0500 Message-ID: References: <9a205eac-45b5-4c03-983d-5a4d51f5958d@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1399661643 6786 80.91.229.3 (9 May 2014 18:54:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 May 2014 18:54:03 +0000 (UTC) Cc: Emacs Help To: ckhan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 09 20:53:58 2014 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 1Wipvg-0006nl-N0 for geh-help-gnu-emacs@m.gmane.org; Fri, 09 May 2014 20:53:56 +0200 Original-Received: from localhost ([::1]:54052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wipvg-00034V-Dd for geh-help-gnu-emacs@m.gmane.org; Fri, 09 May 2014 14:53:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WipvR-00034Q-KP for help-gnu-emacs@gnu.org; Fri, 09 May 2014 14:53:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WipvQ-0002Ly-Gc for help-gnu-emacs@gnu.org; Fri, 09 May 2014 14:53:41 -0400 Original-Received: from mail-oa0-x22a.google.com ([2607:f8b0:4003:c02::22a]:60975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WipvQ-0002Lu-Ah for help-gnu-emacs@gnu.org; Fri, 09 May 2014 14:53:40 -0400 Original-Received: by mail-oa0-f42.google.com with SMTP id j17so5459465oag.29 for ; Fri, 09 May 2014 11:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=IhnRqiQuBDtC2nvzcHnbRYhlvp32wlLmCLh+yBC18D8=; b=hcjZvGy1VVJMecDwPNWEScpmE1Qzz2UMMgHRelAGA7dnWvg7Y6W5LXs1/TRkCo1eDr 1ts6K2VAvs9hTzsNfG8nbBpBHFZiyp9T1kpuWIy5L03XNHTFxak3wjoWhptpk0MOmMsl YsHhyS3Mwgu47kgBHsJsvBkGuFX32lj6qW1pKHsu6eVeOPf7JcgJgjF6FK94EoppdjTw SgccJIuEwHBFAUvLI3wzQH6lJ6tNocEFQkjjMUR/YT0e5ctoxARlRlw8hUnVD1pTWXD3 5MYoVmwKfr1YKs8VSZK6oDEQbFC9y1hR40sWCBAtAW7dtifULmgPstxc+uDDzar63wPa 07QA== X-Received: by 10.182.234.65 with SMTP id uc1mr10568309obc.10.1399661619397; Fri, 09 May 2014 11:53:39 -0700 (PDT) Original-Received: by 10.182.50.135 with HTTP; Fri, 9 May 2014 11:53:39 -0700 (PDT) In-Reply-To: <9a205eac-45b5-4c03-983d-5a4d51f5958d@googlegroups.com> X-Google-Sender-Auth: fKSlwnQB3kg_tH6TQskN1eombhE X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::22a 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:97576 Archived-At: What have you tried so far? Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi grettke@acm.org | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Fri, May 9, 2014 at 1:25 PM, ckhan wrote: > How would I write an elisp function that is active in eshell mode that do= es the following: > - queries current directory > - changes to the buffer named *shell*, (runs M-x shell to create it if it= 's no there) > - runs "cd " to drop me into the same dir that I was in in eshell > > Thanks for any tips! > -ck