From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0DcsIaRwE2WbugAAauVa8A:P1 (envelope-from ) for ; Wed, 27 Sep 2023 02:00:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0DcsIaRwE2WbugAAauVa8A (envelope-from ) for ; Wed, 27 Sep 2023 02:00:36 +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 0A0F45E1D0 for ; Wed, 27 Sep 2023 02:00:35 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Fh5nDOIg; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695772836; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XBtPNtJyWfCf9cYnEc6cuC09r1QRBwRyJ67Bn2lT2Cg=; b=ZaBImwxYL0HI7ceCXni8Yj3hmuT9k7IfB/6gVcxB1qYdbggEOunbiUZZM4/D5uQq9O8OKt sL1cOzpOgDuSzrP8/fMtwDfS+oLh5DwtOtTUWAbZARVnT2GC4fWOH2M9MzExZts++OdEhM hYPlFoDR/bmh3w9KWc7Q+eC2hKUYMAQ19hhgH4EsfWBotH8OzrUNIiZKOkIryfjToW+3o3 GQQD9Tbyf3xkhnvh6xG2RHQvew1ORXrwA041wEJ1fHsiz2Y4rEEbFILUXC+xX3lenz/S1e GaXf8G2aB+8VuSVkNY/jTybrR35QHZD/AnGnu0I2Wnv9g7l+NgHMEptccF4GVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Fh5nDOIg; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695772836; a=rsa-sha256; cv=none; b=L9DFDDafDPepEu4OMCCaOa1S5NGXIqj00bNpEvgnCWfvLlpqQzGMOKnpaWyVeP+GXYdhYY 4rmBjBVlJw8zHKIPOwMlyShu1RKvmyC0fFbYAd9NJlvGvtTt4S8jQ5ZKGFIPdgiVnBYQjT Q5fWFSxKLSYuwsxAmUevYj7HQSHAJ/Iy9xlQSnuVH4oMUD/CNNt/o5gIiKh0+CyVAmXRg/ +dGG4ZFQc4K/CC4ICudLU2TuwBgADfhaVKOH+WEy/B7ztTsTpZsqDfi5Wka+x9ubMedxyp Tc8+fad+MQQOyMO1xtRpvu+rMJXtMLzYEjNO0j40uCAuyAYd1fGh67kQyvQAeA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qlHt7-0006tl-6k; Tue, 26 Sep 2023 19:54:45 -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 1qlHt5-0006tY-Gw for emacs-orgmode@gnu.org; Tue, 26 Sep 2023 19:54:43 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qlHt2-0005ar-FZ for emacs-orgmode@gnu.org; Tue, 26 Sep 2023 19:54:42 -0400 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-278f0f565e2so1103934a91.2 for ; Tue, 26 Sep 2023 16:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695772477; x=1696377277; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=XBtPNtJyWfCf9cYnEc6cuC09r1QRBwRyJ67Bn2lT2Cg=; b=Fh5nDOIgHHEsRVukWo0NxbCGB8gC+4PGA0AgO4NVqumrOqMqxmt+2DtJ3zO3C7o9Z/ Kan0/cJ3E95xZS75AwFrCwFylL92AdFSbNhm4gANSB1NsY7dCOkjIzMIYl0MoIA2mB8E r6HxJLjXj+jHPy5RRU9wExl4ngFrWkc0fEPQeki+msAbnRZAt+RmlDJZLjH90bQYLpra r4QsRfsW8QXWfR6/TmKjkVwVF1V1HQPFl3Cu4DkfqmwRo/M1I2PIqIIjYnsjA7Jd2m3/ vp5e+45n6v4DcED/6EBls+brC+EoKfnNP8PYeDmaeomFYeo460muRcUSnPEH+2zPqMlK GIag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695772477; x=1696377277; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XBtPNtJyWfCf9cYnEc6cuC09r1QRBwRyJ67Bn2lT2Cg=; b=fg+VM6CTpFCOp/xxZJcOm16EuGk3X318abGErTgYkFmW5ijdjSXgl6FMaTUMI30nZY /Q9lpfhrL8c7Jicj/BesrozufRxgKr8TFGaBzN5RCPdAf3aapz4XkpZRf00/TdQzau08 MBY4nbjvU9sOUOTxVfDsaQ3QMK9lhaPRLzvmcZ4ubEya2A8038VVvenqbOrCNQy/Gxeo /6JNYkwb3BO76BoIIZ9IlJAADC6dEC8Ryx2daqqJso40KXVV6v30n66LT2lNRbMnxZ8v dJNjUqxRl6Y8yw1SIwU+c3CV3KR6TAn9jXV+OGYiP6nCtOUgIWJ3POreiiAWkUThs/C+ RVNQ== X-Gm-Message-State: AOJu0YyKKMLxMBSSetPW0ImD3NFSB2RXXzdQ+gI+8qMW4bMQ5U2szEUn qauQQUNVFswLGdCmoYt0dv+iXGfGdOxCdA== X-Google-Smtp-Source: AGHT+IFlQTpp4Rz0lkJLsbQnpqJW0940U037O/kYo9NUvodUj1DpBv439B4TqFW3UPblhMrTBSbSxQ== X-Received: by 2002:a17:90a:410e:b0:263:ebab:a152 with SMTP id u14-20020a17090a410e00b00263ebaba152mr195671pjf.19.1695772476882; Tue, 26 Sep 2023 16:54:36 -0700 (PDT) Received: from localhost ([118.211.162.7]) by smtp.gmail.com with ESMTPSA id b8-20020a17090aa58800b00277326038dasm6360374pjq.39.2023.09.26.16.54.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 16:54:36 -0700 (PDT) From: =?utf-8?Q?Sebastian_W=C3=A5linder?= To: emacs-orgmode@gnu.org Subject: Keeping org-id entries updated with buffer position changes Date: Wed, 27 Sep 2023 09:54:32 +1000 Message-ID: <871qekebif.fsf@nixos.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=s.walinder@gmail.com; helo=mail-pj1-x102d.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, 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.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.52 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 0A0F45E1D0 X-Spam-Score: -6.52 X-TUID: 06iraCQyqBzK Hello! I often use org-id to create persistent links to headings like this: * Foo :PROPERTIES: :ID: BAR :END: [[BAR][Link]] However, after inserting a line above foo, following the link BAR will take me to the wrong line, because the org-id database hasn't been updated with the headline's new position. Running `org-id-update-id-locations` fixes this issue, but takes forever to run because it goes through all my org files. How would I keep these links updated when I make frequent edits? Is there a function that updates the IDs in a single file only? If so, I could advice the open link function to run it first and update all the positions quickly before following the link. Thoughts? Thanks!