all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: David Strozzi <david.strozzi@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs current directory when shell commands change
Date: Tue, 24 Apr 2007 10:51:50 +0200	[thread overview]
Message-ID: <33731357-B3DD-47BD-A095-BE164EADC31A@Web.DE> (raw)
In-Reply-To: <f21763420704231738q32d77194yf25678faeb867b07@mail.gmail.com>


Am 24.04.2007 um 02:38 schrieb David Strozzi:

> 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....

IMO this is the case. The variable is meant to make alias names of  
pushd or popd be the same as pushd or popd. When your alias cder is a  
cd plus an argument, a directory's name, then GNU Emacs fails: it  
sees cd – and this means: go home!

The work-around would be to have a stack of directories with you and  
you just pop the one you want to go to. (T)csh has the ~/.cshdirs  
file (or the file $dirsfile is pointing to). Bash has a very  
comfortable dirs command, but I don't see how its DIRSTACK is filled  
at startup ... by simple assignment?

--
Greetings

   Pete

To most people solutions mean finding the answers. But to chemists  
solutions
are things that are still all mixed up.

  reply	other threads:[~2007-04-24  8:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-24  0:38 emacs current directory when shell commands change David Strozzi
2007-04-24  8:51 ` Peter Dyballa [this message]
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=33731357-B3DD-47BD-A095-BE164EADC31A@Web.DE \
    --to=peter_dyballa@web.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.