[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: planner.el patch + Re: Relative paths in annota
From: |
Michael Olson |
Subject: |
[emacs-wiki-discuss] Re: planner.el patch + Re: Relative paths in annotations, and planner sub-directories |
Date: |
Fri, 16 Dec 2005 11:05:35 -0500 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Sacha Chua <address@hidden> writes:
> I get around the problem of relative filenames by making them always
> relative to a fixed location. This makes it easy to move plan pages
> in your tree without having to update all the links. By default,
> file links are relative to the first directory in the muse project
> definition for the Planner project.
>
> The following patch should make planner-browse-position-url work
> properly:
>
> --- orig/planner.el
> +++ mod/planner.el
> @@ -1693,7 +1703,7 @@
> (when (string-match "^pos://\\(.+\\)#\\([0-9]+\\)$" url)
> (let ((file (match-string 1 url))
> (pos (string-to-number (match-string 2 url))))
> - (find-file file)
> + (find-file (expand-file-name file (planner-directory)))
> (goto-char pos)
> t)))
Is this patch something that I should install in Planner, or is it
meant to only help in this particular case?
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: manga, Debian, XHTML, wiki, Emacs Lisp
/` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
|_] | \| |_| Jabber: mwolson_at_hcoop.net
pgp1_MTNc9kLU.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [emacs-wiki-discuss] Re: planner.el patch + Re: Relative paths in annotations, and planner sub-directories,
Michael Olson <=