unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nix <nix@esperi.org.uk>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Alan Mackenzie <acm@muc.de>, chad <yandros@mit.edu>,
	Deniz Dogan <deniz@dogan.se>,
	emacs-devel@gnu.org
Subject: Re: Is it time to create more subdirs in lisp/?
Date: Tue, 20 Sep 2011 14:58:46 +0100	[thread overview]
Message-ID: <87obyfl3hl.fsf@spindle.srvr.nix> (raw)
In-Reply-To: <jwvsjo9a6fq.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 06 Sep 2011 14:13:34 -0400")

On 6 Sep 2011, Stefan Monnier outgrape:

>>> […] 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).
>
>> zsh has a completion system like this with pretty nice feature set
>> and a fair bit of real-world experience, if anyone is looking for a model.
>
> I'm a long time zsh user, but AFAIK zsh has fairly simple
> completion support.  You can program the completion system à la
> pcomplete (i.e. to instruct zsh which completion table to use for the
> various args of the commands you use), but the completion itself is only
> using prefix completion and/or cycling in my experience.

It's... grown (perhaps 'metastasized' would be a better term). ls
l/pcm*el can autocomplete to lisp/pcomplete.el easily. It does prefix,
suffix and infix completion, environment vbariable completion, fuzzy
spelling correction, automatic recursion, you name it. It can display
menus, even multilevel ones, grouped in various ways as well as using
prefix completion or cycling.

You may find 'compinstall' interesting to play with.

> If there's more to it, I'd love to hear about it (admittedly, I haven't
> looked at zsh's doc in recent years so I may have missed such new
> features).

Shall we say that the zsh autocompletion system is now largely written
*in* zsh, has multiple layers (high-level and low-level, with the high-
level layer providing the display frontends to the low-level potential-
completion-computation layer) and occupies more than half the 500-page
manual. It's the single most hilariously overdesigned completion system
I have ever heard of, knocking Emacs off the perch which should rightly
belong to it :)

-- 
NULL && (void)



  reply	other threads:[~2011-09-20 13:58 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87obyfl3hl.fsf@spindle.srvr.nix \
    --to=nix@esperi.org.uk \
    --cc=acm@muc.de \
    --cc=deniz@dogan.se \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=yandros@mit.edu \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).