From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QEO8M78VYWRHIAEASxT56A (envelope-from ) for ; Sun, 14 May 2023 19:09:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cIHgMr8VYWRRXgAAG6o9tA (envelope-from ) for ; Sun, 14 May 2023 19:09:19 +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 66F6A138A0 for ; Sun, 14 May 2023 19:09:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyFCv-0005Fz-4v; Sun, 14 May 2023 13:08:29 -0400 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 1pyFCs-0005FR-2z for emacs-orgmode@gnu.org; Sun, 14 May 2023 13:08:26 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyFCq-0006NA-Ii for emacs-orgmode@gnu.org; Sun, 14 May 2023 13:08:25 -0400 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-643b7b8f8ceso6600411b3a.1 for ; Sun, 14 May 2023 10:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684084103; x=1686676103; h=mime-version:in-reply-to:reply-to:date:subject:cc:to:from :user-agent:references:message-id:from:to:cc:subject:date:message-id :reply-to; bh=RmpTJP1oY7Fz7rxXa6yveKfLNEtzDRLaz4+n9Etc+T4=; b=WXwJJjtd4qzsRAHZjOXRtVZWHQFhMtQkYEsAORQr9lNSYjiaU2THk3jBnhacF/zFPg Pm0oWRhbHUWdgAsZdsd3WAKDypM8XI+6kKjqAFkSdW981+v3iQEWcLmjIMCaUoAnachv g1Ws6TFs/usdK+81FEJCrq1rGRI+iGynXn876Zn5Sx7keFVunsVJ6FzNkdJzg3y2esJ4 YoifKM0sxJA+Acyx8vAMoJaVF/wUIvFFV58A6OJPvzGPuiXdzog1AMYiLaOMzQwMQQTL vORFXH8xL5n+/YXJLJm3Cte4xFlN0XmKvpT64mvR6RUMZ0JS8jrZUXszZK9ISdJMEDAr Cenw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684084103; x=1686676103; h=mime-version:in-reply-to:reply-to:date:subject:cc:to:from :user-agent:references:message-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RmpTJP1oY7Fz7rxXa6yveKfLNEtzDRLaz4+n9Etc+T4=; b=GbWVDlXxDXvlHwWmSX0BfMgo7NBn/AkEmzm66D64OtAJNbkSOpjYscgl3cAGq7C6ZG Qratlio9CHcWiv3qsyYrni3Z/RJliyGHVS1yC3w62hmWhY//CsVQ4QLstUQc0b6vSqe7 qb1BwycQv4msb8GC/famF8pJuXkfi3G5radRvsgTXtZL1IBFl47dHytY+0Q4dYZ/uJku Q2y9JYwfT53FPdrcmlO8sC27uIRZPHcX0XixpOxSY/wX/joWoD/ZZcsGJo2zcPLmFeod 7SX70h3uhGLzMr9tDaif4cYy2THFGY8eyVs9vtE9gCDP4+6/Hr4ebRaCJmCGtRf6uGQ9 CcdA== X-Gm-Message-State: AC+VfDyaW80IUXlmK1vnXadWp4fBQ2KWaQ2vjnsb+6aVEkONl+x7z9v8 RLTBAyyLH2dRpvHJhV7xYA== X-Google-Smtp-Source: ACHHUZ4fmpikkL07YLrm+uTCpCzEkAs3Kl2ooKzvcDR87zxXCAv+8sjhI2g+rZZr3zjeaUHb7MmyQA== X-Received: by 2002:a05:6a00:190e:b0:64b:20cd:6d52 with SMTP id y14-20020a056a00190e00b0064b20cd6d52mr5668029pfi.14.1684084102956; Sun, 14 May 2023 10:08:22 -0700 (PDT) Received: from Mac-mini.local ([39.171.215.147]) by smtp.gmail.com with ESMTPSA id m26-20020aa78a1a000000b0063b7f3250e9sm10321919pfa.7.2023.05.14.10.08.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 14 May 2023 10:08:22 -0700 (PDT) Message-ID: <64611586.a70a0220.53db4.4151@mx.google.com> X-Google-Original-Message-ID: Received: by Mac-mini.local (Postfix, from userid 501) id 194DD8D7149F; Mon, 15 May 2023 00:30:59 +0800 (CST) References: <878rds1xta.fsf@localhost> <87a5y8iiak.fsf@localhost> <645fc094.170a0220.4d545.38e1@mx.google.com> <87wn1cgjij.fsf@localhost> <64604168.170a0220.99926.5b4f@mx.google.com> <87lehrgwqn.fsf@localhost> <6460f5e3.630a0220.b9085.17d2@mx.google.com> <87ilcvdknx.fsf@localhost> User-agent: mu4e 1.10.3; emacs 30.0.50 From: "Christopher M. Miles" To: Ihor Radchenko Cc: "Christopher M. Miles" , Org-mode Subject: Re: [PATCH] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist` Date: Mon, 15 May 2023 00:27:51 +0800 In-reply-to: <87ilcvdknx.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=numbchild@gmail.com; helo=mail-pf1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684084159; a=rsa-sha256; cv=none; b=Ol7QxU6zSn+MlIgfFbfqhOhqHyn8EqYyFKrw15I1x0OwOiOq5c95dRQ6zpDq/a0DHIcfP9 30rPXfSEXU14uNDzoeQN+MlldZFSElNmpeDmbxt7oH8+pP4+7I/rlKnpy2xtNAYGTt+xzT YSxb9QjL3xm9y1o3qIguhCg1Z1GUlM8pJ5sBiLO9lOWzi9LkT6i+rLhYw1M35LF/h/iQty XQunURilN7kgAGCIkhyrInIpWUbPHhw5wYQK8xJVv0xYc0WfuRxV5wBthlGgd9RRTx662y 4djdpTK8xLmd7Cl0qRyXO4kl9ROjoUcwWtVArLKnH4NWYbcUeYUp0KlpaT6zEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WXwJJjtd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684084159; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RmpTJP1oY7Fz7rxXa6yveKfLNEtzDRLaz4+n9Etc+T4=; b=r8OIn+vgYGbHdbQkVl+oZn9hNjzuoYbRnQRzYerw0y1q72+wsjgw83obFfd1BzhdC7dWHY F6tIWb4DCFhBgMC0di9ABFCGW27tzObdhKUn4gjGcJjA/4VBVuJHXjie6t2VWb5XAlqRgm 6lMP2oxwqWsW/sBYmTA1f4JlHCYtJ65KBpYFBrLfI467BAaViOUJPIkGDrKF8mqasS+nH9 QkxmyNIdLgY7OpQqWBq5O13YcnIIOzbAdNlSxFzOVAAIXknS2rEaP1bb4CS2z9CTjQyC5j zliLsEsOllh64CxVVqBW4aZMpXwl5NhvoM081IHtUnyVthzAaeIUUf/fxLy0kA== X-Migadu-Spam-Score: -13.47 X-Spam-Score: -13.47 X-Migadu-Queue-Id: 66F6A138A0 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WXwJJjtd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-TUID: VPYPnRiWd+fa --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> Sorry, wrong code, here is the correct code snippet: >> >> #+begin_src emacs-lisp >> (let ((bound-tags (seq-filter 'cdr temp-fulltable))) >> (if (length> bound-tags 0) >> bound-tags >> (seq-take temp-fulltable 26))) >> #+end_src > > This will unconditionally drop auto-labeled tags when user-bound tags > exist, even if the total number of tags in buffer does not exceed 26. I try to read the source code of `org-fast-tag-selection', but the code is = hard to read. I don't know how to keep auto-labeled tags. Do you have any suggestions? =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmRhDMIACgkQG13xyVro msNqYQf+NIrGHMnU7vcLU44uAe1L6ibcockaG1qH6NcOFgLzZL+t1rwKttNpBdPi qLlO/lmCT/I/xE+ilgQtriOu9knqgJElr3yUNJh1nSIzOlYtdNQqvWCy3lhyk5HK R7GPAMOXraYzSZaSrU/PtOTVVAQmhBo/fXrHuRQUIZ93f0FayjHdy0BVXMTc3Wxd JXHdh/NpZ7nDSSOHgMvC7yojqrRi2xK46n+zXe0WbspY1YRsXPcJSmQo9jHRsTBh LeEJffDcvsRnXnXTOaDo/j06cxzdKFUT9AuEDOj/0VDR59X3dLaOHp5CsmmfmOdM Vlq0yuJRqy+i/8rqgz6nSe48a5regQ== =sd25 -----END PGP SIGNATURE----- --=-=-=--