From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sCFYJtVCFmBjRwAA0tVLHw (envelope-from ) for ; Sun, 31 Jan 2021 05:40:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 22sSItVCFmDaGQAAbx9fmQ (envelope-from ) for ; Sun, 31 Jan 2021 05:40:37 +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 168EF94042B for ; Sun, 31 Jan 2021 05:40:37 +0000 (UTC) Received: from localhost ([::1]:57846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l65TP-00015U-Nd for larch@yhetil.org; Sun, 31 Jan 2021 00:40:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l65SL-000158-UZ for emacs-orgmode@gnu.org; Sun, 31 Jan 2021 00:39:30 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:41623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l65SJ-0001KX-PG for emacs-orgmode@gnu.org; Sun, 31 Jan 2021 00:39:29 -0500 Received: by mail-pl1-x62e.google.com with SMTP id h15so8119688pli.8 for ; Sat, 30 Jan 2021 21:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=WaE0Mt2xaD6vnUiemCHlCazb1Zl5Q64zXenAhZg929M=; b=In/ktvd/cfyymKxBLLmRxx9kg+Wa/d0vmsg7l1tRFu1a6G1GP5OOay1kpYFETmgYMW Kp8zxYj8o1mfdQwNdq+kCJ/JN6MraViEt5YIHo8XJP7s9xQ8JiZyZGqfhnfr/cg5QLNB Le14rYI+ZW5HM6IT8t/qM3HahVg5Yivvt2+EOKQIP9nvfksOjdII9jJnUATRoZV1Hq5g AHVTPahl9TtbzSZiryV8XEoZ2c59YH4T/+NbvnBweXfiO/TZaupNvA6V8JF+2mNHmHdU 5lJLKg5iwhKnhpgMYAl8EV5q7Sjw1KHCVRcuPhYIOTLbqZaoWVZXjfVIg3tytkRmDz4f 2xYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=WaE0Mt2xaD6vnUiemCHlCazb1Zl5Q64zXenAhZg929M=; b=SNmabPH6cj9MX53emg/yeK5HzRDEcsLraNLa8At2CBOoRdcuwp/lay9mxTy8BbSwMc fNb9GbbAjrrKAJu3OXJ31wpLu3qMr04d06HKXAD/p8epJA0GrHf4t9FJKPdTm/eJhBO3 rU3+6Mc3cRlTYQh5IajAGwyFenXbqwPx4Y75PGqj1Tj81ywtKBK/c62T8vFBInTAESeP mfUvlXGJFtfvLDBUv+mYiqkCrSBvUoyTfCALeyEXMpe0i/hF+8a0tIRRR9wzv5uBpTbb hLvg6yIyXe4KotvpzIwvmE0u8h+uOQBDSwqNLZpZbdK8CNuEzxNXbMTJ0H2NO0th0x9N gw8g== X-Gm-Message-State: AOAM532gsT67G4e1sZaUMCpZJ/NT40vStBrqmmAh7ZyUCxyI4WUdNZCm bhYT2X4Umkumk5FCOSf8k8k= X-Google-Smtp-Source: ABdhPJx04pZco8rOJ7yq4A24UurR0IvQcK7fIkNJNKEs/VCI0pUAtBad23H4JzaK1tLwPPGVfG+Kdw== X-Received: by 2002:a17:902:6b88:b029:df:ff72:7bc6 with SMTP id p8-20020a1709026b88b02900dfff727bc6mr12105684plk.23.1612071565965; Sat, 30 Jan 2021 21:39:25 -0800 (PST) Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id s73sm14101833pgc.46.2021.01.30.21.39.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jan 2021 21:39:24 -0800 (PST) From: Ihor Radchenko To: Peter Klenner , emacs-orgmode@gnu.org Subject: Re: org-goto and org-store-link/org-id-get-create In-Reply-To: <8ffe2da5-e2cb-f44c-0a46-b19873c0bdf2@gmx.de> References: <8ffe2da5-e2cb-f44c-0a46-b19873c0bdf2@gmx.de> X-Woof-Bug: confirmed Date: Sun, 31 Jan 2021 13:43:33 +0800 Message-ID: <87pn1l4q62.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62e.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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="In/ktvd/"; 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: 168EF94042B X-Spam-Score: -2.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: GDhqApca1BCS Peter Klenner writes: > Calling either org-store-link or org-id-get-create in an indirect > org-goto buffer results in an empty ID-property drawer with (setq > org-id-link-to-org-use-id t). Confirmed. This is because org-goto buffer is in read-only state, which is ignored when inserting empty property drawer, but respected when trying to insert :ID: property, which is indeed inconsistent. Currently, the following functions disregard the read-only state in org buffers: org-store-log-note, org-insert-property-drawer, org-agenda-undo, org-agenda-todo, org-agenda-add-note, org-agenda-priority, org-agenda-set-tags, org-agenda-set-property, org-agenda-set-effort, org-agenda-toggle-archive-tag, and org-columns-store-format. A fix to this particular issue could be using org-no-read-only in org-entry-put. Though more functions may suffer from similar issues in read-only org buffers. Best, Ihor