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 ms9.migadu.com with LMTPS id CPiVKIv2YGShnQAASxT56A (envelope-from ) for ; Sun, 14 May 2023 16:56:11 +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 cAFhKIv2YGSLaAEAauVa8A (envelope-from ) for ; Sun, 14 May 2023 16:56:11 +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 68CDF11B9D for ; Sun, 14 May 2023 16:56:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyD8A-0005I0-Gb; Sun, 14 May 2023 10:55:26 -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 1pyD85-0005Hh-Ca for emacs-orgmode@gnu.org; Sun, 14 May 2023 10:55:21 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pyD83-000894-2Q for emacs-orgmode@gnu.org; Sun, 14 May 2023 10:55:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 01AA024010A for ; Sun, 14 May 2023 16:55:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1684076116; bh=OyoxOBxExA2vDUqkx+TMN0YQrV4dAk+3jlBAWxdImXA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=IgijBIHRclcw5wnIh5NvVSOMnOKGKd4ebjNcl/AyHv+nMcvaXb2Rmfftvp2WCNQbi RYiihWaD5vWHOzq0nAwprdOKIvI/tGoKLXtKKha1H9d9IWuZaLrw2j9buDKsBQA7Q3 IPCTjROvKDzhExdopsZ3eKhz//E+x4O2U4fe2/8gWL8dSCnRyuscZLqZUSrKQ9Ffuz N8nuNHRIO268T+WUUT4DOcjI91OcyUpoS500SXBcchTTIRoeAwyCVcrvYqysk/H9s7 o2OLJ6hXUpv/TGFT009fFGT1yaYzlcjHbDnJZVTOKKaqKW9u9WXNTjPcTxw/IVoml1 kcOqa9aXa51Eg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QK5C73fbSz9rxF; Sun, 14 May 2023 16:55:15 +0200 (CEST) From: Ihor Radchenko To: "Christopher M. Miles" Cc: Org-mode Subject: Re: [PATCH] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist` In-Reply-To: <6460f5e3.630a0220.b9085.17d2@mx.google.com> 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> Date: Sun, 14 May 2023 14:58:42 +0000 Message-ID: <87ilcvdknx.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-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-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: , 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=1684076171; a=rsa-sha256; cv=none; b=JNPKAArRVIL6/lWigyd1bjVXk3pv9bvsy7wDn6zbcg0mNVz5QxE4hCMSfqiPddj330DHOk TqxLZ7CV0uptAq8PGmmd5x63KYB80mVLkKVF1o/bj2VCuyCyb0Qlcjh2e+YmcQcTYwFdV1 iyX/1FQPyjmpBOkmvUwDbxbe+TRiaVy45Cw0oDdLy55SC6v98M8e/wD+w93ACGihn3YRKB DKpk6kpIPUZ6t+d4fpInkBOrr+r1kI3QO2PuSfz9oaLcrXN8SNzg9A/S1GyK6Hu5OOZnYM ZjWctBhEVimvUB7qW86QSVPuHCUmB7qo3NdOt2zeMd54wODh7hISfQTl2XnxoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IgijBIHR; dmarc=pass (policy=none) header.from=posteo.net; 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=1684076171; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=m4bWiANwhQR+DlxXRqU9VDJeU7VOzllDZ+ZsUGnDOPU=; b=DOof+3Q+ir/4BFNxo0syOg5WFmUakpxXEGelvXqvtpfeXzD8rVhAiidXMcBrNBq5OoBjQ2 XEL1zmO2nHsdqPM9qMv9wWPvjBzJ6haqNHHEn4jG+9CMYOVFe8TL2wiNQgM8lVnOGJQIIC bAq2gmJWfXaPT6+Phy5yFBDxRmQoFZVGlZvTX3z5wS4sUA1gKm3hMNXs1I3UUGFT5bHrP8 X9xIBdWvbwik6CfuEcC0bzxksmz4Nq23myGBfJK9DtjLbuhNalz84xFKlTDLXeLvcVX0Eo THpq5CaroAoI2VO7VcU8z1Jab40Kyjpz/jR6Mkr+NTqFVw0ZTWuoqEYbk0BAcw== X-Migadu-Spam-Score: -9.39 X-Spam-Score: -9.39 X-Migadu-Queue-Id: 68CDF11B9D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IgijBIHR; dmarc=pass (policy=none) header.from=posteo.net; 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: qVkvdLGM0mLe "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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at