From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Sauer Subject: Re: [Use Question] Capture and long lines Date: Sun, 26 Jun 2011 22:17:35 -0500 Message-ID: References: <5115.1308766157@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=00504502d2d721c00c04a6a8fe46 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qb2KT-0005V6-JO for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 23:17:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qb2KP-0001qw-M6 for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 23:17:41 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:57952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qb2KP-0001qI-5e for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 23:17:37 -0400 Received: by eyd9 with SMTP id 9so1574003eyd.0 for ; Sun, 26 Jun 2011 20:17:35 -0700 (PDT) In-Reply-To: <5115.1308766157@alphaville.americas.hpqcorp.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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Org Mode Mailing List --00504502d2d721c00c04a6a8fe46 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I can refile into the longlines format buffer and it looks fine until I close and reopen the buffer, then it is all drawn out into one long line, the headline instead of broken up. One other behavior I have noticed is that when I change state it generates the logbook and changes the state but then changes it from :LOGBOOK: - state changed from etc :END: to all being in one long line like :LOGBOOK - state changed from etc :END: . . . I have attatched a sample buffer with some sample TODO's refiled in from capture and the capture templates out of my .emacs in it as well. Matthew On Wed, Jun 22, 2011 at 1:09 PM, Nick Dokos wrote: > Matthew Sauer wrote: > >> I have one structured org file I use for school that I leave in long >> lines. =A0The capture template I have setup has \n at the end of what I >> would want to be a line but is still stringing them together in one >> long line until i reach my wrap point. =A0My headline has my deadline in >> it and org recognizes the deadline but that isn't working to get a new >> line inserted (an actual hard return). =A0Org is recongnizing it as a >> new line but it just runs in one long line. =A0Am I missing something >> obvious or ???? =A0 =A0If it isn't something obvious I will make up a >> sample target file, example of a capture and send them out to the >> group >> >> * WORKING Read Chapter 9 =A0:ENGL102: \n >> DEADLINE:<2011-06-28 Tue 18:30>\n =A0ADDEND:<2011-06-28 Tue >> =A000:00>\n : >> >> Also the logbook just keeps adding in as one long line >> :LOGBOOK: -State "STARTED =A0from "TODO" [2011-06-22 Wed 09:56] :END: >> >> > > Looks as if you are escaping the newlines - are you using \\n in your > templates? If so, try losing one of the backslashes - or put explicit > newlines in the string which should amount to the same thing: > > (setq org-capture-templates > '( =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("t" "" entry (file+headline "~/li= b/org/todo.org" "Tasks") "* TODO %? > =A0%U %a" :prepend t) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ... > )) > > Nick > --00504502d2d721c00c04a6a8fe46 Content-Type: application/octet-stream; name="test.org" Content-Disposition: attachment; filename="test.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gpeut3gu0 KiBDb25maWd1cmF0aW9uDQojK1RJVExFOiAgICAgVGVzdC5vcmcNCiMrQVVUSE9SOiAgICBNYXR0 aGV3IFNhdWVyDQojK0VNQUlMOiAgICAgSW1wcm92LlBoaWxvc29waHlAZ21haWwuY29tDQojK0RB VEU6ICAgICAgMjAxMS0wMi0wNSBTYXQNCiMrREVTQ1JJUFRJT046IA0KIytLRVlXT1JEUzogDQoj K0xBTkdVQUdFOiAgZW4NCiMrT1BUSU9OUzogICBIOjMgbnVtOnQgdG9jOnQgXG46bmlsIEA6dCA6 OnQgfDp0I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