From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2GMzE1pUOWM5KgAAbAwnHQ (envelope-from ) for ; Sun, 02 Oct 2022 11:05:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SA3yElpUOWPZFgAAauVa8A (envelope-from ) for ; Sun, 02 Oct 2022 11:05:30 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EAB9E3B523 for ; Sun, 2 Oct 2022 11:05:29 +0200 (CEST) Received: from localhost ([::1]:53814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeuue-00078f-Ge for larch@yhetil.org; Sun, 02 Oct 2022 05:05:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeuuE-00078X-Fn for guix-patches@gnu.org; Sun, 02 Oct 2022 05:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeuuE-0000Gs-6a for guix-patches@gnu.org; Sun, 02 Oct 2022 05:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oeuuE-0003ZT-18 for guix-patches@gnu.org; Sun, 02 Oct 2022 05:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58136] [PATCH] ui: Improve sort order when searching package names. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Oct 2022 09:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58136 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Lars-Dominik Braun , 58136@debbugs.gnu.org Received: via spool by 58136-submit@debbugs.gnu.org id=B58136.166470147213686 (code B ref 58136); Sun, 02 Oct 2022 09:05:01 +0000 Received: (at 58136) by debbugs.gnu.org; 2 Oct 2022 09:04:32 +0000 Received: from localhost ([127.0.0.1]:46269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeutj-0003Yg-Vy for submit@debbugs.gnu.org; Sun, 02 Oct 2022 05:04:32 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:40893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeuti-0003YT-39 for 58136@debbugs.gnu.org; Sun, 02 Oct 2022 05:04:30 -0400 Received: by mail-wr1-f43.google.com with SMTP id w18so4060850wro.7 for <58136@debbugs.gnu.org>; Sun, 02 Oct 2022 02:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=Nd+OB9e1+bveulQgSSYC4UeyobiYmW5QjT8Wqvdfssc=; b=f4skjdU15iLyhjckbCf+WsHaJ5SH0dNNCxjDRAXJGWLRNa4gzVuan0ASMEyRj4itid jKh8kHSpvXsI/6zl+rbpTof0eq+aNYMS4B5xzNhE4Fomy4VBp1iT58zp+EjvZtAU3bmY Xd5G2PmEKwo172iQFxagErBRlEEipavUUHhk9sNtrf0v7/NE7Y9iI02M6IOHU0i+ijZm /FbRxhBtGqtQu/G9iWkJ1UE1OupYacYDDeTZs2th7WNl7CYsrPgPtI1IMkgf4xRb9dDt 7siUmOus4JtUGomLz4jDl8D3hXSNbtLd/HZ/JyeIBkKVQIH9oxpV/oPNjD7FwZZce/eE K+Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Nd+OB9e1+bveulQgSSYC4UeyobiYmW5QjT8Wqvdfssc=; b=zaPXViPXWZ9si+fbzXVYgC/F5Bds76cQ1itQrxNzBWo3qe0MKNWazZNjrgWRM7Mr8w qoMwBbDfhD3lookmF2DfBtoGHRygTKTjGso+tuHJ6dcW6LifKqc2elGDdHvb/uWlVVI8 c3pFua94D9xJqjIAnmcaz7nNm852F7mkw4tnpNWl3U8i8NWeMU0Y62gZMUbPZ/+c+fLc moZ47poDJ4RJ/le0WGizBE3QTJT4P0XgwvTaTWzWtxe6q9r5/A94xlRUF43QPawEYtrM TaFgdzvsWcy0hAwakWK2K7OCxkGAjMOwH9OJm1/x9AprZm7Balfp3IGSYyIO0g/Li/cv itaQ== X-Gm-Message-State: ACrzQf3vV1UCZ94tv2qnCVxln7HZCQcUP3kKvYAny342Cpx2KaulLhEd 0QwWk6+JBUrGKaFfzqJflLU= X-Google-Smtp-Source: AMsMyM5Or/IAy11k0EOHchpk/zt5y20UHzwy+A1f03P4VtLnIVl6W0rylxdUWtkxMZmFRRv6wg43Pg== X-Received: by 2002:adf:d0d0:0:b0:22d:f735:4730 with SMTP id z16-20020adfd0d0000000b0022df7354730mr6136288wrh.297.1664701464134; Sun, 02 Oct 2022 02:04:24 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id bh14-20020a05600c3d0e00b003b47575d304sm10582562wmb.32.2022.10.02.02.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 02:04:23 -0700 (PDT) From: zimoun In-Reply-To: <87v8p3b4pt.fsf@gnu.org> References: <86wn9na82p.fsf@gmail.com> <87v8p3b4pt.fsf@gnu.org> Date: Sun, 02 Oct 2022 10:26:26 +0200 Message-ID: <868rly3a31.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664701530; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Nd+OB9e1+bveulQgSSYC4UeyobiYmW5QjT8Wqvdfssc=; b=eywlPYP1NKpBU0snqvGZQ8vh1Wnp2tOEIPIwLvjBl/L/pvecKTwMQAQl5LyyGGYuwaKkNR unbQM2sqFsJTOOtuGNYOXYRcAJ4X2XqrgQHkkXkQf6lDE2yzMPLtotPSnurV7Q26sZKcAi XJRblwH8wyCIkHvTfMIJIgpBXU0Gq1uMmOfqeyL/XECHDjKphAmDHx/FeSj2cQPeSSQWQe wq1gZSuK8YgkVEtckBMNEdU60Bbn1sLTB/ve/8MkQHar1WATJIbzt2P9iaepEFVsVbR1HJ CZXKffBHUlnY4dJTlnhvB3Y6lFzmvFnA/3Rotq2bmpDPknHXmSamH4neGKzZ3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664701530; a=rsa-sha256; cv=none; b=OkYZrpnwYe44GtMNeXShSxpnjvOy++wupWdKXKgeIk1lXwJT4BArSDX/APgfebnrkBDqF0 82PA1bf9/lGsXqYTslEjQsx9MGEB5MoKYzgPnm9cm4e0m6RKGwsLxKmkMYhV/EwyVOYxRk q9qddq1UTNHEBE1EwJHKaN05c4bdSLqXUHMxXuy9/d3qEQJzwWQKc02D1wV/K2VsV6iJGj VkCuyIm/udzJw9kJmnETpP01iLhvWRR+pIGBVa6BAee+bWXdyDs0ysvJY4Xa8obw6tiqJd ugYrQKfLNi4/2iybQPwXjeBsi1+3VfNOXS2eWoHtpih58ruAuP6gJhaPcI0rBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=f4skjdU1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=f4skjdU1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EAB9E3B523 X-Spam-Score: 6.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZpbgoFgpUjMM Hi, On Sat, 01 Oct 2022 at 23:42, Ludovic Court=C3=A8s wrote: > (define (package-upstream-name* package) > (or (assoc-ref (package-properties package) 'upstream-name) > (package-name-sans-namespace package))) ;strip "r-", "emacs-", e= tc. I think it is better to rely on =E2=80=99package-upstream-name=E2=80=99 and= hides the plumbing. It helps when something needs to be =E2=80=9Crefactored=E2=80=9C= , IMHO. > (Perhaps =E2=80=98package-upstream-name=E2=80=99 could be taught about th= ese implicit > name conversions done for R, Python, Emacs, etc.?) Maybe, but it requires to scrutinize importer per importer since upstream name is mainly used by these, IIUC. Cheers, simon