all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Filename completion for the 'file widget
Date: 24 Aug 2004 22:31:48 -0400	[thread overview]
Message-ID: <m1brh0gdgf.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <412BD771.7010601@yahoo.com>

>> work on my local machine by using (concat directory completion) in place
>> of (expand-file-name completion directory) in widget-file-complete.
> That doesn't seem right.

But I think it's the only good way.  The normal completion coe uses `concat'
as well.  It should really be something like
(concat (file-name-as-directory dir) completion) to be sure there's a / in
there, and I would argue that it should be made into a function.  Or maybe
change expand-file-name such that you can do something like
(expand-file-name file dir 'relativ)e to prevent `dir' from being
made absolute.

Many pieces of code use concat instead of expand-file-name.  90% of them
should use expand-file-name instead, but the rest can't because it's
important to keep the result non-absolute.  I myself remember settling for
`concat' in pcl-cvs, uniquify, and completion.


        Stefan

  parent reply	other threads:[~2004-08-25  2:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-24  0:59 Filename completion for the 'file widget Suraj Acharya
2004-08-25  0:04 ` Kevin Rodgers
2004-08-25  0:35   ` Suraj Acharya
2004-08-25 16:33     ` Kevin Rodgers
2004-08-25 22:34       ` Suraj Acharya
2004-08-25  2:31   ` Stefan [this message]
2004-08-25 20:35     ` Richard Stallman

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=m1brh0gdgf.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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.