all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "David Strozzi" <david.strozzi@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs current directory when shell commands change
Date: Mon, 23 Apr 2007 17:38:22 -0700	[thread overview]
Message-ID: <f21763420704231738q32d77194yf25678faeb867b07@mail.gmail.com> (raw)

Hi,

Thanks to those who gave help with this.  I still haven't reached
Nirvana though.  I'd like to use 'regular' shell mode (M-x shell),
unless some other mode is preferred for doing serious bash shelling.
I put this in my .emacs:

(setq shell-cd-regexp "cd.*")

This should make the shell think anything starting with cd is a change
dir. command.  In my .bashrc I set an alias:

alias cder='cd ~/elvis/runs'

>From shell, cder indeed works (i.e., the shell thinks I'm in the new
dir).  However, emacs always thinks I've cd'ed to ~.  The same thing
happens if I write out the full path and don't use ~ in the alias def.

So it seems emacs is interpreting all these aliases as being
equivalent to a bare 'cd', which of course moved to ~.  Maybe I
mis-understood what shell-cd-regexp does....

The functionality I want is having a bunch of 5 or 6 char aliases that
take me to some god-forsaken dirs buried in the filesystem, and I want
emacs to know where I'm going.  How do I do this?

Thanks again,
Dave

             reply	other threads:[~2007-04-24  0:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-24  0:38 David Strozzi [this message]
2007-04-24  8:51 ` emacs current directory when shell commands change Peter Dyballa
2007-04-24 11:36 ` Kai Grossjohann
2007-04-24 11:37 ` Kai Grossjohann

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=f21763420704231738q32d77194yf25678faeb867b07@mail.gmail.com \
    --to=david.strozzi@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.