emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: where does emacs-wiki end and muse begin?


From: Michael Olson
Subject: [emacs-wiki-discuss] Re: where does emacs-wiki end and muse begin?
Date: Mon, 31 Oct 2005 15:53:22 -0500
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Paul Lussier <address@hidden> writes:

> Okay, I tried this:
>
> (if (string-match "taz" (system-name))
>     (setq planner-project-default-name "Diary")
>   (setq planner-project-default-name "Planner"))

s/-default-name//g

(if (string-match "taz" (system-name))
    (setq planner-project "Diary")
  (setq planner-project "Planner"))

[snip]
>         ("Planner"                    ;; use value of `planner-project'
>          ("~/work/Plans"              ;; where my Planner pages are located
>           :default "TaskPool"         ;; use value of `planner-default-page'
>           :major-mode planner-mode
>           :visit-link planner-visit-link
>           :set (planner-directory "~/work/Plans"
>                 planner-defaul-page "DefaultPlan")))
>          (:base "xhtml"
>                 ;; value of `planner-publishing-directory'
>                 :path "~/public_html/Plans")))

Change :base "xhtml" to :base "planner-xhtml".

> And for some reason, I'm still getting the following:
>
>   planner-project's value is "WikiPlanner"
>   planner-project-default-name's value is "Diary"
>   planner-directory's value is "~/Plans"
>   planner-publishing-directory's value is "~/public_html/planner"
>   planner-default-page's value is "TaskPool"

planner-project-default-name and planner-directory are not used by
Planner-Muse.

planner-default-page should really be deprecated soon, and the code
should look at the :default tag instead.

> So, it appears that the planner-project's value is getting correctly
> set by my (if ...) form, but nothing else is getting correctly set
> by the muse-project-alist form.

Nothing is *supposed* to be set by the muse-project-alist form.  This
is the expected behavior :^) .

> So, I tried this:
>
> (require 'planner)
> (if (string-match "taz" (system-name))
>     (progn ((planner-option-customized 'planner-directory "~/personal/diary")
>             (planner-option-customized 'planner-publishing-directory
>                                        "~/personal/diary/www")
>             (planner-option-customized 'planner-project "Diary")
>             (planner-option-customized 'planner-project-default-name "Diary")
>             (planner-option-customized 'planner-default-page "DiaryWelcome")))
>
>   (progn ((planner-option-customized 'planner-directory "~/work/Plans")
>           (planner-option-customized 'planner-publishing-directory
>                                      "~/public_html/plans")
>           (planner-option-customized 'planner-project "Planner")
>           (planner-option-customized 'planner-project-default-name "Planner")
>           (planner-option-customized 'planner-default-page "WorkPlanner"))))
>
> But emacs choked on the planner-option-customized stuff:

Ick.  You don't need to use planner-option-customized.

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: anime, Debian, XHTML, wiki, Emacs Lisp
  /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Jabber: mwolson_at_hcoop.net

Attachment: pgpJSs1GNSBMg.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]