osdir.com
mailing list archive

Subject: Re: wiki-project - msg#00112

List: emacs.wiki.general

Date: Prev Next Index Thread: Prev Next Index
From: TC <tc@xxxxxxxxxxxxxx>
Subject: Re: [emacs-wiki-discuss] wiki-project
Date: Mon, 22 Nov 2004 09:16:56 -0600

> (setq emacs-wiki-projects
> '(
> ("MainProject" .
> ((emacs-wiki-directories . ("~/public_html/MainProject"))
> (emacs-wiki-project-server-prefix . "../mainproject/")
> (emacs-wiki-publishing-directory . "~/public_html/mainproject")))
> ("AnotherProject" .
> ((emacs-wiki-directories .
> ("~/public_html/AnotherProject"))
> (emacs-wiki-project-server-prefix . "../anotherproject/")
> (emacs-wiki-publishing-directory .
> "~/public_html/anotherproject")))
> ("ProjectNumberThree" .
> ((emacs-wiki-directories .
> ("~/public_html/ProjectNumberThree"))
> (emacs-wiki-project-server-prefix . "../projectnumberthree/")
> (emacs-wiki-publishing-directory .
> "~/public_html/projectnumberthree")))
> ))

Wouldn't it be safer to use old value of emacs-wiki-projects, like

(setq emacs-wiki-projects
(cons
'("default" .
((emacs-wiki-directories . ("~/Wiki"))
(emacs-wiki-project-server-prefix . "../Wiki/")
(emacs-wiki-publishing-directory . "~/html/personal/Wiki")))
emacs-wiki-projects))

since emacs-wiki-journal and planner add their own values to
emacs-wiki-projects?

I had overwrite emacs-wiki-projects using customize-group, and have
hard time until I noticed the cause. Maybe I'm stupid, but still...

--
Yamagata Yoriyuki


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

planner-rdf.el

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The announcement for an add-on I worked on. Maybe useful for others, too. Planner-rdf.el provides functionality to publish Planner information, currently notes and tasks only, in RDF/OWL form. It can be integrated with the normal HTML publishing process. Having the Planner data in a portable format like RDF makes it easier to re-use the Planner data with other applications, to filter it according to the audience etc. There is a page with some more info, examples, and the download archive, http:/www.rainervolz.de/planner-rdf/. Rainer - -- Rainer Volz Virtuelle Projekte -- www.vrtprj.de Virtual Projects -- www.vrtprj.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/> iD8DBQFBoh32enjtlV2FwvQRAuy9AJ9Wh3snClpKgUPw8qZP7HlB1vzSRgCfRH14 Y3zEBaRVheGJcXy69q8CECg= =/RcW -----END PGP SIGNATURE-----

Next Message by Date: click to view message preview

[Fwd: Re: Configuration with sub-directories]

-------- Original Message -------- Objet: Re: [emacs-wiki-discuss] Configuration with sub-directories Date: Tue, 23 Nov 2004 17:28:13 +0100 De: Nicolas Charpentier <nicolas.charpentier@xxxxxxxxxxxxx> Société: Thales Information System A: Pascal Quesseveur <quesseveur@xxxxxxxxxxxxxxx> Références: <20041122163117.64E9C165559@xxxxxxxxxxxxxxxxxx> Pascal Quesseveur a écrit : > > Hello, > > I just switched from the old emacs-wiki to the new one (latest stable > version). emacs-wiki-directories is set like that: > > ,---- > | (setq emacs-wiki-directories > | (list (concat doc-site-dir "src/") > | (concat doc-site-dir "src/d1") > | (concat doc-site-dir "src/d2"))) > | (setq emacs-wiki-publishing-directory > | (concat doc-site-dir "MyWiki")) > `---- > > I have a link from a source file in the main directory to a wiki named > MyHost and the MyHost file is in subdir d1. Navigation in emacs-wiki > works fine: MyHost links to d1/MyHost. > > When the files are published the file MyHost.html is created into d1, > but the reference in the HTML file in the main dir references > MyHost.html, not d1/MyHost.html. So the page is wrong. > > Is there anything wrong with my setup? > Hi, I have the same behaviour with my setup. To bypass this, I'd needed to 'hack' (or to patch) the official version of emacs-wiki. Now all links are published correctly. I hope to make my changes public as soon as possible. I'll message you when my web site will be updated. Regards, Nicolas Charpentier

Previous Message by Thread: click to view message preview

Re: wiki-project

> But how do I create another wiki project to switch to? In your setup files, by fiddling with the lisp variable "emacs-wiki-projects". Here's an example. It sets up three projects, with files in ~/public_html/MainProject, ~/public_html/AnotherProject, and ~/public_html/ProjectNumberThree. Wiki files within those directories are published, respectively, to ~/public_html/mainproject, ~/public_html/anotherproject, and ~/public_html/projectnumberthree. (Following Sacha, I try to keep everything, published files and source, inside my public_html so that interested web readers can compare the original source files with the published html) Anyway, lisp snippetry follows: (setq emacs-wiki-projects '( ("MainProject" . ((emacs-wiki-directories . ("~/public_html/MainProject")) (emacs-wiki-project-server-prefix . "../mainproject/") (emacs-wiki-publishing-directory . "~/public_html/mainproject"))) ("AnotherProject" . ((emacs-wiki-directories . ("~/public_html/AnotherProject")) (emacs-wiki-project-server-prefix . "../anotherproject/") (emacs-wiki-publishing-directory . "~/public_html/anotherproject"))) ("ProjectNumberThree" . ((emacs-wiki-directories . ("~/public_html/ProjectNumberThree")) (emacs-wiki-project-server-prefix . "../projectnumberthree/") (emacs-wiki-publishing-directory . "~/public_html/projectnumberthree"))) )) If you invoked that, then provided you are already in a buffer of a file within any of the three emacs-wiki-directories, hitting C-c C-v should allow you to switch to any of the three projects. C-c C-p within any of them will publish that particular projects files. tc

Next Message by Thread: click to view message preview

Re: wiki-project

On Tue, 2004-11-23 at 09:59, Yamagata Yoriyuki wrote: > Wouldn't it be safer to use old value of emacs-wiki-projects... > ... since emacs-wiki-journal and planner add their own values to > emacs-wiki-projects? I suppose it could be safer, but it's not hard to get journal and planner both working alongside the main wiki, *and* with customized directories (source and publish) for all of them. I have planner, journal and three emacs-wiki projects (i.e. five projects in all), working fine. > I had overwrite emacs-wiki-projects using customize-group, and have > hard time until I noticed the cause. Maybe I'm stupid, but still... You're no more stupid than me. (Don't take too much comfort from that though; my cluelessness is legendary :-) Anyway - like you, I don't like using customize-group and for the very reason you are describing. Instead, I set the variables directly. However, be aware that you can't always simply use setq for that. Instead, see my own voyage of discovery on this topic, in the thread starting at: http://lists.gnu.org/archive/html/emacs-wiki-discuss/2004-11/msg00047.html FWIW, I've attached my emacs-wiki-init.el and planner-init.el files. All I can say about them is that they work for me. Also, I'm not currently making heavy use of planner, so although my setup does work, I haven't stressed it. Caveat emptor ago-go. tc emacs-wiki-init.el Description: Text Data planner-init.el Description: Text Data _______________________________________________ emacs-wiki-discuss mailing list emacs-wiki-discuss@xxxxxxxxxx http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by