all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alan Mackenzie <acm@muc.de>
Cc: Deniz Dogan <deniz@dogan.se>, emacs-devel@gnu.org
Subject: Re: Is it time to create more subdirs in lisp/?
Date: Fri, 02 Sep 2011 09:01:25 -0400	[thread overview]
Message-ID: <jwvk49r14x0.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20110902091157.GA2770@acm.acm> (Alan Mackenzie's message of "Fri, 2 Sep 2011 09:11:57 +0000")

> I've been in proprietary projects with around 20,000 files in them, all
> in directories with ~8-10 files in each.  Visiting a file in such a
> hierarchy is a nightmare, as you have to enter, perhaps, 6 successive
> directory names to get there.  That's a lot of names to have to navigate
> through.

I think we all agree on this, yes.  Luckily in Emacs we get to choose
"f(l)at" trees which work best with our default file-selector.  OTOH it
would also be good for Emacs to be able to better handle such
deep hierarchies.

Currently, the file-selector offers the possibility to type "~/e/e/e
TAB" or even "~/eee TAB" to mean "~/etc/emacs/emacs.el", but it'd be
good to be able to go further (maybe not as default, but via some new
completion-style).

E.g. to allow "**/fo TAB" to complete to some file starting with "fo" in
some subdirectory.  Or maybe even to let "a/fo TAB" to complete to
a file with prefix "fo" in a subdirectory of a subdirectory with prefix
"a" (e.g. "toto/apple/blabla/foo.el").

The difficult part is likely to be how to handle the performance issue,
e.g. make sure we only do recursive searches when the user intends to do
such a thing.  Also probably do the search breadth-first to avoid
spending too much time in some deep irrelevant subtree.


        Stefan



  parent reply	other threads:[~2011-09-02 13:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-01  5:44 Is it time to create more subdirs in lisp/? Deniz Dogan
2011-09-01  8:35 ` Juri Linkov
2011-09-02  2:17   ` Richard Stallman
2011-09-02  1:59 ` Stefan Monnier
2011-09-02  9:11 ` Alan Mackenzie
2011-09-02  9:39   ` Richard Riley
2011-09-02 10:13     ` Deniz Dogan
2011-09-02 13:01   ` Stefan Monnier [this message]
2011-09-02 17:52     ` chad
2011-09-04 15:30       ` Kan-Ru Chen
2011-09-06 18:13       ` Stefan Monnier
2011-09-20 13:58         ` Nix
2011-09-21  1:24           ` Stephen J. Turnbull
2011-09-21  9:40           ` chad
2011-09-02 16:26   ` Bill Wohler

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=jwvk49r14x0.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=acm@muc.de \
    --cc=deniz@dogan.se \
    --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.