From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UGBTKXL+6mAEiQAAgWs5BA (envelope-from ) for ; Sun, 11 Jul 2021 16:21:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mLrdJHL+6mDcNgAAbx9fmQ (envelope-from ) for ; Sun, 11 Jul 2021 14:21:38 +0000 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 3E9752A5AA for ; Sun, 11 Jul 2021 16:21:38 +0200 (CEST) Received: from localhost ([::1]:33808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2aKv-0000if-AD for larch@yhetil.org; Sun, 11 Jul 2021 10:21:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2aKI-0000iE-BW for emacs-orgmode@gnu.org; Sun, 11 Jul 2021 10:20:58 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:45891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2aKG-0005oi-3n for emacs-orgmode@gnu.org; Sun, 11 Jul 2021 10:20:58 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 22so5901357lfy.12 for ; Sun, 11 Jul 2021 07:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=GxwZl/dgm0pRy7B8OHm2A7WNsOGEyDNBwtSKHZ7Tuto=; b=SNzEGgDFTVyFLDON2GET7qe4YXxRIcOCOnrGQVEx3GZ/kVXYegYKC4/P4SaMBj7rMP v0S9JNmSy3JEFHnSiQY6LF1iQEDG1kIU1cXMiyYrSyt/fRwiLxPeMWUH5GeIkjJj0xIg 8wZWhc9SyvWAi2/PZ5Y01UJoFUbEjEQeR0M774dFqmNQU2A9F799qxGGNxwMpFqEATqO T2Me/0Zb5H4buGhe5Awl7o8tGRd9JW5OfY05p0lhHqRR/7i3Jo5kfAJCkVpx5o5c/oiP XPDoRkxEMepu2ky6J2+fRlk5hKhUn3m2L8fzBETfOgBW7+AerTLTrlFa7/VTZxFvBOpA c/aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=GxwZl/dgm0pRy7B8OHm2A7WNsOGEyDNBwtSKHZ7Tuto=; b=SHvDzkbGyPjKzkBorYATYHVrvFlPLK+xn4Hp6+4TdBeWPaKcXP8sAb8GD9y4P2PE2Y JSp0wPd/A6uflrG3W16fS2Kgn4X9HkIEdrKdBH8mot0VWdAUucSreVKTNPHXH0JKNj/L XWubJs0dJ039z5gs4f7A3TU0Uz2j4GuNjpglN56T5rMog/djz4P1uMpWi0h/DhEYBqti h7aZeueatuBgihEZO7asJce4QMlKBd2/uabp+k3qQ4J8ACw27cZEjtzifI+Bug0szERi tWa3xGsqTTsuD6tBB9LEdJQXeyo3LAGT28muZ55jIcbWc9b9nhJUCbadWyU5KlWt7NnB 6kEA== X-Gm-Message-State: AOAM5338zbVXRZNxFLa3SpB4M+iLcwZNShpDpK9T6vFKNx+Jn5g5iv1a sxukwqQJNgQxtWwVcDgt518= X-Google-Smtp-Source: ABdhPJxFZyMHJdeAjd0BI7eestzGIY8aR5tChTXAsvMLd4xSX58SyNPiPzQy1FJH0UdaLcEr8Ynasw== X-Received: by 2002:ac2:5297:: with SMTP id q23mr11101122lfm.223.1626013254053; Sun, 11 Jul 2021 07:20:54 -0700 (PDT) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id x11sm255879lfc.291.2021.07.11.07.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 07:20:53 -0700 (PDT) From: Ihor Radchenko To: Maxim Nikulin Subject: Re: [BUG] org-goto slows down org-set-property In-Reply-To: References: <87lf6dul3f.fsf@localhost> Date: Sun, 11 Jul 2021 22:20:56 +0800 Message-ID: <87wnpxj5iv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626013298; 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=GxwZl/dgm0pRy7B8OHm2A7WNsOGEyDNBwtSKHZ7Tuto=; b=EHXhYS0369/SXES7qVUtjTBErfIT0mkA7SVYL8/wDmDTGp53cKDfuyp1K5AImviRPq/oZS sj1Caha3tCXVJ0bQzymiC7dIXE1jjpzCOz3KQaGkiSPx1OAqSaTcCwfWnvVW4UFhQCWImA Te3LftveP/SqFnuAKwvb077//8MMRETBrXcIlNzl9iRif4FmP5jFU38y6f3FOMzyzskSaQ W/Uh5M5hP+DsLZxp54kMtuKoqIL1ID8QeODheqMZiBn4p2/XnzGIR4AexC2rhovikmvC4r sAtYcpY/w6yTBIwf0sZuqAUIkgIG9Mq5POm2Qn9bW3GlU3mMdtEkhTneU+GiUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626013298; a=rsa-sha256; cv=none; b=PMtlCdcnrsK7i3f3c3OYjwXVeSTRwtwMHRi+PgapTT5YxIuUhFmavbXPeSGKhYFG7a40dr vWwGm9WhJhRihTS41NKR8QpFLaidewNa06zlYXeWfn9+6RrrKb252HrUBkJbwJoqus8nNy r7lZrf11kLrHb/eStsT9S17rE4HCBTqfvhwMq4Kh7MljdK4LQKGWK6frvvvTM9SezcwAwS 1DwJ+g9Y8llTqTAS8uddXLFwkozLFGz0Tjl2eqNRfok5o65F5TcyO4P8TMu/7+nRvElJRI Ios1JEeT1aHdsMfjfAR9W8kctEZK9sZZGBa2Cc+/6JvPJwfEoviWNZzou9L2TQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=SNzEGgDF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=SNzEGgDF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 3E9752A5AA X-Spam-Score: -2.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: aoPuSLb4t0/P Maxim Nikulin writes: > Certainly 13 seconds is no go especially for interactive usage. Yeah. So, I do not use it for now until me or someone else fixes the issue. > Do you have an alternative for adding properties? > Unfortunately `org-set-property-and-value' C-c C-x P does not allow to > set even fixed list of options for completion. For now, I just edit the properties drawer manually or use custom setters utilising org-set-property. You can always generate a list of options using `completing-read'. Example: (completing-read "Category: " (org-ql-select (org-agenda-files t t) '(property "CATEGORY") :action (lambda () (substring-no-properties (org-entry-get (point) "CATEGORY"))))) > I use > `org-set-property' to add CUSTOM_ID when necessary. I do not like purely > random ID. You may want to customise `org-id-method'. Also, I often use `org-capture-ref-generate-key-human-readable' from my org-capture-ref package [1]. [1] https://github.com/yantar92/org-capture-ref Best, Ihor