From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce V Chiarelli Subject: Re: Insert datetree entry Date: Tue, 04 Apr 2017 12:25:17 -0700 Message-ID: <87efx87z71.fsf@topd0g> References: <87fuhp83ls.fsf@topd0g> <92332b50-c4a8-73a3-f506-c058fb54b9de@grinta.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvU4w-0006EO-Fq for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 15:25:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvU4t-0006WR-DN for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 15:25:22 -0400 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:34974) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvU4t-0006VY-8F for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 15:25:19 -0400 Received: by mail-pg0-x22a.google.com with SMTP id 81so161640926pgh.2 for ; Tue, 04 Apr 2017 12:25:19 -0700 (PDT) In-reply-to: <92332b50-c4a8-73a3-f506-c058fb54b9de@grinta.net> 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: Daniele Nicolodi Cc: emacs-orgmode@gnu.org 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. > > Cheers, > Daniele -- Bruce V. Chiarelli http://github.com/bccomm