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

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

[emacs-wiki-discuss] Project name lost during publishing


From: Andrew J. Korty
Subject: [emacs-wiki-discuss] Project name lost during publishing
Date: Sun, 13 Feb 2005 14:14:59 -0500
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (darwin)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It looks as though emacs-wiki-current-project gets interpreted too
late when passing it to the with-emacs-wiki-project macro; its value
in the temporary buffer is used.  Not sure if this is the best way to
fix it, but it worked for me:

- --- emacs-wiki-publish.el~    Sun Feb 13 09:46:42 2005
+++ emacs-wiki-publish.el       Sun Feb 13 14:13:28 2005
@@ -1106,8 +1106,9 @@
           (make-directory publishing-directory 'parents)))
       (when (and (not (emacs-wiki-private-p page))
                (or force (file-newer-than-file-p file published)))
- -        (with-emacs-wiki-project emacs-wiki-current-project
- -          (funcall emacs-wiki-publish-function file published))
+        (let ((project emacs-wiki-current-project))
+          (with-emacs-wiki-project project
+            (funcall emacs-wiki-publish-function file published)))
         (run-hook-with-args 'emacs-wiki-after-file-publish-hook file)
         (setq published-some t)))
     published-some))

- -- 
Andrew J. Korty, Chief Security Engineer, GCIA, GCFA
Office of the Vice President for Information Technology
Indiana University
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iD8DBQFCD6c48gM8+Mr5peERAlzFAKDh5Z03dhgo6z/RirO3yjvUdPPk2gCgoBQI
EWIs6Ln/kJqYM2Antxnc8ts=
=Jn6i
-----END PGP SIGNATURE-----




reply via email to

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