unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Francois Fleuret <francois.fleuret@idiap.ch>
Cc: emacs-devel@gnu.org
Subject: Re: A dynamic pattern-matching
Date: Tue, 03 Mar 2009 20:11:54 -0500	[thread overview]
Message-ID: <jwv8wnm6qql.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <18861.41519.484433.255547@moose.fleuret.org> (Francois Fleuret's message of "Tue, 3 Mar 2009 22:33:35 +0100")

>> - it'd be easy to write a variant of icomplete-mode that addresses
>> point 1 by using a separate buffer (which we'd call
>> "*Completions*").

> Well, that's not clear to me. IIUC completing-read and other functions
> of that kind blocks the calling program until the user makes up his
> mind, while my selector/select uses a callback.

> In fact, is it really desirable to use that selector in place of the
> standard completion functions ? My idea was more to provide an
> alternative to recentf-open-files and switch-buffer.

Yes, both issues relate to "point 6", i.e. the API.
Yours is non-modal (well, the minibuffer is not 100% modal, since you
can do something else while a minibuffer is open, especially if you set
enable-recursive-minibuffers, but it imposes a strict nesting).

The idea of integrating the two, is that users can then use yours
without changing the corresponding code to use your API.  Users could
choose which interaction mode to use for which commands.  Or even
provide a command to dynamically switch interaction mode directly from
the minibuffer.

>> - point 4 can be simulated by adding a "*" at the beginning of
>> the pattern.  Or we could add a `substring' completion-style.
> Yes. But I would vote for having a variable that specifies how the
> typed pattern has to be interpreted { substrings, regexp,
> leadingstring } or something.
>> - point 5 hopefully can be implemented as a completion-style.
> Not sure to understand what you do mean here.

To get a vague idea of what I'm talking about check
`completion-styles' as well as `completion-styles-alist'.


        Stefan




  reply	other threads:[~2009-03-04  1:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03  8:23 A dynamic pattern-matching Francois Fleuret
2009-03-03 19:16 ` Stefan Monnier
2009-03-03 21:33   ` Francois Fleuret
2009-03-04  1:11     ` Stefan Monnier [this message]
2009-03-03 21:52   ` Vagn Johansen

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=jwv8wnm6qql.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=francois.fleuret@idiap.ch \
    /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).