From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Nicolodi Subject: Re: Insert datetree entry Date: Tue, 4 Apr 2017 13:50:08 -0600 Message-ID: <5052364e-47b7-f4c2-151d-ce42ea1f44a0@grinta.net> References: <87fuhp83ls.fsf@topd0g> <92332b50-c4a8-73a3-f506-c058fb54b9de@grinta.net> <87efx87z71.fsf@topd0g> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvUT1-00045X-31 for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 15:50:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvUSx-0002v2-7z for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 15:50:15 -0400 Received: from zed.grinta.net ([109.74.203.128]:53446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvUSw-0002uO-Sz for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 15:50:11 -0400 Received: from 688dnmac.campus.nist.gov (unknown [132.163.81.39]) (Authenticated sender: daniele) by zed.grinta.net (Postfix) with ESMTPSA id E6ED7E309B for ; Tue, 4 Apr 2017 19:50:09 +0000 (UTC) In-Reply-To: <87efx87z71.fsf@topd0g> 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 On 4/4/17 1:25 PM, Bruce V Chiarelli wrote: > > Daniele Nicolodi writes: > >> >> thanks for the hint, but I don't understand what `subtree-at-point` is >> in your code, it does not seem to be defined in my emacs and >> `org-datetree-find-date-create` has a third parameter that is >> interpreted as a boolean. I'm confused. > > Ah, yes I forgot that this is a fairly new feature. Sorry for the > confusion. In the latest Org, the optional keep-restriction parameter can be > > - t - make the datetree at the end of the current /view/ of the buffer, > - nil - make the datetree at the end of the file, even if it was narrowed > to a subtree before, or > - 'subtree-at-point - put the datetree as a subheading at the end of the > current heading. This one is new in Org 9.0.5. > > The first two options have been around for a long time, so if you get > rid of 'subtree-at-point it should be fine. It will default to nil. I would like t he functionality provided specifying 'subtree-at-point, but it has been introduced after the 3.0.5 release currently available on melpa :( Cheers, Daniele