all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Bob Proulx <bob@proulx.com>, help-gnu-emacs@gnu.org
Subject: RE: cd to the user's home dir
Date: Sun, 18 May 2014 18:27:06 -0700 (PDT)	[thread overview]
Message-ID: <590053cd-1525-4a09-807b-2b795626244b@default> (raw)
In-Reply-To: <20140519010231.GA7698@hysteria.proulx.com>

> But playing with it I find that it doesn't work exactly the same as
> find-file completion.  If I have "~/" and I try "~/~rooTAB" it will
> not complete to ~root/.  I must backup first.  "~rooTAB" works.  This
> is slightly different than find-file.  In find-file a slash or tilde
> immediately starts a new path.  In the graphical client it greys out
> the preceding path.  I think cd is enough different from find-file
> that it would classify as a bug against cd because of the
> inconsistency.

Emacs command `cd' tries to act like UNIX/Linux command `cd'.
In particular, it uses environment var `CDPATH' to look things up.

The `find-file' (and related commands) behavior you refer to
is something different. What it does is recognize `~/' as your
home directory (env var `HOME').  And it does so also when it
comes immediately after a slash (`/`) - Emacs then ignores that
slash and whatever precedes it.  (And in recent Emacs versions
it dims that ignored text.)



  reply	other threads:[~2014-05-19  1:27 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 ` cd to the user's home dir Emanuel Berg
     [not found]   ` <87bnuupxib.fsf@gmail.com>
2014-05-18 21:56     ` 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 [this message]
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=590053cd-1525-4a09-807b-2b795626244b@default \
    --to=drew.adams@oracle.com \
    --cc=bob@proulx.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.