unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3846: *shell-mode* error
@ 2009-07-14 14:34 A. Soare
  2009-07-14 18:03 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: A. Soare @ 2009-07-14 14:34 UTC (permalink / raw)
  To: Emacs   Bug  [bug-gnu-emacs]


When I change the current directory using "cd new_dir", the tab-completion will recognize the new directory. For example, supposing that I am in pwd=X and I execute "cd /root". Then ls <tab> will show the correct answer in *Completion* (the files from /root).

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

Can somebody solve this bug, please? I do not have time to watch the code now...


Thanks,

A Soare 




*************************************

Nous demandons juste que les leaders mondiaux ne soutiennent pas Poutine. Chaque fois qu'ils le rencontrent officiellement, ils lui offrent des outils très puissants de propagande.

Je prends mes précautions: je ne vais jamais au restaurant, sauf si le chef est un ami. Je ne voyage jamais par Aeroflot (la compagnie aérienne nationale russe, ndlr). Si je le fais, j'évite de manger ou de boire par peur d'être empoisonné. Mais vous savez, ce n'est pas la peur qui compte, ce qui est important, c'est de pouvoir la surmonter...

Garry Kasparov



____________________________________________________

Le week-end sera pluvieux ? Quel dommage !... Mais pas de panique le nouveau Guide TV de Voila est là  http://tv.voila.fr








^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#3846: *shell-mode* error
  2009-07-14 14:34 bug#3846: *shell-mode* error A. Soare
@ 2009-07-14 18:03 ` Glenn Morris
  2011-07-11 19:51   ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2009-07-14 18:03 UTC (permalink / raw)
  To: alinsoar; +Cc: 3846

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#3846: *shell-mode* error
@ 2009-07-15  8:39 A. Soare
  0 siblings, 0 replies; 4+ messages in thread
From: A. Soare @ 2009-07-15  8:39 UTC (permalink / raw)
  To: Glenn Morris


Thanks.

I cannot reproduce the bug today, but it happened to me many times, and it will happen again. I will report in detail.




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

____________________________________________________

Le week-end sera pluvieux ? Quel dommage !... Mais pas de panique le nouveau Guide TV de Voila est là  http://tv.voila.fr







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#3846: *shell-mode* error
  2009-07-14 18:03 ` Glenn Morris
@ 2011-07-11 19:51   ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2011-07-11 19:51 UTC (permalink / raw)
  To: 3846-done


This bug is being closed because it could not be reproduced and there
was no response to a request for more information.
If you reply with the requested information it can be reopened if needed.

You can view the whole report at http://debbugs.gnu.org/BUGNUMBER

Glenn Morris wrote:

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-11 19:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 14:34 bug#3846: *shell-mode* error A. Soare
2009-07-14 18:03 ` Glenn Morris
2011-07-11 19:51   ` Glenn Morris
  -- strict thread matches above, loose matches on Subject: below --
2009-07-15  8:39 A. Soare

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).