unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* RE: Feature branches review please (ivy hello)
@ 2020-11-06 16:30 Drew Adams
  2020-11-06 19:05 ` Jean Louis
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2020-11-06 16:30 UTC (permalink / raw)
  To: Emacs-Devel List

[Forwarding to the list, as it got dropped from
Reply All.]

> >> Again, please try (setq completion-styles (cons 'flex
> >> completion-styles)). With this "foo bar" matches both "foo bar" and
> >> "bar foo" (and also "far boo", "boo far", ...).
> >
> > Does it?
> 
> Hmmm, no, you're right, it doesn't.  I don't use that setting, I tried it
> briefly and wrongly concluded that it worked that way.  What would be
> needed is a "superflex" completion-style where characters can be given in
> any order ;-)

tl;dr: Matching without respect to order in
the target involves multiple separate matches.
___

What's usually called "flex" matching (Icicles
calls it "scatter") just matches bits of the
pattern you provide _in order_, one after the
other.  The matches are scattered throughout
the target, but they are _in order_ there.

To match multiple patterns without regard to
order in the target, you need to match the
patterns separately, each against the original
target or each against the result of previous
matching.

Icicles or library orderless.el provides such
behavior.

With Icicles, you can match a pattern (regexp,
fuzzy, flex, substring, whatever), and then you
can match another pattern ... etc.  Because the
component matches are separate the resulting
overall matches have those component matches in
any order.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature branches review please (ivy hello)
  2020-11-06 16:30 Feature branches review please (ivy hello) Drew Adams
@ 2020-11-06 19:05 ` Jean Louis
  2020-11-06 19:27   ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Louis @ 2020-11-06 19:05 UTC (permalink / raw)
  To: Drew Adams; +Cc: Emacs-Devel List

* Drew Adams <drew.adams@oracle.com> [2020-11-06 19:32]:
> To match multiple patterns without regard to
> order in the target, you need to match the
> patterns separately, each against the original
> target or each against the result of previous
> matching.
> 
> Icicles or library orderless.el provides such
> behavior.

https://www.emacswiki.org/emacs/DrewsElispLibraries

Incremental search on that page does not give me: orderless.el - where
is it?

Jean



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Feature branches review please (ivy hello)
  2020-11-06 19:05 ` Jean Louis
@ 2020-11-06 19:27   ` Drew Adams
  2020-11-08  9:52     ` orderless/bookmarks Jean Louis
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2020-11-06 19:27 UTC (permalink / raw)
  To: Jean Louis; +Cc: Emacs-Devel List

> > Icicles or library orderless.el provides such
> > behavior.
> 
> https://urldefense.com/v3/__https://www.emacswiki.org/emacs/DrewsElispLibrari
> es__;!!GqivPVa7Brio!PeXT38xLaZ0WLPhzhQoy50PH99rQt9z2shHRkvYnymiDP96UbGsrHqcRD
> 1EpQbPv$
> 
> Incremental search on that page does not give me: orderless.el - where
> is it?

It's not one of my libraries.  I mentioned it because,
like Icicles "progressive completion", it lets you get
matches of multiple patterns without respect to order.

Googling "orderless.el" tells me it's here:

https://github.com/oantolin/orderless



^ permalink raw reply	[flat|nested] 4+ messages in thread

* orderless/bookmarks
  2020-11-06 19:27   ` Drew Adams
@ 2020-11-08  9:52     ` Jean Louis
  0 siblings, 0 replies; 4+ messages in thread
From: Jean Louis @ 2020-11-08  9:52 UTC (permalink / raw)
  To: Drew Adams; +Cc: Emacs-Devel List

* Drew Adams <drew.adams@oracle.com> [2020-11-06 22:28]:
> > > Icicles or library orderless.el provides such
> > > behavior.
> > 
> > https://urldefense.com/v3/__https://www.emacswiki.org/emacs/DrewsElispLibrari
> > es__;!!GqivPVa7Brio!PeXT38xLaZ0WLPhzhQoy50PH99rQt9z2shHRkvYnymiDP96UbGsrHqcRD
> > 1EpQbPv$
> > 
> > Incremental search on that page does not give me: orderless.el - where
> > is it?
> 
> It's not one of my libraries.  I mentioned it because,
> like Icicles "progressive completion", it lets you get
> matches of multiple patterns without respect to order.
> 
> Googling "orderless.el" tells me it's here:
> https://github.com/oantolin/orderless

Thank you.

I was also researching bookmark handlers in bookmark.el in built-in
Emacs.

From: bookmark-alist
HANDLER is a function that provides the bookmark-jump behavior for a
specific kind of bookmark instead of the default `bookmark-default-handler'.
This is the case for Info bookmarks, for instance.  HANDLER must accept
a bookmark as its single argument.

I am following it inside as I may wish to use built-in bookmark
functions for storage into database that later may be expanded into
various different formats.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-08  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06 16:30 Feature branches review please (ivy hello) Drew Adams
2020-11-06 19:05 ` Jean Louis
2020-11-06 19:27   ` Drew Adams
2020-11-08  9:52     ` orderless/bookmarks Jean Louis

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).