all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: cd to the user's home dir
Date: Sun, 18 May 2014 23:36:19 +0200	[thread overview]
Message-ID: <87ha4m6a7g.fsf@debian.uxu> (raw)
In-Reply-To: mailman.1577.1400447529.1147.help-gnu-emacs@gnu.org

Andrey Tykhonov <atykhonov@gmail.com> writes:

> I would like to be able to `cd' into the user's home
> directory in the same way as I can `cd' in the shell:
>
> cd ~admin
>
> I try in Emacs:
>
> M-x cd RET ~admin RET
>
> but it doesn't work. Emacs seems doesn't provide such
> functionality. Am I wrong?

`cd' changes the "default directory" of the current
buffer - e.g., so when you `find-file' in that buffer,
the prompt will by default be pointed at that
directory, as the most likely place you would want to
look.

I don't really get what you want - with dired, to show
the home directory's files:

(dired "~")

or perhaps:

(dired (getenv "HOME"))

- is that what you look for?

-- 
underground experts united:
http://user.it.uu.se/~embe8573


       reply	other threads:[~2014-05-18 21:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1577.1400447529.1147.help-gnu-emacs@gnu.org>
2014-05-18 21:36 ` Emanuel Berg [this message]
     [not found]   ` <87bnuupxib.fsf@gmail.com>
2014-05-18 21:56     ` cd to the user's home dir Emanuel Berg
2014-05-18 22:58   ` Andrey Tykhonov
2014-05-18 23:31     ` Bob Proulx
2014-05-19  0:32       ` Andrey Tykhonov
2014-05-19  0:54         ` Drew Adams
2014-05-19  1:02         ` Bob Proulx
2014-05-19  1:27           ` Drew Adams
2014-05-19  6:07     ` Andreas Röhler
2014-05-19 14:50       ` Eli Zaretskii
     [not found]   ` <mailman.1584.1400453956.1147.help-gnu-emacs@gnu.org>
2014-05-18 23:12     ` Emanuel Berg
2014-05-18 21:11 Andrey Tykhonov

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=87ha4m6a7g.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --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.