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

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

[emacs-wiki-discuss] Fix for creating new wiki pages in planner-muse


From: Seth Falcon
Subject: [emacs-wiki-discuss] Fix for creating new wiki pages in planner-muse
Date: Sat, 21 Jan 2006 13:01:24 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

As I mentioned in a previous post, if you create a new page in
planner-muse like [[NewPage]], then when you click on it, you
get a buffer named 'NewPage'.  

If you are using the defualt muse extension, you should get a buffer
named 'NewPage.muse'.  Here's a patch that fixes it for me.


diff -r 36eb5bc31a4c planner.el
--- a/planner.el        Sun Jan  8 18:43:36 2006 -0800
+++ b/planner.el        Sat Jan 21 13:00:29 2006 -0800
@@ -1112,7 +1112,10 @@
              base-buffer)
           (funcall
            (if other-window 'find-file-other-window 'find-file)
-           (or file base)))
+           (or file 
+               (if muse-file-extension
+                   (concat base "." muse-file-extension)
+                 base))))
         (when tag
           (goto-char (point-min))
           (or (re-search-forward (concat "^\\.?#" tag "\\>") nil t)


--
 + seth




reply via email to

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