From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: Add a function for building sort predicates Date: Fri, 02 Feb 2024 21:11:26 +0100 Message-ID: <87il36zkwh.fsf@web.de> References: <87msskw1u8.fsf@web.de> <87eddw9k5o.fsf@daniel-mendler.de> <86h6isyu2b.fsf@gnu.org> <87v878ukb1.fsf@web.de> <86bk90ypb4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22546"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 02 21:12:03 2024 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 1rVztL-0005fO-89 for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Feb 2024 21:12:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVzsY-0008Dv-TO; Fri, 02 Feb 2024 15:11:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVzsY-0008Df-3S for emacs-devel@gnu.org; Fri, 02 Feb 2024 15:11:14 -0500 Original-Received: from mout.web.de ([212.227.15.4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVzsV-0006Ah-HN; Fri, 02 Feb 2024 15:11:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1706904662; x=1707509462; i=michael_heerdegen@web.de; bh=F5kL0kSCzNOv/H5qMOlYv6nfYLH2mz90zCl8LV4dkNE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=KniJmXw3FzRiHBuKOPjr3oMZItFeggq4H3trJWLgwAbh6i9YzejV1qAijYJgP7uH uRFr8meCpzIV2xuf7Dq7FFC0+NNRc3pPKDrBavKHOW6ygBYmKDZYQxaWeWISG0Ak3 UVzLdlnSkJpFPvI2AYIgY75+QkNvPYapr8bOguwRZT2WLFjVHFcFejkD3IabHuPrS /J2/A+EL7kYHL/Yw6KmH6uEHSv42kmWWWuaGvzs05go8uok/DkSVjobBX8dM3Pciw tX8kwYGGnx8yJPHDHApDPClTmRpPXqShL3ErqObYV2kZxyOAzYlfNFzC1vh4P3PQB bTZGif65zlrOWplI+w== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([178.6.28.230]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MkVwo-1qlPat3oX0-00lzAN; Fri, 02 Feb 2024 21:11:01 +0100 In-Reply-To: <86bk90ypb4.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Feb 2024 21:09:19 +0200") X-Provags-ID: V03:K1:Dk84NV69CkD6to7EJcZwXho0B05OzaF0wtCZRRZw5nFP5qo9onH c/POX2nb0ZgbKP5Gj/JVmLPz6ueaFp4uuPKwrXu9NoMBGZbgzUiAFZsKMBgNgrjNSuiALIB CYiO05LU5fig7HajbiKkxIW6Se7E6Q13vD40XJGyEonk0IPzmnKJalO3km7tvqokV4liMPM /HVYa4zg8iJv2lp8dmwgQ== UI-OutboundReport: notjunk:1;M01:P0:o5ddctmv13Q=;Un23GPD6NtmWh8mVhlNxUYrINvl 3z/rwX+vuBfki2GIzRWw68uKjPL2RSRQE0U8zq1W4PlhMSih5FEgtuBYyTf+R2Jp3WDtjhnv7 qF6HfuTGxU/UjObYdoXDOp1Afh7vwMyk2h7t1Q8ES++xRRT1K/lCusDNm7JbYO905Wg/ep0aZ gxq10TJrBa9VyAlClf/SNv7Q2HWyBrH7RioBpgQovnlDdBduLQVgQzsS9Br0J99+xs4p+JbJY Ou4rHcSh6kABTr40rvNwDIQlun98WMaTWIo4Z+WCrnG2Q1GxBpUBER4XofT16QHeMoi7rGSjr dHTcPWq7w8H1qc2i0JF1sNrUKEJp7njEBoTpreFsEOfjOBjIMoSozxhtyuiz5MpHWJ4p+7knL SXPcIc3O9CCDvGBEaE5Jjmed5SoVS7fjbE8nImGmspC8ZnmL/+XdwxuiRvAneeyrePMncruh4 pXY/7rOPdX/VhyImhYUTPlUOaxEmnEPVMpiLmj1uVFOjiLV+nA/kH43TPe7/nf2Jmj8av2xft AwKnK2gi/OF0QhV1qvE2mCyrjprBuXdyL2fgWcRufpScor0w6uuMDu1W9d2r3aH0VlFJZqhxJ uUBIsjYnLNSzU+v7LDEnSmBmJh3PxoVUjAa62SNBhxtN6vrxH61kuXc8yMAP6AbvYgdt7r9Qk SCnzmlvTioSPBgRIaCak3Cx+u68eiwzON5mL7Lih5AAuElsNb0JQLlEyqoP2g6opKOvy/ZBDs UUY54oCDb2gRge/db0uQcdEbl2QHukNIcFtd7m6Y572UfPiN0zjNx6c4A6lxWa5uPOSYR3cP Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:315780 Archived-At: Eli Zaretskii writes: > > I consider this only as a start. With UI you mean customize? Anyway, > > the answer is probably YES. > > Even a simple data structure should be easier than a full-fledged > function. Not sure I understand what you are getting at. In my code example, the data structure is the specification of the rules in the call - a nested list, suitable for this task. We need something that makes the structure being "applicable" by `sort' - this is the function implementation. I'm probably misunderstanding. Michael.