emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Johan Friis <mail@alterecco.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: [PATCH] org-capture - using `file' as template
Date: Wed, 14 Jul 2010 22:01:39 +0200	[thread overview]
Message-ID: <FFC8C75A-B5A5-4C5E-9624-480A33FD7788@gmail.com> (raw)
In-Reply-To: <87sk3l99g6.fsf@alterecco.net>

Hi Johan,

thanks for checking after  me - sometimes I should just shut up
and trust others.

Thanks!

- Carsten

On Jul 14, 2010, at 8:58 PM, Johan Friis wrote:

>
> Hi Carsten,
>
> I did not have time to try out capture until now, and there is still a
> bug. When providing (file "...") as template `org-capture-set-plist'
> still generates a default template. Using the patch from David seems  
> to
> work fine. Here is a diff against current head.
>
> - Johan
>
> diff --git a/lisp/org-capture.el b/lisp/org-capture.el
> index f79a20b..0f3a29b 100644
> --- a/lisp/org-capture.el
> +++ b/lisp/org-capture.el
> @@ -981,7 +981,7 @@ Point will remain at the first line after the  
> inserted text."
>   (org-capture-put :key (car entry) :description (nth 1 entry)
> 		   :target (nth 3 entry))
>   (let ((txt (nth 4 entry)) (type (or (nth 2 entry) 'entry)))
> -    (when (or (not (stringp txt)) (not (string-match "\\S-" txt)))
> +    (when (or (not txt) (and (stringp txt) (not (string-match "\ 
> \S-" txt))))
>       ;; The template may be empty or omitted for special types.
>       ;; Here we insert the default templates for such cases.
>       (cond
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

      reply	other threads:[~2010-07-14 20:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-14  2:30 [PATCH] org-capture - using `file' as template Johan Friis
2010-07-14  7:08 ` David Maus
2010-07-14 13:54   ` Johan Friis
2010-07-14  9:04 ` Carsten Dominik
2010-07-14 18:58   ` Johan Friis
2010-07-14 20:01     ` Carsten Dominik [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=FFC8C75A-B5A5-4C5E-9624-480A33FD7788@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@alterecco.net \
    /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 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).