emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem with org-publish :include
@ 2009-04-28 12:02 Rick Moynihan
  2009-04-30 11:30 ` Rick Moynihan
  2009-05-04  3:22 ` Carsten Dominik
  0 siblings, 2 replies; 4+ messages in thread
From: Rick Moynihan @ 2009-04-28 12:02 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

I am using org-mode v6.26d (from the git repo) and keep all my org files 
in a single ~/org directory.  I'm trying to setup a new org-publish 
project that publishes a single org-mode file (meeting-notes.org) and 
excludes all the others.  Here's the relevant bit of my 
org-publish-project-alist:

(setq org-publish-project-alist
       (list
        '("minutes" . (:base-directory "/home/rick/org/"
                                         :base-extension "org"
                   :publishing-directory "/home/rick/public_html/minutes"
                   :exclude "\\.org$"
                   :include "meeting-notes.org"
                   :with-section-numbers nil
                   :table-of-contents nil
                   :style "<link rel=stylesheet href=\"mystyle.css\" 
type=\"text/css\">"))

; ...

))

The problem is that I can't seem to get the :include property working. 
With the above settings crashing on org-publish-project with the error:

Wrong type argument: sequencep, 101

I have narrowed it down to the include parameter, but don't know what is 
wrong with my config.  I have also tried setting :include to a (list 
"meeting-notes.org") with a similar error.

Is this a bug in org-mode, my config or something else.  Any help 
greatfully appreciated!!!

R.

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

* Re: Problem with org-publish :include
  2009-04-28 12:02 Problem with org-publish :include Rick Moynihan
@ 2009-04-30 11:30 ` Rick Moynihan
  2009-05-04  3:22 ` Carsten Dominik
  1 sibling, 0 replies; 4+ messages in thread
From: Rick Moynihan @ 2009-04-30 11:30 UTC (permalink / raw)
  To: emacs-orgmode

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

I'm still experiencing this org-mode bug; and haven't found a solution 
other than possibly partitioning my files into seperate 
base-directories; which though workable feels less flexible than the 
:include/:exclude regexp solutoin.

Can anyone tell me if the :include option works for them?

I've pasted the stacktrace I get with toggle-debug-on-error below; 
Thanks again



Rick Moynihan wrote:
> Hi all,
> 
> I am using org-mode v6.26d (from the git repo) and keep all my org files 
> in a single ~/org directory.  I'm trying to setup a new org-publish 
> project that publishes a single org-mode file (meeting-notes.org) and 
> excludes all the others.  Here's the relevant bit of my 
> org-publish-project-alist:
> 
> (setq org-publish-project-alist
>        (list
>         '("minutes" . (:base-directory "/home/rick/org/"
>                                          :base-extension "org"
>                    :publishing-directory "/home/rick/public_html/minutes"
>                    :exclude "\\.org$"
>                    :include "meeting-notes.org"
>                    :with-section-numbers nil
>                    :table-of-contents nil
>                    :style "<link rel=stylesheet href=\"mystyle.css\" 
> type=\"text/css\">"))
> 
> ; ...
> 
> ))
> 
> The problem is that I can't seem to get the :include property working. 
> With the above settings crashing on org-publish-project with the error:
> 
> Wrong type argument: sequencep, 101
> 
> I have narrowed it down to the include parameter, but don't know what is 
> wrong with my config.  I have also tried setting :include to a (list 
> "meeting-notes.org") with a similar error.
> 
> Is this a bug in org-mode, my config or something else.  Any help 
> greatfully appreciated!!!
> 
> R.
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 


[-- Attachment #2: stack.txt --]
[-- Type: text/plain, Size: 2788 bytes --]

Debugger entered--Lisp error: (wrong-type-argument sequencep 101)
  #[(f) "Ä\b	P!\x1aÅ\n\v\"ƒ\x11\0\v‚\x16\0\n\vB‰\x13)‡" [base-dir f x org-publish-temp-files expand-file-name memql] 3](101)
  mapc(#[(f) "Ä\b	P!\x1aÅ\n\v\"ƒ\x11\0\v‚\x16\0\n\vB‰\x13)‡" [base-dir f x org-publish-temp-files expand-file-name memql] 3] "meeting-notes.org")
  org-publish-get-base-files(("minutes" :base-directory "/home/rick/org/" :base-extension "org" :publishing-directory "/home/rick/public_html/org" :exclude "\\.org$" :include "meeting-notes.org" :with-section-numbers nil :table-of-contents t :style "<link rel=stylesheet href=\"mystyle.css\" type=\"text/css\">") "\\.org$")
  #[(project) "\bA\x19Æ	Ç\"\x1aÆ	È\"^[Æ	É\"†\x15\0Ê\x1cÆ	Ë\"†\x1e\0Ì\x1dÆ	Í\"\x1e\x12Æ	Î\"\x1e\x13Ï\b\n\"\x1e\x14Ð\x1e\x15\x0e\x12ƒ=\0\x0e\x12 ˆ\vƒF\0
\b\f\"ˆ\x0e\x14‰A\x16\x14@‰\x16\x15ƒ\\\0Ñ\x0e\x15\b\"ˆ‚F\0\x0e\x13…d\0\x0e\x13 .	‡" [project project-plist exclude-regexp index-p index-filename index-function plist-get :exclude :auto-index :index-filename "sitemap.org" :index-function org-publish-org-index :preparation-function :completion-function org-publish-get-base-files nil org-publish-file preparation-function completion-function files file] 3](("minutes" :base-directory "/home/rick/org/" :base-extension "org" :publishing-directory "/home/rick/public_html/org" :exclude "\\.org$" :include "meeting-notes.org" :with-section-numbers nil :table-of-contents t :style "<link rel=stylesheet href=\"mystyle.css\" type=\"text/css\">"))
  mapc(#[(project) "\bA\x19Æ	Ç\"\x1aÆ	È\"^[Æ	É\"†\x15\0Ê\x1cÆ	Ë\"†\x1e\0Ì\x1dÆ	Í\"\x1e\x12Æ	Î\"\x1e\x13Ï\b\n\"\x1e\x14Ð\x1e\x15\x0e\x12ƒ=\0\x0e\x12 ˆ\vƒF\0
\b\f\"ˆ\x0e\x14‰A\x16\x14@‰\x16\x15ƒ\\\0Ñ\x0e\x15\b\"ˆ‚F\0\x0e\x13…d\0\x0e\x13 .	‡" [project project-plist exclude-regexp index-p index-filename index-function plist-get :exclude :auto-index :index-filename "sitemap.org" :index-function org-publish-org-index :preparation-function :completion-function org-publish-get-base-files nil org-publish-file preparation-function completion-function files file] 3] (("minutes" :base-directory "/home/rick/org/" :base-extension "org" :publishing-directory "/home/rick/public_html/org" :exclude "\\.org$" :include "meeting-notes.org" :with-section-numbers nil :table-of-contents t :style "<link rel=stylesheet href=\"mystyle.css\" type=\"text/css\">")))
  org-publish-projects((("minutes" :base-directory "/home/rick/org/" :base-extension "org" :publishing-directory "/home/rick/public_html/org" :exclude "\\.org$" :include "meeting-notes.org" :with-section-numbers nil :table-of-contents t :style "<link rel=stylesheet href=\"mystyle.css\" type=\"text/css\">")))
  byte-code("\b‰\x19?…\b\0\n\x1aÅ\v†\x17\0ÆÇÈ\fÉÊ$\f\"C!*‡" [current-prefix-arg force org-publish-use-timestamps-flag project org-publish-project-alist org-publish-projects assoc org-ido-completing-read "Publish project: " nil t] 8)
  org-publish-project(nil)
  call-interactively(org-publish-project)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)


[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Problem with org-publish :include
  2009-04-28 12:02 Problem with org-publish :include Rick Moynihan
  2009-04-30 11:30 ` Rick Moynihan
@ 2009-05-04  3:22 ` Carsten Dominik
  2009-05-04  9:50   ` Rick Moynihan
  1 sibling, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2009-05-04  3:22 UTC (permalink / raw)
  To: Rick Moynihan; +Cc: emacs-orgmode


On Apr 28, 2009, at 2:02 PM, Rick Moynihan wrote:

> Hi all,
>
> I am using org-mode v6.26d (from the git repo) and keep all my org  
> files in a single ~/org directory.  I'm trying to setup a new org- 
> publish project that publishes a single org-mode file (meeting- 
> notes.org) and excludes all the others.  Here's the relevant bit of  
> my org-publish-project-alist:
>
> (setq org-publish-project-alist
>      (list
>       '("minutes" . (:base-directory "/home/rick/org/"
>                                        :base-extension "org"
>                  :publishing-directory "/home/rick/public_html/ 
> minutes"
>                  :exclude "\\.org$"
>                  :include "meeting-notes.org"
>                  :with-section-numbers nil
>                  :table-of-contents nil
>                  :style "<link rel=stylesheet href=\"mystyle.css\"  
> type=\"text/css\">"))
>
> ; ...
>
> ))
>
> The problem is that I can't seem to get the :include property  
> working. With the above settings crashing on org-publish-project  
> with the error:
>
> Wrong type argument: sequencep, 101
>
> I have narrowed it down to the include parameter, but don't know  
> what is wrong with my config.  I have also tried setting :include to  
> a (list "meeting-notes.org") with a similar error.
>
> Is this a bug in org-mode, my config or something else.  Any help  
> greatfully appreciated!!!


Does

                  :include ("meeting-notes.org")

work better?  The documentation says it must be a list,
I have never used it.

- Carsten

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

* Re: Problem with org-publish :include
  2009-05-04  3:22 ` Carsten Dominik
@ 2009-05-04  9:50   ` Rick Moynihan
  0 siblings, 0 replies; 4+ messages in thread
From: Rick Moynihan @ 2009-05-04  9:50 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik wrote:
> On Apr 28, 2009, at 2:02 PM, Rick Moynihan wrote:
> 
>> Hi all,
>>
>> I am using org-mode v6.26d (from the git repo) and keep all my org  
>> files in a single ~/org directory.  I'm trying to setup a new org- 
>> publish project that publishes a single org-mode file (meeting- 
>> notes.org) and excludes all the others.  Here's the relevant bit of  
>> my org-publish-project-alist:
>>
>> (setq org-publish-project-alist
>>      (list
>>       '("minutes" . (:base-directory "/home/rick/org/"
>>                                        :base-extension "org"
>>                  :publishing-directory "/home/rick/public_html/ 
>> minutes"
>>                  :exclude "\\.org$"
>>                  :include "meeting-notes.org"
>>                  :with-section-numbers nil
>>                  :table-of-contents nil
>>                  :style "<link rel=stylesheet href=\"mystyle.css\"  
>> type=\"text/css\">"))
>>
>> ; ...
>>
>> ))
>>
>> The problem is that I can't seem to get the :include property  
>> working. With the above settings crashing on org-publish-project  
>> with the error:
>>
>> Wrong type argument: sequencep, 101
>>
>> I have narrowed it down to the include parameter, but don't know  
>> what is wrong with my config.  I have also tried setting :include to  
>> a (list "meeting-notes.org") with a similar error.
>>
>> Is this a bug in org-mode, my config or something else.  Any help  
>> greatfully appreciated!!!
> 
> 
> Does
> 
>                   :include ("meeting-notes.org")
> 
> work better?  The documentation says it must be a list,
> I have never used it.
> 
> - Carsten

Thanks Carsten.  It does indeed work when expressed like this; clearly 
I'm again a victim of my own stupidity =)

R.

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

end of thread, other threads:[~2009-05-04  9:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-28 12:02 Problem with org-publish :include Rick Moynihan
2009-04-30 11:30 ` Rick Moynihan
2009-05-04  3:22 ` Carsten Dominik
2009-05-04  9:50   ` Rick Moynihan

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