From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: extra newlines in TYPE checkitem for capture-templates Date: Thu, 23 Oct 2014 19:57:59 -0700 Message-ID: <87siiegonc.fsf@uw.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhV5V-0000rc-HV for emacs-orgmode@gnu.org; Thu, 23 Oct 2014 22:58:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhV5P-0007HS-H8 for emacs-orgmode@gnu.org; Thu, 23 Oct 2014 22:58:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:48762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhV5P-0007H2-A1 for emacs-orgmode@gnu.org; Thu, 23 Oct 2014 22:58:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XhV5N-0000s8-4d for emacs-orgmode@gnu.org; Fri, 24 Oct 2014 04:58:41 +0200 Received: from 75-149-173-2-washington.hfc.comcastbusiness.net ([75.149.173.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Oct 2014 04:58:41 +0200 Received: from algebrat by 75-149-173-2-washington.hfc.comcastbusiness.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Oct 2014 04:58:41 +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 I am prepending a checkboxed plain list item to a file named "pomodoro.org" (I'm not really doing pomodoro here anymore, it started as this but the unique filename stuck, and it is my ad-hoc datetree). It is organized much like a datetree, but flatter and newest first, thus the use of prepend. However, the capture buffer includes two extra newlines, which I must get rid of before or after completing the capture. Is this desired behavior for capture-templates TYPE checkitem? I am still on ELPA version of org, 8.2.10. Here is my #+BEGIN_SRC emacs-lisp (setq pomodoro "~/pomodoro.org") (setq org-capture-templates `(("p" "pomodoro, checklist" checkitem (file ,pomodoro) "" :prepend t :empty-lines 0 :empty-lines-before 0 :empty-lines-after 0 ;; :unnarrowed t ))) #+END_SRC The result of consecutive captures looks like: #+BEGIN_SRC org - [ ] a second capture - [ ] a first capture #+END The spacing is doubled if I use `:unnarrowed t'. I have also tried `(file+regexp ,pomodoro "- \\[")', but I still get the extra line. A solution would be to use file+headline, then not using :prepend prevents an extra line, but my headline is the date and varies. Thank you, -- Brady