all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Setting current directory: no such file or directory
@ 2006-06-15 15:18 RjjdBae
  2006-06-16 10:25 ` Peter Dyballa
       [not found] ` <mailman.2938.1150454398.9609.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: RjjdBae @ 2006-06-15 15:18 UTC (permalink / raw)


In a shell window, my `pwd` is /a/b/c/d.
I then rename directory "c":
cd ../..
mv c x

Then every time I enter a <RET> or execute shell-command, I get
"Setting current directory: no such file or directory, ...".  The
message lists the path /a/b/c/d/e/f, i.e. a directory below the current
one, where I had been.

I can change the value of default-directory by executing the emacs
command "cd", but the problem persists.

Any ideas on what to set?

I am
GNU Emacs 21.2.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2003-02-20 on porky.devel.redhat.com

(Thanks for all past help!)
Regards, Bob

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

* Re: Setting current directory: no such file or directory
  2006-06-15 15:18 Setting current directory: no such file or directory RjjdBae
@ 2006-06-16 10:25 ` Peter Dyballa
       [not found] ` <mailman.2938.1150454398.9609.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2006-06-16 10:25 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 15.06.2006 um 17:18 schrieb RjjdBae:

> Any ideas on what to set?

When you've launched GNU Emacs from /a/b/c/d you should not rename  
any directory above d. Every application will get confused when it  
sees that its working directory has vanished. Yes, Emacs still thinks  
it is at home in /a/b/c/d and it won't learn /a/b/x/d because /a/b/c/ 
d is 'hard wired' in memory, inside the process.

So there is nothing to set, but something to leave, i.e. not to perform.

--
Greetings

   Pete

The most exciting phrase to hear in science, the one that heralds new  
discoveries, is not "Eureka!" (I found it!) but "That's funny..."
                                       Isaac Asimov

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

* Re: Setting current directory: no such file or directory
       [not found] ` <mailman.2938.1150454398.9609.help-gnu-emacs@gnu.org>
@ 2006-06-16 15:05   ` RjjdBae
  2006-06-17  8:40     ` Peter Dyballa
  0 siblings, 1 reply; 4+ messages in thread
From: RjjdBae @ 2006-06-16 15:05 UTC (permalink / raw)


Thanks, Peter,

What you say makes sense, and it would excuse me from trying to figure
out what to do, but when I start emacs, default-directory's value is
~/, and ifI start a "shell" or a "term" window immediately after
starting emacs, "pwd" shows (the expansion of) "~/".  In other words, I
did not start emacs from /a/b/c/d.

Does that imply that somewhere, something has decided to change
default-directory?  Can I tell it to mind its own business?

Bob

Peter Dyballa wrote:
> Am 15.06.2006 um 17:18 schrieb RjjdBae:
>
> > Any ideas on what to set?
>
> When you've launched GNU Emacs from /a/b/c/d you should not rename
> any directory above d. Every application will get confused when it
> sees that its working directory has vanished. Yes, Emacs still thinks
> it is at home in /a/b/c/d and it won't learn /a/b/x/d because /a/b/c/
> d is 'hard wired' in memory, inside the process.
>
> So there is nothing to set, but something to leave, i.e. not to perform.
>
> --
> Greetings
>
>    Pete
>
> The most exciting phrase to hear in science, the one that heralds new
> discoveries, is not "Eureka!" (I found it!) but "That's funny..."
>                                        Isaac Asimov

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

* Re: Setting current directory: no such file or directory
  2006-06-16 15:05   ` RjjdBae
@ 2006-06-17  8:40     ` Peter Dyballa
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2006-06-17  8:40 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 16.06.2006 um 17:05 schrieb RjjdBae:

> Does that imply that somewhere, something has decided to change
> default-directory?  Can I tell it to mind its own business?

I can only think of you ... Things usually are there and do not do  
anything. Use this weekend to explore and understand your .emacs file  
and particularly its customisations section. Although I've had the  
situation when GNU Emacs has lost track of current working directory,  
I *am* sure that it was *my* fault, but I never tried to find the  
cause of my misbehaviour.

--
Greetings

   Pete

The problem with the French is that they don't have a word for
«entrepreneur».                              - George W. Bush

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

end of thread, other threads:[~2006-06-17  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-15 15:18 Setting current directory: no such file or directory RjjdBae
2006-06-16 10:25 ` Peter Dyballa
     [not found] ` <mailman.2938.1150454398.9609.help-gnu-emacs@gnu.org>
2006-06-16 15:05   ` RjjdBae
2006-06-17  8:40     ` Peter Dyballa

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.