From: "Drew Adams" <drew.adams@oracle.com>
To: <rms@gnu.org>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: RE: should `minibuffer-complete' use `abbreviate-file-name'?
Date: Sun, 14 Oct 2007 09:56:20 -0700 [thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACAEKFCDAA.drew.adams@oracle.com> (raw)
In-Reply-To: <E1Ih6KU-0000FE-RO@fencepost.gnu.org>
> I don't see how that contradicts what I said either. In the
> user's use case that I cited, FROM is ^/exe and TO is
> /very-long-path-here/exe. Both FROM
> and TO are equivalent names in terms of their effect, and
> both effectively
> refer to the same directory, /very-long-path-here/exe.
>
> I guess I do not understand your proposed usage.
> I thought I did, but I can't follow this.
I didn't propose any particular usage. I described one user's use of this as
an abbreviation mechanism for directory names, but unrelated to symlinks.
His usage:
FROM: Any easy-to-type and mnemonic regexp that matches
a syntactically valid directory name, whether or not
such a directory exists. Example: "^/proj1".
TO: An (absolute) name of an existing directory.
Example: "/a/very/long/dir/name/to/my/project".
FROM and TO are equivalent, in that they have the same effect. TO is a valid
directory name and FROM matches a syntactically valid directory name, even
if no such directory exists. In the user's case, TO names an existing
directory.
So far, I've described no proposal wrt this. This already works, without
problem. He uses this with `find-file': C-x C-f /proj1 RET visits the (real)
directory /my/very/long/dir/name/to/a/project. This saves him time. Yes,
there are other possible abbreviation mechanisms, but this one is also
useful in this way.
His proposal, which I relayed to the list, is this: Let completion do the
same thing, so that C-x C-f /proj1 TAB completes to
/my/very/long/dir/name/to/a/project.
The only change needed is for TAB (`minibuffer-complete') to call
`abbreviate-file-name' (for file-name completion only, of course).
I don't want to belabor this. I think his idea is a good one. My question to
the list was whether there would be any important downsides to such a
feature. FWIW, I added this feature to Icicles, and I haven't had any
complaints.
next prev parent reply other threads:[~2007-10-14 16:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-02 19:25 should `minibuffer-complete' use `abbreviate-file-name'? Drew Adams
2007-10-03 18:37 ` Richard Stallman
2007-10-12 19:27 ` Drew Adams
2007-10-12 19:42 ` Stefan Monnier
2007-10-12 20:34 ` Drew Adams
2007-10-13 3:50 ` Stefan Monnier
2007-10-13 6:03 ` Drew Adams
2007-10-13 14:14 ` Richard Stallman
2007-10-13 15:06 ` Drew Adams
2007-10-14 16:28 ` Richard Stallman
2007-10-14 16:56 ` Drew Adams [this message]
2007-10-14 19:10 ` Stefan Monnier
2007-10-15 16:04 ` Richard Stallman
2007-10-15 16:25 ` Drew Adams
2007-10-15 18:04 ` Stefan Monnier
2007-10-15 18:19 ` Drew Adams
2007-10-16 4:10 ` Richard Stallman
2007-10-14 1:41 ` Stefan Monnier
2007-10-15 1:36 ` Richard Stallman
2007-10-13 9:50 ` Juanma Barranquero
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=BNELLINCGFJLDJIKDGACAEKFCDAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rms@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.