emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-capture-templates and tables: HOWTO
@ 2014-07-28 10:29 Uwe Brauer
  2014-07-28 10:54 ` [partial solution] (was: org-capture-templates and tables: HOWTO) Uwe Brauer
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2014-07-28 10:29 UTC (permalink / raw)
  To: emacs-orgmode

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



Hello 

I am using org-capture-templates for a while but now I would like to
have a table in the target file, best would be something like this


| File      | Description                 |
|-----------+-----------------------------|
| name&Link | the purpose of this file is |

So I tried this entry (I don't know where to put the predicate prepend
or table-line...._


("t" "Table" table-line (file+headline "~/README.org" "Static") 
"%?\nEntered on %U\n %i\n %A")

But I see in the target file the following 

|              |
|--------------|
|              |
| Bad template |


So 

    -  what is wrong in my template?

    -  could the target table have more than one column?

thanks


Uwe Brauer 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5556 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [partial solution] (was: org-capture-templates and tables: HOWTO)
  2014-07-28 10:29 org-capture-templates and tables: HOWTO Uwe Brauer
@ 2014-07-28 10:54 ` Uwe Brauer
  0 siblings, 0 replies; 2+ messages in thread
From: Uwe Brauer @ 2014-07-28 10:54 UTC (permalink / raw)
  To: emacs-orgmode

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

>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:

   > Hello 

   > I am using org-capture-templates for a while but now I would like to
   > have a table in the target file, best would be something like this


   > | File      | Description                 |
   > |-----------+-----------------------------|
   > | name&Link | the purpose of this file is |

   > So I tried this entry (I don't know where to put the predicate prepend
   > or table-line...._


   > ("t" "Table" table-line (file+headline "~/README.org" "Static") 
   > "%?\nEntered on %U\n %i\n %A")
this 

("t" "Table" table-line (file+headline "~/README.org" "Static")
  "|%U|%A|%? Entered on %U %i|" :prepend t)

Does work 

This 
("T" "Table" table-line (file "~/README.org" "Static")
 "|%U|%A|%? Entered on %U %i|" :table-line-pos "II-3")

Does not 

Here is the bugtrace


,----
| 
| Debugger entered--Lisp error: (error "Capture template `T': Invalid
| table line specification \"II-3\"")
|   signal(error ("Capture template `T': Invalid table line specification
|   \"II-3\"")) cerror("Capture template `%s': %s" "T" "Invalid table line
|   specification \"II-3\"") apply(cerror "Capture template `%s': %s" ("T"
|   "Invalid table line specification \"II-3\"")) error("Capture template
|   `%s': %s" "T" "Invalid table line specification \"II-3\"")
|   byte-code("..." [error buffer-base-buffer string-match "\\`CAPTURE-"
|   buffer-name kill-buffer set-window-configuration org-capture-get
|   :return-to-wconf "Capture template `%s': %s" :key] 4) org-capture(nil)
|   call-interactively(org-capture)
`----


Uwe Brauer 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5556 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-28 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-28 10:29 org-capture-templates and tables: HOWTO Uwe Brauer
2014-07-28 10:54 ` [partial solution] (was: org-capture-templates and tables: HOWTO) Uwe Brauer

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).