From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: using variables in org-publish-project-alist Date: Mon, 24 Nov 2008 02:45:59 +0100 Message-ID: <492a0781.1ade660a.31f9.26b3@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4R8G-00031m-OO for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 21:25:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4R8E-00031a-A3 for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 21:24:59 -0500 Received: from [199.232.76.173] (port=55144 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4R8E-00031X-3f for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 21:24:58 -0500 Received: from mu-out-0910.google.com ([209.85.134.184]:65041) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4QXF-0001rg-NY for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 20:46:47 -0500 Received: by mu-out-0910.google.com with SMTP id i2so2027382mue.6 for ; Sun, 23 Nov 2008 17:46:43 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode I removed directory names from my projects list thus ,---- | (setq org-publish-project-alist | '( | ("web-extra" | :base-directory rgr-source ;; ********************************** | :publishing-directory rgr-publish | :base-extension "gif\\|jpg\\|jpeg\\|png\\|css" | :publishing-function org-publish-attachment | :recursive t | ) | ("web-org" | :base-directory rgr-source | :publishing-directory rgr-publish | :base-extension "org" | :publishing-function org-publish-org-to-html | :recursive t | :section-numbers nil | :style "" | :auto-preamble t | :auto-postamble t | :preamble (format "
Back - Home" rgr-home) | :postamble "
" | :author nil | ) | ("web" | :components("web-org" "web-extra") | ) | ) | ) `---- I included an external file: ,---- | (load-file "~/.emacs.d/.webvars") `---- where I declares the variables: ,---- | (setq rgr-source "/home/sh/webs/rgr/") | (setq rgr-publish "/ssh:rgr.net:/home/sh/webs/rgr/") | (setq rgr-home "http://rgr.net/default/") `---- C-h v on "rgr-source" gives ,---- | rgr-source's value is | "/home/sh/webs/rgr/" | | Documentation: | Not documented as a variable. `---- but when I publish the project or a project file I get this: ,---- | org-publish-get-base-files: Wrong type argument: stringp, rgr-source `---- I have a niggly feeling its going to be something obvious but what? thanks for any info, r. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: using variables in org-publish-project-alist Date: Mon, 24 Nov 2008 11:11:18 +0100 Message-ID: <69087D9F-9960-49CA-BB38-328153C61D7A@uva.nl> References: <492a0781.1ade660a.31f9.26b3@mx.google.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4dx7-0002FS-DA for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 11:06:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4dx5-0002DN-B2 for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 11:06:20 -0500 Received: from [199.232.76.173] (port=50556 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4dmJ-00027s-Op for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 10:55:12 -0500 Received: from ik-out-1112.google.com ([66.249.90.176]:33943) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4YPa-0000ac-Q3 for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 05:11:23 -0500 Received: by ik-out-1112.google.com with SMTP id b32so1707138ika.2 for ; Mon, 24 Nov 2008 02:11:21 -0800 (PST) In-Reply-To: <492a0781.1ade660a.31f9.26b3@mx.google.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Riley Cc: org-mode Hi Richard, no, variables are not interpolated into quoted lists, any list preceded by "'" is quoted. If you can guarantee that the value of the variables is define at the time the (setq org-publish-projects-alist ... is executed, then you can use backquote syntax: Quote the main list with the backquote, and then preceed any variable inside you would like to have evaluated with a comma so (setq org-publish-projects-alist `( ............. ,rgr-souerce ....)) Note that this works only once, so if you later change the value, this list will not be changed. If you wanted dynamic behavior, then we would have to patch org- publish.el. HTH - Carsten On Nov 24, 2008, at 2:45 AM, Richard Riley wrote: > > I removed directory names from my projects list thus > > ,---- > | (setq org-publish-project-alist > | '( > | ("web-extra" > | :base-directory rgr-source ;; ********************************** > | :publishing-directory rgr-publish > | :base-extension "gif\\|jpg\\|jpeg\\|png\\|css" > | :publishing-function org-publish-attachment > | :recursive t > | ) > | ("web-org" > | :base-directory rgr-source > | :publishing-directory rgr-publish > | :base-extension "org" > | :publishing-function org-publish-org-to-html > | :recursive t > | :section-numbers nil > | :style " | href=\"./style.css\" > | type=\"text/css\">" > | :auto-preamble t > | :auto-postamble t > | :preamble (format "
Back - href='%s'>Home" rgr-home) > | :postamble "
" > | :author nil > | ) > | ("web" > | :components("web-org" "web-extra") > | ) > | ) > | ) > `---- > > I included an external file: > > ,---- > | (load-file "~/.emacs.d/.webvars") > `---- > > where I declares the variables: > > ,---- > | (setq rgr-source "/home/sh/webs/rgr/") > | (setq rgr-publish "/ssh:rgr.net:/home/sh/webs/rgr/") > | (setq rgr-home "http://rgr.net/default/") > `---- > > C-h v on "rgr-source" gives > > ,---- > | rgr-source's value is > | "/home/sh/webs/rgr/" > | > | Documentation: > | Not documented as a variable. > `---- > > but when I publish the project or a project file I get this: > > ,---- > | org-publish-get-base-files: Wrong type argument: stringp, rgr-source > `---- > > I have a niggly feeling its going to be something obvious but what? > > thanks for any info, > > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: using variables in org-publish-project-alist Date: Mon, 24 Nov 2008 12:59:29 +0100 Message-ID: <492a974d.09c5660a.159f.ffffa235@mx.google.com> References: <492a0781.1ade660a.31f9.26b3@mx.google.com> <69087D9F-9960-49CA-BB38-328153C61D7A@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4e2Y-0005Y0-QV for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 11:11:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4e2X-0005X5-Ui for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 11:11:58 -0500 Received: from [199.232.76.173] (port=46012 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4dl5-0002Gv-Dx for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 10:53:55 -0500 Received: from ey-out-1920.google.com ([74.125.78.150]:54903) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4a6y-0005wt-Rq for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 07:00:17 -0500 Received: by ey-out-1920.google.com with SMTP id 4so941948eyg.24 for ; Mon, 24 Nov 2008 04:00:14 -0800 (PST) In-Reply-To: <69087D9F-9960-49CA-BB38-328153C61D7A@uva.nl> (Carsten Dominik's message of "Mon, 24 Nov 2008 11:11:18 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: org-mode , Richard Riley Thanks - wow, I would never have found that! Just testing it I noticed a small "feature" (possibly bug). We talked about buffers being opened in the past when publishing. Now the project publish is nice and quiet except for one case: I break my site down to many subdirs each with an index.org/html. If I open my "homepage" e.g ~/myweb/index.org, and then publish the entire project while in that buffer then any other "index" replaces it during the publish process - it is was replaced by ~/myweb/projects/index.org<2>" in the focused window. Not a day breaker I admit, but still a slight "blip" in the otherwise super quiet publish process. And the quoting works fine, thanks for the explanation. Carsten Dominik writes: > Hi Richard, > > no, variables are not interpolated into quoted lists, > any list preceded by "'" is quoted. > > If you can guarantee that the value of the variables is define at the > time the > > (setq org-publish-projects-alist ... > > is executed, then you can use backquote syntax: Quote the main list > with the backquote, and then preceed any variable inside you would > like to have evaluated with a comma so > > (setq org-publish-projects-alist > `( ............. > ,rgr-souerce > ....)) > > Note that this works only once, so if you later change the value, this > list will not be changed. > > If you wanted dynamic behavior, then we would have to patch org- > publish.el. > > HTH > > - Carsten > > > On Nov 24, 2008, at 2:45 AM, Richard Riley wrote: > >> >> I removed directory names from my projects list thus >> >> ,---- >> | (setq org-publish-project-alist >> | '( >> | ("web-extra" >> | :base-directory rgr-source ;; ********************************** >> | :publishing-directory rgr-publish >> | :base-extension "gif\\|jpg\\|jpeg\\|png\\|css" >> | :publishing-function org-publish-attachment >> | :recursive t >> | ) >> | ("web-org" >> | :base-directory rgr-source >> | :publishing-directory rgr-publish >> | :base-extension "org" >> | :publishing-function org-publish-org-to-html >> | :recursive t >> | :section-numbers nil >> | :style "> | href=\"./style.css\" >> | type=\"text/css\">" >> | :auto-preamble t >> | :auto-postamble t >> | :preamble (format "
Back - >> Home" rgr-home) >> | :postamble "
" >> | :author nil >> | ) >> | ("web" >> | :components("web-org" "web-extra") >> | ) >> | ) >> | ) >> `---- >> >> I included an external file: >> >> ,---- >> | (load-file "~/.emacs.d/.webvars") >> `---- >> >> where I declares the variables: >> >> ,---- >> | (setq rgr-source "/home/sh/webs/rgr/") >> | (setq rgr-publish "/ssh:rgr.net:/home/sh/webs/rgr/") >> | (setq rgr-home "http://rgr.net/default/") >> `---- >> >> C-h v on "rgr-source" gives >> >> ,---- >> | rgr-source's value is >> | "/home/sh/webs/rgr/" >> | >> | Documentation: >> | Not documented as a variable. >> `---- >> >> but when I publish the project or a project file I get this: >> >> ,---- >> | org-publish-get-base-files: Wrong type argument: stringp, rgr-source >> `---- >> >> I have a niggly feeling its going to be something obvious but what? >> >> thanks for any info, >> >> 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 -- important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday. ~Dennis Gabor, Innovations: Scientific, Technological and Social, 1970 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: using variables in org-publish-project-alist Date: Tue, 25 Nov 2008 00:58:00 +0100 Message-ID: <871vx0ismv.fsf@kassiopeya.MSHEIMNETZ> References: <492a0781.1ade660a.31f9.26b3@mx.google.com> <69087D9F-9960-49CA-BB38-328153C61D7A@uva.nl> <492a974d.09c5660a.159f.ffffa235@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4lGw-0002Xy-Fj for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 18:55:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4lGu-0002Xj-Nw for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 18:55:18 -0500 Received: from [199.232.76.173] (port=53738 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4lGu-0002Xg-Ks for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 18:55:16 -0500 Received: from mail.gmx.net ([213.165.64.20]:49003) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L4lGt-00070E-V0 for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 18:55:16 -0500 In-Reply-To: <492a974d.09c5660a.159f.ffffa235@mx.google.com> (Richard Riley's message of "Mon, 24 Nov 2008 12:59:29 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Riley Cc: org-mode Hi Richard, Richard Riley writes: > If I open my "homepage" e.g ~/myweb/index.org, and then publish the > entire project while in that buffer then any other "index" replaces it > during the publish process - it is was replaced by > ~/myweb/projects/index.org<2>" in the focused window. Not a day breaker > I admit, but still a slight "blip" in the otherwise super quiet publish > process. Does setting the `:index-filename' help? (setq org-publish-project-alist '(("org-notes" ;; ... :auto-index t ; generate index.org automagically :index-filename "sitemap.org" :index-title "Sitemap" :recursive t ;; ... ) Regards, -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Http: www.emma-stil.de From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: using variables in org-publish-project-alist Date: Tue, 25 Nov 2008 01:09:03 +0100 Message-ID: <492b424a.170e660a.15ba.ffffeaf4@mx.google.com> References: <492a0781.1ade660a.31f9.26b3@mx.google.com> <69087D9F-9960-49CA-BB38-328153C61D7A@uva.nl> <492a974d.09c5660a.159f.ffffa235@mx.google.com> <871vx0ismv.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4lV5-0001hA-QW for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 19:09:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4lV4-0001gy-68 for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 19:09:54 -0500 Received: from [199.232.76.173] (port=48000 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4lV4-0001gv-10 for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 19:09:54 -0500 Received: from nf-out-0910.google.com ([64.233.182.184]:53956) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4lV2-00006h-Vy for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 19:09:53 -0500 Received: by nf-out-0910.google.com with SMTP id c7so1254863nfi.26 for ; Mon, 24 Nov 2008 16:09:48 -0800 (PST) In-Reply-To: <871vx0ismv.fsf@kassiopeya.MSHEIMNETZ> (Sebastian Rose's message of "Tue, 25 Nov 2008 00:58:00 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: org-mode , Richard Riley Sebastian Rose writes: > Hi Richard, > > > Richard Riley writes: >> If I open my "homepage" e.g ~/myweb/index.org, and then publish the >> entire project while in that buffer then any other "index" replaces it >> during the publish process - it is was replaced by >> ~/myweb/projects/index.org<2>" in the focused window. Not a day breaker >> I admit, but still a slight "blip" in the otherwise super quiet publish >> process. > > > Does setting the `:index-filename' help? I do not use auto-index but have my own index.org files. I believe Carsten has addressed this issue. > > > (setq org-publish-project-alist > '(("org-notes" > > ;; ... > > :auto-index t ; generate index.org automagically > :index-filename "sitemap.org" > :index-title "Sitemap" > :recursive t > > ;; ... > ) > > > > Regards, -- important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday. ~Dennis Gabor, Innovations: Scientific, Technological and Social, 1970 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: using variables in org-publish-project-alist Date: Tue, 25 Nov 2008 01:35:37 +0100 Message-ID: <87ej10hcbq.fsf@kassiopeya.MSHEIMNETZ> References: <492a0781.1ade660a.31f9.26b3@mx.google.com> <69087D9F-9960-49CA-BB38-328153C61D7A@uva.nl> <492a974d.09c5660a.159f.ffffa235@mx.google.com> <871vx0ismv.fsf@kassiopeya.MSHEIMNETZ> <492b424a.170e660a.15ba.ffffeaf4@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4lrL-000338-IQ for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 19:32:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4lrJ-00032H-QT for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 19:32:55 -0500 Received: from [199.232.76.173] (port=34206 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4lrJ-00032B-NP for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 19:32:53 -0500 Received: from mail.gmx.net ([213.165.64.20]:38308) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L4lrJ-00035q-5S for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 19:32:53 -0500 In-Reply-To: <492b424a.170e660a.15ba.ffffeaf4@mx.google.com> (Richard Riley's message of "Tue, 25 Nov 2008 01:09:03 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Riley Cc: org-mode Richard Riley writes: > Sebastian Rose writes: > >> Hi Richard, >> >> >> Richard Riley writes: >>> If I open my "homepage" e.g ~/myweb/index.org, and then publish the >>> entire project while in that buffer then any other "index" replaces it >>> during the publish process - it is was replaced by >>> ~/myweb/projects/index.org<2>" in the focused window. Not a day breaker >>> I admit, but still a slight "blip" in the otherwise super quiet publish >>> process. >> >> >> Does setting the `:index-filename' help? > > I do not use auto-index but have my own index.org files. I believe > Carsten has addressed this issue. Not shure, how this is implemented at the moment. "index.org" is the default for `:index-filename'. Best, -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose emma-stil de, sebastian_rose gmx de Http: www.emma-stil.de