From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julian Kniephoff Subject: Documentation of org-clone-subtree-with-timeshift does not match actual behaviour Date: Sun, 12 Oct 2014 00:26:23 +0200 Message-ID: <43C10E4D-FE66-42A6-BD6E-7C938044E0B5@uos.de> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_38110F2D-D710-4EF5-A6F6-F24338E3A99C" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd57V-0007QA-W4 for emacs-orgmode@gnu.org; Sat, 11 Oct 2014 18:26:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xd57O-0006KG-GM for emacs-orgmode@gnu.org; Sat, 11 Oct 2014 18:26:37 -0400 Received: from vm135.rz.uni-osnabrueck.de ([131.173.16.10]:42714 helo=smtp-auth.serv.Uni-Osnabrueck.DE) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd57O-0006JP-6S for emacs-orgmode@gnu.org; Sat, 11 Oct 2014 18:26:30 -0400 Received: from julians-mbp.multi.box (xdsl-92-252-35-139.dip.osnanet.de [92.252.35.139]) (authenticated bits=0) by smtp-auth.serv.Uni-Osnabrueck.DE (8.13.8/8.13.8) with ESMTP id s9BMQN1V027425 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sun, 12 Oct 2014 00:26:25 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --Apple-Mail=_38110F2D-D710-4EF5-A6F6-F24338E3A99C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hello everyone, I hope this is the right place to post things like this, and that I = included enough information. If not, could somebody please tell me where = I should go with this and what information you need? A while ago I experimented with calling org-clone-subtree-with-timeshift = from an elisp program. I just wanted to clone a subtree without ever = touching any timestamps in it. I looked at the documentation and learnt = that passing either nil or =93=94 (the empty string) for the second = parameter should do exactly that. I tried passing nil first, since I found that semantically more correct = than passing =93=94 for =93no time shift=94, only to notice that this = does not do what I want. If the entry to be cloned contains a timestamp, = I still get prompted for a repeater, which is then used to change the = timestamp in the clones. This does not happen if I pass the empty = string, even if the subtree contains timestamps. I don=92t know what the intended behaviour of this function is, but in = any case, it does not match its documentation. I attached a minimal org file to test the behaviour of the function: Entry A contains no timestamp, while entry B does. In my opinion both calls ;; call 1 (org-clone-subtree-with-timeshift 1 nil) and ;; call 2 (org-clone-subtree-with-timeshift 1 =93=94) should do the same with both entries, namely create one copy of them, = without changing the timestamp if applicable and without prompting for a = shift. Call 2 does exactly this for both examples. However, call 1 only does it = for entry A. For entry B, it prompts for a repeater to use as a time = shift and when entering anything but the empty string, it also uses it = to shift the timestamp in entry B. Here is the relevant information from org-submit-bug-report: Emacs : GNU Emacs 24.3.1 (x86_64-apple-darwin13.4.0, NS = apple-appkit-1265.21) of 2014-09-29 on Julians-MacBook-Pro.local Package: Org-mode version 8.2.8 (8.2.8-elpaplus @ = /Users/jules/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20141006/) Best wishes, Julian --Apple-Mail=_38110F2D-D710-4EF5-A6F6-F24338E3A99C Content-Disposition: attachment; filename=cloning.org Content-Type: application/octet-stream; name="cloning.org" Content-Transfer-Encoding: 7bit * A * B <2014-10-11 Sat> --Apple-Mail=_38110F2D-D710-4EF5-A6F6-F24338E3A99C--