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 ms5.migadu.com with LMTPS id +DnWEAba1GM0OAAAbAwnHQ (envelope-from ) for ; Sat, 28 Jan 2023 09:17:10 +0100 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 mP6jEAba1GOBkAAAauVa8A (envelope-from ) for ; Sat, 28 Jan 2023 09:17:10 +0100 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 DEED0385C0 for ; Sat, 28 Jan 2023 09:17:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLgMp-0003j8-ST; Sat, 28 Jan 2023 03:15:19 -0500 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 1pLgKG-0007AU-Dt for emacs-orgmode@gnu.org; Sat, 28 Jan 2023 03:12:40 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLgKE-00081P-QE for emacs-orgmode@gnu.org; Sat, 28 Jan 2023 03:12:40 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pLgKC-00027G-Fw for emacs-orgmode@gnu.org; Sat, 28 Jan 2023 09:12:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Dates in headlines Date: Sat, 28 Jan 2023 15:12:27 +0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.15, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674893830; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=HkJZ/uDJcGSKUoqVRkfeiGXrurRK/sQgI+00is7DtSI=; b=Yzye4XjIHtJ8wJKJjklMW7mck4b1ZeGZWP1fY5MWO4r/T/5PoORlt4L98F/GL0qm5QFGes 8DGICROlOTjEMu2XhQVJjBOJzK5zZz1Wu7V75i7BGdIOKl3N6fjU6PyWSLFlmWrRI81sKu BY3TWtjPXwyuHbIZ75b6/y/RJdfSPlsjBCGinysK+uihGjTsZ/Hth74IlgEMIQqNyVCo5/ CV2W4XQrPrbKdCLW2xD+Kcmw2NI/Z63Iy8gJ7qIj+uBQw+FRRckzGF7NB3vJMJlvmNvB+R 28viu/TlyNeePgGJlSfFuzY8ia33iPh3pzJRoN5u8vLekOWBPqauajMnd4K1vg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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-Seal: i=1; s=key1; d=yhetil.org; t=1674893830; a=rsa-sha256; cv=none; b=ZDG3WKWLMKkGiMZU8x4JLjG/K0FiHquWGJw1QuuljedoWZ6QmlDFgH6mDP7hVhMpWzgazO +J790IAQMiA3MbQ38zHh/9dPcBsoyMWcqIET48p8xwIOowRcW4GVfba3JZgoaNholuHfid XYo4bueb8GWyFs8KpUIHRFBdkgMDgqvstnazHv+Mozn4jS181ACO8DxPpGJhlp4lik+AXm H712bdd3kggypYoWZqrD2iQbRKEJo5xZ3s623a5/UMrYjucbPzWIWzCjDPbOWfcyUc5iST Q+vqcfYVxxJ4szN54ecwBsvWZOzllCIsjQk8BzSdEQvPsu49p8avOJmJU70WWg== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.27 X-Spam-Score: -0.27 X-Migadu-Queue-Id: DEED0385C0 X-TUID: EomPu1OaYRJ9 On 19/08/2022 12:58, Ihor Radchenko wrote: > Ypo writes: > >> I found it again: >> >> "If the headline contains a timestamp, it is removed from the link, >> which results in a wrong link—you should avoid putting a timestamp in >> the headline." >> >> https://orgmode.org/manual/Handling-Links.html#FOOT28 > > Unless I miss something, this footnote is plain wrong. The timestamps > are not removed. At least not when I run M-x org-store-link on a > headline with timestamp with emacs -Q. I have realized that "first wins" parsing principle (consider +a =b+ c*d=) may mean a problem for timestamp at the end of link text. So [[file:test.txt][Test [2023-01-28 Sat]]] requires a zero-width space after the bracket closing the timestamp. The same is applicable to fuzzy link to headings. So either [[*Heading \[2023-01-28 Sat\]][Heading [2023-01-28 Sat]​]] ZWS in between--------------------------------------------^^ or [[*Heading \[2023-01-28 Sat\]]] should be used. `org-insert-link' handles it correctly, but when typing links from keyboard, users should be aware of such kind of pitfall. So timestamps in headings may be source of some inconvenience. May it happen that in some old Org version timestamps at the end of headings were removed due by code intended to handle statistics cookie [1/10]?