emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Robert Goldman <rpgoldman@sift.info>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Bug (?) in org-capture
Date: Thu, 14 Oct 2010 09:40:29 -0500	[thread overview]
Message-ID: <4CB7165D.9010306@sift.info> (raw)

I was trying to experiment for the first time using org-capture together
with w3m today, and I get an error.

I invoke org-capture, and was pleased to find that it built me a buffer
just fine, and made an org link for the URL of the w3m buffer.  So far,
so good.

Unfortunately, when I try to save the buffer, either with C-c C-c or C-c
C-w, I get an error.

The error is in org-capture-bookmark-last-stored-position.  Here:

(defun org-capture-bookmark-last-stored-position ()
  "Bookmark the last-captured position."
  (let* ((where (org-capture-get :position-for-last-stored 'local))
    ....)

WHERE gets bound to NIL, the return of ORG-CAPTURE-GET, causing an error.

I'm quite prepared to believe that I have this horribly misconfigured,
since I really didn't configure it at all, but it's disappointing that
the buffer creation works so well without configuration, but leaves me
in this pickle.  It's also disappointing that the refile command doesn't
work --- any chance of hacking it so that it does something sensible (I
was thinking involving interactive selection) when org-capture is not
yet configured?

AFAICT the direct cause of the error is that org-capture-current-plist
is NIL, and the 'local spec in this call means that we consult that
instead of org-capture-plist.

At this point my ability to understand the code peters out, and I'm
afraid I don't have anything useful to say.

best,
r

             reply	other threads:[~2010-10-14 14:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 14:40 Robert Goldman [this message]
2010-10-14 15:14 ` Bug (?) in org-capture Robert Goldman
2010-10-15  6:48   ` Carsten Dominik
2010-10-15 19:23     ` Robert Goldman

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=4CB7165D.9010306@sift.info \
    --to=rpgoldman@sift.info \
    --cc=emacs-orgmode@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 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).