[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ordering *Completions* by time could make life easier sometimes
From: |
Kevin Rodgers |
Subject: |
Re: ordering *Completions* by time could make life easier sometimes |
Date: |
Tue, 27 Nov 2001 17:11:17 -0700 |
Dan Jacobson wrote:
>
> OK, were editing a file and we want to insert this other file we just
> made but forgot the name of, but not to worry, it's in the current
> directory:
>
> C-x i tab tab tab tab tab tab tab
>
> there we go, plowing thru lots of names [were in $HOME, and first we
> see the dot files, etc. etc. snore] in the scrolling *Completions*
> buffer.
>
> However, if they were time ordered, not alphabetically, I would know
> the answer at first glance. Yes, not every time we want date over
> alphabetically, but at least there should be some toggle key...
I think this would be pretty easy to implement in Emacs Lisp by advising
file-name-all-completions, were it not for the fact that fileio.c:
Fread_file_name_internal() calls it via its C binding
return Ffile_name_all_completions (name, realdir);
instead of via its Lisp binding
{
Lisp_Object args[3];
args[0] = intern ("file-name-all-completions");
args[1] = name;
args[2] = realdir;
return Ffuncall (3, args);
}
--
Kevin Rodgers <kevinr@ihs.com>