From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Bug: org-clone-subtree-with-time-shift not asking for time-shift Date: Mon, 16 Jan 2017 23:30:14 +0100 Message-ID: <2017-01-16T23-27-40@devnull.Karl-Voit.at> References: <2017-01-16T12-42-31@devnull.Karl-Voit.at> <87h94yga8e.fsf@kyleam.com> <87h94y4rpx.fsf@nicolasgoaziou.fr> <87k29uy791.fsf@kyleam.com> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTFnM-00041v-UX for emacs-orgmode@gnu.org; Mon, 16 Jan 2017 17:30:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTFnJ-0001BU-SF for emacs-orgmode@gnu.org; Mon, 16 Jan 2017 17:30:32 -0500 Received: from [195.159.176.226] (port=57656 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTFnJ-0001BP-Kh for emacs-orgmode@gnu.org; Mon, 16 Jan 2017 17:30:29 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cTFnB-0007CD-5a for emacs-orgmode@gnu.org; Mon, 16 Jan 2017 23:30:21 +0100 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" To: emacs-orgmode@gnu.org * Kyle Meyer wrote: > > Thanks. The additional check looks good, as it replaces an error with a > more appropriate user-error and gives an error message that is a bit > more specific. > > However, the re-positioning of the org-back-to-heading call seems > problematic because the call is now wrapped in a save-excursion, but the > downstream code expects point to be at the beginning of the heading. > > When I call org-clone-subtree-with-time-shift with point at the end of > > *** heading <2017-02-28 Wed> > I get the following error: > Debugger entered--Lisp error: (error "Before first headline at position 1 in buffer *temp*") [...] > I think this is because beg isn't set to the beginning of the heading. > > But given Karl's recent email saying that the changes in maint fixed his > test cases, maybe I'm missing something ... I have to excuse myself: I tested not good enough: I only tested my cases for being asked for the time-shift and not finished executing the cases. You're right, I can confirm your issue. I get "Before first headline at position 1 in buffer *temp*" as well. -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/