all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Re: org-capture broken? [latest org master build]
Date: Mon, 27 Jun 2016 16:18:29 +0000	[thread overview]
Message-ID: <CAFyQvY1=Z3umSYgegqrPJow3McUmkwjmL2aWRcwM0mo5DRXa0g@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY37iNhUBvpkFjpOJq4ZYCZe=VeHi_CGQL=PmhLwABmHPQ@mail.gmail.com>

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

I just realized that now sexp's are not evaluated in org-capture-templates
(
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=5485170263a46fa17db67b0324c4c4e48bcdfe49
 ).

Should this be added to ORG-NEWS for org 9.x?

Earlier I had the 'expand-file-name' form inside the org-capture-templates.
Moving it out helped.

    (defvar modi/org-capture-journal-file (expand-file-name "journal.org"
foo-directory))
    (defvar modi/org-capture-notes-file (expand-file-name "notes.org"
foo-directory))
    (setq org-capture-templates
          '(("j" "Journal" entry ; `org-capture' binding + j
             (file+datetree modi/org-capture-journal-file)
             "\n* %?\n  Entered on %U")
            ("n" "Note" entry ; `org-capture' binding + n
             (file modi/org-capture-notes-file)
             "\n* %?\n  Context:\n    %i\n  Entered on %U")))


On Mon, Jun 27, 2016 at 11:16 AM Kaushal Modi <kaushal.modi@gmail.com>
wrote:

> Hi all,
>
> My org version is
>
> Org-mode version 8.3.4 (release_8.3.4-1019-gd44086 @
> /home/kmodi/usr_local/apps/6/emacs/emacs-25/share/emacs/site-lisp/org/)
>
> After doing M-x org-capture, when I pick one of my templates, I get:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   looking-at(nil)
>   org-fix-position-after-promote()
>   org-do-demote()
>   org-datetree-insert-line(2016 6 nil nil)
>   org-datetree--find-create("^\\*+[ ]+%d-\\([01][0-9]\\) \\w+$" 2016 6)
>   org-datetree-find-date-create((6 27 2016))
>   org-capture-set-target-location()
>   org-capture(nil)
>   funcall-interactively(org-capture nil)
>   call-interactively(org-capture nil nil)
>   command-execute(org-capture)
>
> Looking at
>
> (defun org-fix-position-after-promote ()
>   "Fix cursor position and indentation after demoting/promoting."
>   (let ((pos (point)))
>     (when (save-excursion
>    (beginning-of-line 1)
>    (looking-at org-todo-line-regexp)
>    (or (equal pos (match-end 1)) (equal pos (match-end 2))))
>       (cond ((eobp) (insert " "))
>    ((eolp) (insert " "))
>    ((equal (char-after) ?\ ) (forward-char 1))))))
>
> I see that the value of org-todo-line-regexp is nil.
>
> Is anyone else seeing that?
>
> Thanks.
> --
>
> --
> Kaushal Modi
>
-- 

-- 
Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 4452 bytes --]

      reply	other threads:[~2016-06-27 16:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-27 15:16 org-capture broken? [latest org master build] Kaushal Modi
2016-06-27 16:18 ` Kaushal Modi [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

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

  git send-email \
    --in-reply-to='CAFyQvY1=Z3umSYgegqrPJow3McUmkwjmL2aWRcwM0mo5DRXa0g@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.