all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Suraj Acharya <sacharya@bea.com>
Subject: Re: Filename completion for the 'file widget
Date: Tue, 24 Aug 2004 17:35:52 -0700	[thread overview]
Message-ID: <cggmt8$nji$1@sea.gmane.org> (raw)
In-Reply-To: <412BD771.7010601@yahoo.com>

Kevin Rodgers wrote:
> Suraj Acharya wrote:
>  > Since I prefer this second non-expanding behavior I managed to get it to
>  > 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.  I was going to suggest something like

Why do you say it's not right? It gives me the behavior I expect, ie 
relative paths stay relative and I still get completion for them. It 
uses default-directory for the current buffer as the base for the 
relative path completion.

> 
>     (file-relative-name (expand-file-name completion directory) directory)
> 
> but I realized that's equivalent to just completion, so I took a look
> at the code in wid-edit.el.  But it's not clear to me (1) why
> widget-file-complete expands the pattern nor (2) why it can safely
> assume the pattern has a non-nil directory that can be passed as the
> second arg to file-name-completion.
> 

(2) is definitely a bug. Asking for completion in a blank 'file widget 
gives "let*: Wrong type argument: stringp, nil" in the minibuffer.

  reply	other threads:[~2004-08-25  0:35 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 [this message]
2004-08-25 16:33     ` Kevin Rodgers
2004-08-25 22:34       ` Suraj Acharya
2004-08-25  2:31   ` Stefan
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='cggmt8$nji$1@sea.gmane.org' \
    --to=sacharya@bea.com \
    /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.