[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] planner-find-file and emacs-wiki-find-file
From: |
Wei-Hao Lin |
Subject: |
[emacs-wiki-discuss] planner-find-file and emacs-wiki-find-file |
Date: |
Sat, 25 Dec 2004 17:39:38 -0500 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) |
Hi,
I'm wondering why planner-find-file() was introduced in the planner.el
instead of re-using emacs-wiki-find-file(). While they look similar,
one big assumption made by planner-find-file() is that every plan page
must live in the planner-directory.
(defun planner-find-file (page &optional command)
...
(let ((file (expand-file-name page planner-directory)))
...
, which is not necessarily true if a planner stores her plan pages in
a hierarchical fashion, for example,
~/Plans/
PlanPage1
PlanPage2
~/Plans/SubPlans/
SubPlanPage1
SubPlanPage2
Whenever (planner-find-file "SubPlanPage1"), a new SubPlanPage1 will
be created under ~/Plans instead of referring to the previous page
under ~/Plans/SubPlans. emacs-wiki-find-file(), on the other hand,
can find the correct plan page under sub-directories by looking up
filename in the emacs-wiki-file-alist variable.
Am I going to break anything if I
(defalias 'planner-find-file 'emacs-wiki-find-file)?
- [emacs-wiki-discuss] planner-find-file and emacs-wiki-find-file,
Wei-Hao Lin <=