Thomas S. Dye <tsd@tsdye.com> wrote:("work":base-directory "~/org/temp/":base-extension "org":publishing-directory "~/org/temp/publish-work/":publishing-function org-publish-org-to-latex:select-tags ("@WORK"):title "Work Notes":include ("index.org") <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<:exclude "\\.org$")))---- .minimal.emacs -----Debugger entered--Lisp error: (wrong-type-argument stringp("index.org")) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
This is complaining that ``("index.org")'' is not a string, and indeed
it isn't: it's a list with one element. Should the :include line above
be
:include "index.org"
perhaps? But I'm shooting from the hip here, so take it with the appropriate
grain of salt.
Nick
The :include property may be used to include extra files. Itsvalue may be a list of filenames to include. The filenames areconsidered relative to the base directory.
(defun org-publish-get-project-from-filename (filename &optional up)"Return the project FILENAME belongs."(let* ((filename (expand-file-name filename))project-name)(catch 'p-found(dolist (prj org-publish-project-alist)(unless (plist-get (cdr prj) :components);; [[info:org:Selecting%20files]] shows how this is supposed to work:(let* ((r (plist-get (cdr prj) :recursive))(b (expand-file-name (plist-get (cdr prj) :base-directory)))(x (plist-get (cdr prj) :base-extension))(e (plist-get (cdr prj) :exclude))(i (plist-get (cdr prj) :include))(xm (concat "^" b (if r ".+" "[^/]+") "\\.\\(" x "\\)$")))(when (or(and i (string-match i filename))