all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
To: "David Strozzi" <david.strozzi@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs current directory when shell commands change directory
Date: Sat, 21 Apr 2007 03:16:11 +0200	[thread overview]
Message-ID: <87k5w6wmqs.fsf@debby.local.net> (raw)
In-Reply-To: <f21763420704201135g5cdc6e7ema24db5ce28c51eaf@mail.gmail.com> (David Strozzi's message of "Fri\, 20 Apr 2007 11\:35\:14 -0700")

"David Strozzi" <david.strozzi@gmail.com> writes:

> Hi,
>
> I and others have a minor problem with emacs' shell mode.  Suppose you
> use commands (namely aliases) that change the current directory.
> Emacs doesn't realize the working dir has changed.  If one were to
> manually type 'cd dir', then 'M-x pwd' tells you the right dir.  But
> after running an alias to 'cd dir', 'M-x pwd' think you're in the
> starting dir.  This de-syncs tab completion, file opening, etc from
> where you 'really' are in the shell.  Of course, the shell correctly
> changes the working dir when aliases are run.
>
> Any way around this?

I checked it with "M-x eshell" and in this shell it works.

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

      parent reply	other threads:[~2007-04-21  1:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-20 18:35 emacs current directory when shell commands change directory David Strozzi
2007-04-20 19:08 ` Peter Dyballa
2007-04-21  7:21   ` Daniel Rubin
2007-04-21  1:16 ` Dieter Wilhelm [this message]

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=87k5w6wmqs.fsf@debby.local.net \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=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.