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 OL+bMrVXsl9XcQAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 10:43:01 +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 kHohLrVXsl/eVQAAB5/wlQ (envelope-from ) for ; Mon, 16 Nov 2020 10:43:01 +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 164DF9402A5 for ; Mon, 16 Nov 2020 10:43:01 +0000 (UTC) Received: from localhost ([::1]:37618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kebyN-000788-Iq for larch@yhetil.org; Mon, 16 Nov 2020 05:42:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1keKSJ-00014w-Ge for emacs-orgmode@gnu.org; Sun, 15 Nov 2020 11:00:43 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:25058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1keKSG-0005V3-HQ for emacs-orgmode@gnu.org; Sun, 15 Nov 2020 11:00:43 -0500 Date: Sun, 15 Nov 2020 16:00:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1605456037; bh=oEp437myRb3tBayPk0+ZyxqgJ2cKggFJrxmUeeA6T0s=; h=Date:To:From:Reply-To:Subject:From; b=pjtK7nm9ewH9eP2Sqdkwnt0If7z5fNVaHuhg7zbKyxTP41LC5yPeNsCm847Piuldb GInY9Qa2PJsDVJ1JE6hKm71xCnMxcCi+jqXgzGvCbcI1ADyQgBi+2CmFD40lMerLgI 0ApySTM/wGjEnujbWntnAvctlFx9A45rFe7oSO8TdPkHiNA/CB0AsaHoCYbpUG4mes +f/KP/o4L/maHmNn4KTcKT3PPol2hMktFS2Z/zUA8gEmH/5Kw3CJ0M5S55mtSCUlFg EMGVvboJjgB6KD//8LYIi26Nu4g8c6LzWTqELxwwr1IKOHdQUtukU4LAyhMAcS4wMZ ica+A3oj1GZrg== To: "emacs-orgmode@gnu.org" From: skaphle@pm.me Subject: Bug: org-clone-subtree-with-time-shift throws error [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)] Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha256; boundary="---------------------93f4416dad6af2c3c7b25be60f7e42a2"; charset=utf-8 Received-SPF: pass client-ip=185.70.40.131; envelope-from=skaphle@pm.me; helo=mail-40131.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/15 11:00:38 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 16 Nov 2020 05:41:30 -0500 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: , Reply-To: skaphle@pm.me Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail header.b=pjtK7nm9; dmarc=pass (policy=quarantine) header.from=pm.me; 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-Spam-Score: -3.81 X-TUID: CZ+pvPhHI1pB This is an OpenPGP/MIME signed message (RFC 4880 and 3156) -----------------------93f4416dad6af2c3c7b25be60f7e42a2 Content-Type: multipart/mixed;boundary=---------------------bdca7fde8b24b6aa109d35208de6cf8e -----------------------bdca7fde8b24b6aa109d35208de6cf8e Content-Transfer-Encoding: quoted-printable Content-Type: text/plain;charset=utf-8 Summary: using org-clone-subtree-with-time-shift on an entry with the ID p= roperty and a timestamp causes an error or does not create different IDs, = which worked before 27.1. Long Description: I have a calendar file with a lot of entries, but I slimmed it down to a M= WE: =3D=3D=3D begin MWE =3D=3D=3D * my appointment with id :PROPERTIES: :ID: 048c5a49-1aed-45d4-b7a9-34caf4f13266 :END: <2020-11-15 Sun 15:30> example text =3D=3D=3D end MWE =3D=3D=3D I create such an entry routinely via a capture template with a timestamp a= nd I add the text, and the ID is created with (add-hook 'org-capture-prepa= re-finalize-hook 'org-id-get-create). For repeating tasks, 10 weeks ago an= d before (i.e. before I updated to 27.1), I used to use `M-x org-clone-sub= tree-with-time-shift 10 +1w ` and I got 10 repetitions, e= ach with a separate unique ID. I tried this now and I get an error "wrong-type-argument stringp nil", wit= h the backtrace described below. If I change the order of the timestamp an= d the properties drawer in the MWE, I get the date-shifted clones but each= with the same ID. In my calendar file with lots of entries, I still get t= he same error if I change the order, so I suspect that the function is con= text sensitive. Anyway to reproduce the error, 1. save the above MWE in an org file 2. open the file with emacs -Q 3. activate debugger with `M-x toggle-debug-on-error ` 4. run `M-x org-clone-subtree-with-time-shift 10 +1w ` The following backtrace is then produced: =3D=3D=3D begin backtrace =3D=3D=3D Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("^/tmp_mnt/" nil) abbreviate-file-name(nil) org-id-add-location("9f1a8e57-e9be-42aa-a113-f8f478cc2a1b" nil) org-id-get(1 create) org-id-get-create(t) org-clone-subtree-with-time-shift(10) funcall-interactively(org-clone-subtree-with-time-shift 10) call-interactively(org-clone-subtree-with-time-shift record nil) command-execute(org-clone-subtree-with-time-shift record) execute-extended-command(nil "org-clone-subtree-with-time-shift" "org-cl= one") funcall-interactively(execute-extended-command nil "org-clone-subtree-wi= th-time-shift" "org-clone") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) =3D=3D=3D end backtrace =3D=3D=3D Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.2= 2, cairo version 1.17.3) of 2020-08-28 Package: Org mode version 9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/or= g/) -----------------------bdca7fde8b24b6aa109d35208de6cf8e Content-Type: application/pgp-keys; filename="publickey - skaphle@pm.me - 0x0422F3DC.asc"; name="publickey - skaphle@pm.me - 0x0422F3DC.asc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="publickey - skaphle@pm.me - 0x0422F3DC.asc"; name="publickey - skaphle@pm.me - 0x0422F3DC.asc" LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tDQpWZXJzaW9uOiBPcGVuUEdQLmpz IHY0LjEwLjgNCkNvbW1lbnQ6IGh0dHBzOi8vb3BlbnBncGpzLm9yZw0KDQp4c0JOQkYwdUpSc0JD QURuWVhqZlFnVTFHcjVET0ZVeVE1bWZzcTh3SHZ3RnM0dG8rVkkzdkNUa0JVQWENCmt4Mkx4aWQ3 SDRiU0VOdURKRVBpNGxNcEpBOUtRakx4dWpZZGxOOGF2ME43L3J2eEgvWHUzRkxCdGlGYw0KNm14 azArV04rWkZjNmNjYUFtNGttR2RBcH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b25be60f7e42a2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wsBzBAEBCAAGBQJfsVCdACEJECPyJkN+MZ9mFiEEBCLz3FU3EPrGlRxrI/Im Q34xn2aucQgAoAbtVmWxZ4Bltci4GjYuFM9x+O3L/0frToPrpccZg0nkQgRW WthXJgJjv3l3X9CxnvbmNHICACkKvLhrEDBSePePvXiTU2Mlw4LEJid6ail3 UUC/DD0qQoN2EugH8OslLgATJjv35Bv1o703rAtLZaral+zIPn6DGzXJPgI8 k06+cD0BE/1YX8uhWK21UQt7+fgp98GTBd0qObTCLQiOxp/DqSxMNlPhJzGE uhzGlbLC8upsBN+CbOGNkeSIFKJHQmYDCgbikEf/5H51cKtMzIV610bXzN5k DSaHd4VfbzQwnit4ZrqyOGOV/exNnwlPDxXWv0RA0AFvlnmngvCWXg== =awQw -----END PGP SIGNATURE----- -----------------------93f4416dad6af2c3c7b25be60f7e42a2--