From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-clone-subtree-with-time-shift not asking for time-shift Date: Mon, 16 Jan 2017 22:31:22 +0100 Message-ID: <87h94y4rpx.fsf@nicolasgoaziou.fr> References: <2017-01-16T12-42-31@devnull.Karl-Voit.at> <87h94yga8e.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTEsG-0004Yk-4S for emacs-orgmode@gnu.org; Mon, 16 Jan 2017 16:31:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTEsF-0007fx-AL for emacs-orgmode@gnu.org; Mon, 16 Jan 2017 16:31:32 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:34868) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cTEsF-0007f4-4G for emacs-orgmode@gnu.org; Mon, 16 Jan 2017 16:31:31 -0500 In-Reply-To: <87h94yga8e.fsf@kyleam.com> (Kyle Meyer's message of "Mon, 16 Jan 2017 12:56:01 -0500") 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: Kyle Meyer Cc: Karl Voit , Karl Voit , emacs-orgmode@gnu.org Hello, Kyle Meyer writes: > Subject: [PATCH] org-clone-subtree-with-time-shift: Fix timestamp search > > * lisp/org.el (org-clone-subtree-with-time-shift): Move to the > beginning of the heading before the timestamp search so that the > user will be prompted for a time shift even if point is after the > timestamp. > > This also prevents an "Invalid search bound" error if point is on the > blank line following a body-less heading: > > * single line <2017-02-28 Wed> > Thank you. I applied your patch with an additional check. Regards, -- Nicolas Goaziou