all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthew Sauer <improv.philosophy@gmail.com>
To: nicholas.dokos@hp.com
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [Use Question] Capture and long lines
Date: Sun, 26 Jun 2011 22:17:35 -0500	[thread overview]
Message-ID: <BANLkTiktxh6sarv9cRV3MEWDF8+fb55FBw@mail.gmail.com> (raw)
In-Reply-To: <5115.1308766157@alphaville.americas.hpqcorp.net>

[-- Attachment #1: Type: text/plain, Size: 2087 bytes --]

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 <nicholas.dokos@hp.com> wrote:
> Matthew Sauer <improv.philosophy@gmail.com> wrote:
>
>> I have one structured org file I use for school that I leave in long
>> lines.  The 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.  My 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).  Org is recongnizing it as a
>> new line but it just runs in one long line.  Am I missing something
>> obvious or ????    If 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  :ENGL102: \n
>> DEADLINE:<2011-06-28 Tue 18:30>\n  ADDEND:<2011-06-28 Tue
>>  00:00>\n :
>>
>> Also the logbook just keeps adding in as one long line
>> :LOGBOOK: -State "STARTED  from "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
> '(                   ("t" "" entry (file+headline "~/lib/org/todo.org" "Tasks") "* TODO %?
>  %U %a" :prepend t)
>                     ...
> ))
>
> Nick
>

[-- Attachment #2: test.org --]
[-- Type: application/octet-stream, Size: 2608 bytes --]

* Configuration
#+TITLE:     Test.org
#+AUTHOR:    Matthew Sauer
#+EMAIL:     Improv.Philosophy@gmail.com
#+DATE:      2011-02-05 Sat
#+DESCRIPTION: 
#+KEYWORDS: 
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT: 
# Local Variables:
# mode: flyspell
# mode: longlines
# auto-fill-inhibit-regexp: "\\#\\+?"
# Local Variables:
# mode: flyspell
# mode: longlines
# fill-column: 130
# End:
* Tasks
** TODO Test todo \n :TEST:\n %G\n Added: [2011-06-26 Sun 12:50]\n \n 
** TODO Test2     :LOGBOOK:    - Refiled on [2011-06-26 Sun 12:56]    :END:  :TEST: %G Added: [2011-06-26 Sun 12:55] * Appts
** Recently Modified     :LOGBOOK:    :END:
** TODO Test3   :TEST: %G Added: [2011-06-26 Sun 22:05]
* Calendar

* Capture

Here are the capture templates


 '(org-capture-templates (quote (("H" "English Homework" entry (file+headline "/cygdrive/c/Dropbox/Org/Engl102.org" "Homework") "* TODO  %^{Description}   %^G \n             DEADLINE:%^{Deadline:}T\n             %T\\n             %?" :empty-lines 1) ("t" "TODO" entry (file+headline "/cygdrive/c/Dropbox/Org/Refile.org" "Refile") "* TODO %^{Brief Description} \n %^g\n %G\n Added: %U\n %?\n") ("j" "Journal/Blog/Private" entry (file+headline "/cygdrive/c/Dropbox/Org/Refile.org" "Refile") "* %^{Head Line} %U %^g\n Added:%T\n %i%?\n") ("a" "Appt" entry (file+headline "/cygdrive/c/Dropbox/Org/Refile.org" "Refile") "* %^{Brief Description}  %^g\n  %^{When?}T \n %?\n Added: %U %\n") ("s" "Someday" entry (file+headline "/cygdrive/c/Dropbox/Org/someday.org" "Someday") "* %^{Someday Heading} %U\n Added: %T\n	   %?\\n ") ("c" "Contact" entry (file+headline "/cygdrive/c/Dropbox/Org/Contacts.org" "Contacts") " * %^{Contact Name}\n :PROPERTIES:\n :EMAIL: %^{Contact Email}\n :PHONE: %^{Contact Phone}\n :NOTES: %^{Notes?}\n :END:\\n") ("e" "English Notes" entry (file+datetree "/cygdrive/c/Dropbox/Org/Engl102.org") "* %^{Headline} \n             %^g\n Added: %T\n %?\n" :empty-lines 1) ("u" "Theatre" entry (file+datetree "/cygdrive/c/Dropbox/Org/Thea143.org") "* %^{Class Session:} %^g\n Added: %T\n  %k\n %K\n %?\n" :empty-lines 1) ("l" "Clock This" entry (file+headline "/cygdrive/c/Dropbox/Org/Refile.org" "Refile") "* %^{What to clock}\n ADDED:%T\n %?\n            " :empty-lines 1 :clock-in t :clock-keep t))))



  reply	other threads:[~2011-06-27  3:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-22 17:16 [Use Question] Capture and long lines Matthew Sauer
2011-06-22 18:09 ` Nick Dokos
2011-06-27  3:17   ` Matthew Sauer [this message]
2011-06-27  6:39     ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTiktxh6sarv9cRV3MEWDF8+fb55FBw@mail.gmail.com \
    --to=improv.philosophy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.