From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: transient Date: Mon, 4 May 2020 19:05:31 +0100 Message-ID: References: <87368npxw4.fsf@bernoul.li> <83tv12zjx1.fsf@gnu.org> <20200429101755.GF24737@tuxteam.de> <838sicw4do.fsf@gnu.org> <83zhaqu89z.fsf@gnu.org> <83sggiu2p9.fsf@gnu.org> <83r1w2s9wi.fsf@gnu.org> <83v9leqmss.fsf@gnu.org> <83zhapoz63.fsf@gnu.org> <0a13f7e1-61c7-1e78-22bc-a27c15c269e7@yandex.ru> <83h7wxotix.fsf@gnu.org> <18096f9a-c617-f37b-cdaa-1a6198db2e1c@yandex.ru> <83a72porka.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="118892"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , tomas@tuxteam.de, Stefan Monnier , Richard Stallman , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 04 20:07:09 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVfUj-000Uof-L8 for ged-emacs-devel@m.gmane-mx.org; Mon, 04 May 2020 20:07:09 +0200 Original-Received: from localhost ([::1]:41052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVfUi-0008Dd-MS for ged-emacs-devel@m.gmane-mx.org; Mon, 04 May 2020 14:07:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVfTO-0007FP-DY for emacs-devel@gnu.org; Mon, 04 May 2020 14:05:46 -0400 Original-Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:39149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVfTN-0001EO-Dg; Mon, 04 May 2020 14:05:46 -0400 Original-Received: by mail-io1-xd29.google.com with SMTP id w4so13318733ioc.6; Mon, 04 May 2020 11:05:44 -0700 (PDT) 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=yEa1tLLweXBRCNQSWdQ23MgkFscOAdfrslO0I2Mla3I=; b=hBUCEVJexGVPqYpjQq9IOenoeDz0VmiNLar+FpXX3vwQeGWswlxqbMgCBPddE/aB9P fGwbv74rp1ryzymDlILt9x0L7DFechF8unS9hCcITbHIsy/inuiOz3iDr/9Riqs5lR9/ P3+ncXQotSIYbrk05KhWFLMPJp11Sdrky58bzu+LY+OSnuAHSNfYZtyjM305bRO0Lxya NgUg+f37MPfnCJIzerP5gGhJO05UshmmAfp9QJRJ1Cd1fCPZwPIRpzmWq7RXtu8cvkNp yF9SInbKsdHZTgVI0+aeT64rSYC2thrRQO1QIhcybst9zaDlV0BZqRoSRN2SD/YFFQXT JxzQ== 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=yEa1tLLweXBRCNQSWdQ23MgkFscOAdfrslO0I2Mla3I=; b=Efyma66zlN5hkuxibs88FwR0nq2HOtNJscdgIV8aU1rkhGA9OwXb6Al7NJbyOA7+99 +Z5GlUhhmBKzZO56/y8RTTHgW+Hq3RYjhNBO3OJ14kLc3bUc3SMf7wWxAc0faWxtWm7/ HFxL7kn79gTYN6d7vIf1DQ9Jd8giLto5LExobOAh5Qu0XDLwYXVpMUe7Sm7raXGtDSbg /k+F5CyUyZ3UuqZhA4eyrC80Xi+MX03Mro06d2x7bt6KgWL7twwyfy98V5sJAQKtOJ2v 6nOSrbJvfgUZ2W877d/N/sr9BWqddAxGLK5OSEFn5xH6NmshGGSIpDbIEbRxdU9enNdI tllA== X-Gm-Message-State: AGi0Pubq3qBv16AAzgXsSF8Eax3mtWtqV9AaownJVqfUWLjSqXWmt3c8 PEVsLL7NkbWNP7OunqGJl88pevOXKYZd5UUVAKE= X-Google-Smtp-Source: APiQypIuQCbs2WgkGR7NdjO8Ig2t9RY1jUlh2sGDzsvnmIGsh66zMQKXmJboxnng6NOXZKbX9OvglzHzni0mPSPFdAs= X-Received: by 2002:a6b:6a13:: with SMTP id x19mr16584556iog.175.1588615543570; Mon, 04 May 2020 11:05:43 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::d29; envelope-from=joaotavora@gmail.com; helo=mail-io1-xd29.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248891 Archived-At: On Mon, May 4, 2020 at 2:28 AM Dmitry Gutov wrote: > I gave some what I see as suboptimal examples. In this case, it's that, > for example, rot13-string is sorted before string-to-syntax or > string-prefix-p. But that's easy to fix: just ding all non-prefix > matches's scores by 1. Not horrible, but I'd rather boost by "also mentioned in the manual" than penalize prefixes/suffixes. Doing so would demote rot13-string, lgstring-char, ad-docstring, for example. Doing what you propose can be seen as yet another way for the completion system to opine on how things should be named. And that's fundamentally _not_ the problem we're trying to solve. Again, as far as I understand we're trying to solve "how do discover related things" and "how to quickly reach for things you know exist but don't can't predict/remember the name". I think substring/flex completion (with those extra sprinkles) is the best way to do the latter. It _can_ serve decently for the former, but I personally prefer the manual for that. > > into the sorting/grouping of completion results. Newbies prefer > > API lists by topic? Then let's make those pretty lists from the > > manual, again. > I'm curious to see how that would look in code. I think we would have to enhance the @defun macro to collect the definition into the a structure the organizes definitions by node current node. Then dump that information in some section of the elisp manual. I thought the @defun macro was under our control, but it's not. No idea if Texinfo allows redefinition of macros, and in fact very little idea of how Texinfo works at all, but I this kind of things doesn't look very hard to do. Maybe Eli would like to comment. Jo=C3=A3o