np! If I had thought before writing my mail, I would also have mentioned the
backquote:

(setq muse-project-alist
      `("website" ,muse-path))

The backquote means that everything is quoted EXCEPT symbols preceded with
comma. See http://cl-cookbook.sourceforge.net/macros.html and the section on
backquote and you'll have a much cleaner looking setq.

On Tue, Nov 2, 2010 at 10:01 PM, Peter Davis <[email protected]> wrote:

>
> Excellent!  Thank you, Martin.
>
> I'm not much of a lisp maven (yet).  I was just trying to cobble something
> from examples I found in the Muse doc, though obviously there are subtleties
> that I missed.
>
> Thanks!
>
> -pd
>
>
> On Tue, Nov 2, 2010 at 4:49 PM, Martin Svenson <[email protected]> wrote:
>
>> The problem is that you're quoting (using the shorthand ') your variables,
>> which means they will appear as symbols in your list and not be substituted.
>>
>> Compare this:
>>
>> (setq muse-project-alist
>>       (list
>>
>>        '("website"            ; my various writings
>>      ("~/Pages" :default "index")
>>      (:base "html" :path "~/public_html")
>>      (:base "pdf" :path "~/public_html/pdf"))
>>         (list "Info"
>>          (list muse-path :default "index")
>>          (list :base "html" :path (concat muse-path "\\HTML")))))
>>
>> If you want a nicer muse-define-project syntax, write a method or play
>> around with a macro :)
>>
>> // Martin
>>
>> On Tue, Nov 2, 2010 at 7:30 PM, Peter Davis <[email protected]> wrote:
>>
>>> I'm trying to set up Muse so that my projects (and ultimately my emacs
>>> setup files) live in a Dropbox folder.  I've set an environment variable,
>>> DROPBOX, to where the folder is mounted on my Win7 system.  However, I can't
>>> publish my projects.  My emacs init.el contains:
>>>
>>> (setq drop-box (getenv "DROPBOX"))
>>> (setq muse-path (concat drop-box "\\Muse"))
>>> (setq load-path (add-to-list 'load-path "~/emacsdir/muse/lisp"))
>>> (require 'muse-mode)
>>> (require 'muse-html)
>>> (require 'muse-latex)
>>> (require 'muse-project)
>>> (setq muse-project-alist
>>>           '(("website"            ; my various writings
>>>              ("~/Pages" :default "index")
>>>              (:base "html" :path "~/public_html")
>>>              (:base "pdf" :path "~/public_html/pdf"))
>>>             ("Info"
>>>              (muse-path :default "index")
>>>              (:base "html" :path (concat muse-path "\\HTML"))
>>>              )))
>>>
>>> But when I try to C-c C-p, I get:
>>>
>>>    Assertion failed: (file-name-directory path)
>>>
>>>
>>> Any clues about what I'm doing wrong, or how to fix it?
>>>
>>> Thank you!
>>>
>>> -pd
>>>
>>
>
>
> _______________________________________________
> Muse-el-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/muse-el-discuss
>
>
_______________________________________________
Muse-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/muse-el-discuss

Reply via email to