From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yCZzAn/1u17FHgAA0tVLHw (envelope-from ) for ; Wed, 13 May 2020 13:26:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cKOlLY31u14vTwAAB5/wlQ (envelope-from ) for ; Wed, 13 May 2020 13:26: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 6964194001C for ; Wed, 13 May 2020 13:26:34 +0000 (UTC) Received: from localhost ([::1]:38090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYrP8-0002yo-47 for larch@yhetil.org; Wed, 13 May 2020 09:26:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYrOm-0002xd-Bz for emacs-orgmode@gnu.org; Wed, 13 May 2020 09:26:12 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:40679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYrOl-0002MJ-B6 for emacs-orgmode@gnu.org; Wed, 13 May 2020 09:26:12 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E08FF5C00F3; Wed, 13 May 2020 09:26:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 13 May 2020 09:26:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imapmail.org; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=dADtNsyrC7/mhoBqVkpcecSnbJ 7eFNo8qFfbvnja538=; b=aXEyxKC40YoYQJJQfk6oYD+up3urH2ezEltOSOn9t4 3uWXa6rTLFHIvI12hrxiT7/RMidY+4w3qLIeXFeVad+ZQn0L/MYfOSDg5yU2dQKz PiRy+ACDGtIhceuxJVgiIBPEMB9Ljfiu4aMEuZn8OJmqKMJjr9HBu0+L3sjlCPyY xN4UoqIQLiwIE6NT5lcNHYGeBMNO0vDWjeWk+vNg9y1BuQ6bESnynnm6kqKk08Tv JzrazLauQPt8DWrh2LteUkYnphhsnnfc+SqRqFD0RJUc+gzprM10M+xYQJtVXiKy l1HhsB+XI9oID+3Yko2vpW04jLLBP76MPW4hsv8wdesg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=dADtNs yrC7/mhoBqVkpcecSnbJ7eFNo8qFfbvnja538=; b=FptuxrEKGivEod3xSXEpZM LRcf86chPv5iXhnRJNwC+QhM+MxcIDq4/Tz9jUoRE76LPi6Egt23rt8o7twZOost EiQvM1bFv5CNoDv5GpGp7OWONcRmYRPr/yQEDB+rsBgSzSxCRjlm4uVwDt1Il8u4 ZZ4Ttz4mSjaDT3fiTQk4Pan3FU+pFBW54ahR2ikejcA3iXhC0bUn2Diq6XkF9n/1 5Ef7bp3U1YrScsRUK1FwlpuQuB3uTq5fWCF0P2qO4iUaTAKMeZTrFFiNXgKFZAvo JCCSQaGMmYUupWkAtf91pKoWpaNglvj3qnWkVUsOE6gqazuVmm+rtJNQgk5pHF1w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleeggdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpeforghtthhhvgif ucfnuhhnughinhcuoehmughlsehimhgrphhmrghilhdrohhrgheqnecuggftrfgrthhtvg hrnhepveffgeejffehvdfgvefgledvvdejieegfffgveeuvdelkeeivdfggffggeeuheeh necukfhppeejiedrudeirddufeehrdduudelnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgulhesihhmrghpmhgrihhlrdhorhhg X-ME-Proxy: Received: from localhost (c-76-16-135-119.hsd1.il.comcast.net [76.16.135.119]) by mail.messagingengine.com (Postfix) with ESMTPA id 2AA2D3280067; Wed, 13 May 2020 09:26:08 -0400 (EDT) From: Matthew Lundin To: Nicolas Goaziou Subject: Re: [Bug] org-store-link should not insert a document level ID property In-Reply-To: <877dxgdyk1.fsf@nicolasgoaziou.fr> References: <87k11nifsx.fsf@fastmail.fm> <877dxgdyk1.fsf@nicolasgoaziou.fr> Date: Wed, 13 May 2020 08:26:07 -0500 Message-ID: <878shw6k5s.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.29; envelope-from=mdl@imapmail.org; helo=out5-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 09:26:08 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: Gustav =?utf-8?Q?Wikstr=C3=B6m?= , Org Mode List Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: -1.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=imapmail.org header.s=fm3 header.b=aXEyxKC4; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=FptuxrEK; dmarc=pass (policy=none) header.from=imapmail.org; 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-Scan-Result: default: False [-1.71 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.53974622595811]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail,imapmail.org:server fail]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; FREEMAIL_FROM(0.00)[imapmail.org]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.06), country: US(-0.00), ip: 209.51.188.17(-0.54)]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; DKIM_TRACE(0.00)[imapmail.org:+,messagingengine.com:+]; DMARC_POLICY_ALLOW(-0.50)[imapmail.org,none]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[76.16.135.119:received]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[mdl@imapmail.org,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[imapmail.org:s=fm3,messagingengine.com:s=fm2]; URIBL_BLOCKED(0.00)[imapmail.org:dkim,messagingengine.com:dkim,nicolasgoaziou.fr:email]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: cJkcpaq30yAh Nicolas Goaziou writes: > Matthew Lundin writes: > >> What I was thinking of in terms of configuration is being able to >> preserve path-based links (instead of IDs) if creating a link above the >> first headline. This is the behavior that existed in the past when >> org-id-link-to-org-use-id was set to t or >> 'create-if-interactive-and-no-custom-id. > > I don't understand what is the meaning of an ID property for a whole > document. > > AFAIK, ID is associated to a file name, and possibly a location in it. > In this case, the ID is strictly equivalent to the file name, so why > bother? I'm not sure I understand the question. Are you asking: Why bother generating IDs at the top level of a file (which was the change Gustav introduced)? Or why bother turning off that behavior? I can't address the former question but I will address the latter. The main reason is that I find these IDs redundant and visually distracting. I can see how file IDs would be useful if one is constantly renaming files (or perhaps writing custom functions that convert files to entries and vice versa). But in other ways they are more fragile than paths, since a :PROPERTIES: drawer at the top of a file looks like clutter and is *very* tempting to delete: ---- beginning of file :PROPERTIES: :ID: d4ef67e6-ffcd-4df3-b821-b92c0138eb9c :END: #+FILETAGS: work inbox #+CATEGORY: work ---- file continues... That said, I'm happy to hack together a personal solution by advising org-id-store-link if we decide not to allow users to customize this behavior. Best, Matt