emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-feed-update doesn't understand the file name of a target Org-file when it is not a constant
@ 2011-06-17 17:30 Евгений Курбатов
  2011-06-18 21:12 ` David Maus
  0 siblings, 1 reply; 2+ messages in thread
From: Евгений Курбатов @ 2011-06-17 17:30 UTC (permalink / raw)
  To: emacs-orgmode

Hello!

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

(setq debug-on-error t)
(org-mode)
(org-feed-update
 '("arxiv"
   "http://export.arxiv.org/rss/astro-ph"
   (concat "~/org/arxiv-" (format-time-string "%Y-%m-%d.org"))
   "arXiv.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
\"\211\312+\211,\203]

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.

Regards,
Evgeny

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

end of thread, other threads:[~2011-06-18 21:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17 17:30 org-feed-update doesn't understand the file name of a target Org-file when it is not a constant Евгений Курбатов
2011-06-18 21:12 ` David Maus

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