emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Евгений Курбатов" <EvgenyKurbatov@yandex.ru>
To: emacs-orgmode@gnu.org
Subject: org-feed-update doesn't understand the file name of a target Org-file when it is not a constant
Date: Fri, 17 Jun 2011 21:30:51 +0400	[thread overview]
Message-ID: <1301421308331851@web3.yandex.ru> (raw)


I do some elisp code to download the latest RSS feeds from some resource:

(setq debug-on-error t)
   (concat "~/org/arxiv-" (format-time-string "%Y-%m-%d.org"))

The goal is to get an unique Org file for feeds per day. However, the error is rising:

Debugger entered--Lisp error: (wrong-type-argument stringp (concat "~/org/arxiv-" (format-time-string "%Y-%m-%d.org")))
  expand-file-name((concat "~/org/arxiv-" (format-time-string "%Y-%m-%d.org")))
  find-file-noselect((concat "~/org/arxiv-" (format-time-string "%Y-%m-%d.org")) nil nil nil)
  find-file((concat "~/org/arxiv-" (format-time-string "%Y-%m-%d.org")))
  org-feed-goto-inbox-internal((concat "~/org/arxiv-" (format-time-string "%Y-%m-%d.org")) "arXiv.org")
  byte-code("\306   \"\307\n\"\310\311

When I hardcode a string instead of (concat ...) everything is ok. The subject is also not in format-time-string, it is exactly in concat. The type returned by concat is the stringp, so the situation is very strange. I also tried to use org-feed-alist, and local variable instead of calling concat, nothing helps.


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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 17:30 Евгений Курбатов [this message]
2011-06-18 21:12 ` org-feed-update doesn't understand the file name of a target Org-file when it is not a constant David Maus

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:

  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=1301421308331851@web3.yandex.ru \
    --to=evgenykurbatov@yandex.ru \
    --cc=emacs-orgmode@gnu.org \


* 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


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).