From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: new-flex-completion-style Date: Thu, 14 Feb 2019 20:54:10 +0000 Message-ID: References: <20190202232827.27331.87300@vcs0.savannah.gnu.org> <20190202232828.4AE452159A@vcs0.savannah.gnu.org> <87lg2mynrg.fsf@gmail.com> <871s4czm5n.fsf@gmail.com> <1f4513ab-cd39-4543-9b1a-743e1307dd54@default> <23b6cda2-0f37-4c41-b664-5353505c0cd1@default> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="218519"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Daniel Pittman , Stefan Monnier , emacs-devel To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 22:10:05 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guOGi-000ug4-KW for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 22:10:04 +0100 Original-Received: from localhost ([127.0.0.1]:55054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guOGh-0000zh-Jp for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 16:10:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guOC6-0005lw-BG for emacs-devel@gnu.org; Thu, 14 Feb 2019 16:05:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guO1u-0003FY-BK for emacs-devel@gnu.org; Thu, 14 Feb 2019 15:54:48 -0500 Original-Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:39238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guO1n-0002rN-5s for emacs-devel@gnu.org; Thu, 14 Feb 2019 15:54:46 -0500 Original-Received: by mail-qk1-x72e.google.com with SMTP id x6so4457982qki.6 for ; Thu, 14 Feb 2019 12:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hMqigBnCUH2oaNCixmrndOsxDa7oTVN/3VHd6fOQOgk=; b=pvKDo+Lrbk4tvK3Px4InU/dOTnRKxe67ALjlp3iR/XErG2gjPHuH55QJQDY4kwi0Am lORBogsO7DVI3EOlUq7JLDlsZCyZ5FdMYSnAI0iAmrMVtvmTIPjG4bkCX1ewSYM8V1+Y zmlLiKsXuc77EVl/huuzKtF7bnBfBtMPGR2iDMVayTpR/MqnimnZczpHO+YEoIGCo+2L H08BQTt5v80jbSHQVoGf8eiJ92ivC2uj7rxzeLxdKJVZoJg+DapWkHlVct5ueLMSDXEH W5l8K0RQLwcXAtcmFvObyBtdyFVqJhaijScA0z99Bf0pEY5s+DSfN/v7cvI+NlmrX6iA llMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hMqigBnCUH2oaNCixmrndOsxDa7oTVN/3VHd6fOQOgk=; b=mkZCUBAGVJ/Yd9ripWXucHGMCeu4KTI8GiUswb5lEHsNP3eLaOf9hc6S0ST/UNqSqZ 3Q2jhttDvRAunOk8I2mtO7T+bcR/Cxgx8qZdc3VZZcPBtVfk5XYMwz8giaQGB36iaQZn tQDdPXGqWnGAsdydkYF7o6CGozNUXG6azlUo6Oo3W7aYXlY5Rlr3YTrAqoOTT2GdqeXl wGy5BTfn26sdy5IvL+vX/apCHq1RKoumzpBwIryCwWv3yi8XY+YA1LYTnXMjxz/Zbi7F cqv3+uAo1GyG48D3xxd8X6Tfo+xA4SiUmA3l7HeXyJDhM8HhzUv5cbngu+5Ue292WrTW gz8w== X-Gm-Message-State: AHQUAubg6m0W1AW49Ur458LHu0hFg6paUxyabryYI386umE/sTLlnthN LoTKVXuYy/Ogqg6sHR2mdcp4Ixg/8qKzSJMGZJw= X-Google-Smtp-Source: AHgI3IZQawhMIGiPjypcPLKII4PQx5ZjKFilhgEployZ1CKXk2Nz1wCyiFQuYAm1u57faD1YNe6etUpmQfk22BfLwNo= X-Received: by 2002:ae9:d804:: with SMTP id u4mr4502017qkf.322.1550177663279; Thu, 14 Feb 2019 12:54:23 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233345 Archived-At: On Thu, Feb 14, 2019 at 7:20 PM Drew Adams wrote: > > If so, then I think your _equivalent_ regexp is probably .*f.*o.*o.* > (string-match-p "f.*o.*o" "barfoobaz") =3D> 3 Right, sorry for the confusion. > Can you see that some of the following predefined orders > might be advantageous in particular contexts/use cases? > Can you see that whether matching is scatter, regexp, > basic prefix, or others, any of the following can be > useful? No, I can't. That's probably input for the style vs category vs table vs UI debate, where I'd rather, like Stefan, go for the path of least redesign which seems to plug sorting to a style. Perhaps I'll change my opinion with specific use cases where using my proposed sorting function with flex isn't a good solution. Thanks anyway, Jo=C3=A3o Jo=C3=A3o T=C3=A1vora