all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: alinsoar@voila.fr
Cc: 3846@emacsbugs.donarmstrong.com
Subject: bug#3846: *shell-mode* error
Date: Tue, 14 Jul 2009 14:03:05 -0400	[thread overview]
Message-ID: <5mfxcz5ehy.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <8491154.2309531247582054820.JavaMail.www@wwinf4621> (A. Soare's message of "Tue, 14 Jul 2009 16:34:14 +0200 (CEST)")

tags 3864 moreinfo
stop

"A. Soare" wrote:

> On the contrary, when I memorize the current directory (X) using
> pushd, then I make cd <new_dir>, then I execute popd, the
> *Completion* buffer will show the files from the directory
> <new_dir>, even I executed in the meantime popd. It should have
> displayed the files from X...

The precise recipe is missing, but the following sequence:

emacs -Q -f shell
cd /tmp
pushd

is not a valid sequence in the bash shell, because pushd with no
arguments exchanges the top two elements in the directory stack, and
the directory stack is empty at this point.

This on the other hand works fine, as it should:

emacs -Q -f shell
cd /tmp
pushd /usr
cd bin
popd


If you are using tcsh with pushdtohome set, you want to set
shell-pushd-tohome.

You need to provide a recipe from emacs -Q that says what the problem
is, what your shell is, and any relevant shell options you have set.





  reply	other threads:[~2009-07-14 18:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-14 14:34 bug#3846: *shell-mode* error A. Soare
2009-07-14 18:03 ` Glenn Morris [this message]
2011-07-11 19:51   ` Glenn Morris
  -- strict thread matches above, loose matches on Subject: below --
2009-07-15  8:39 A. Soare

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=5mfxcz5ehy.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=3846@emacsbugs.donarmstrong.com \
    --cc=alinsoar@voila.fr \
    /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.