[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] emacs-wiki: backlink naming fix and parental exclus
From: |
Jim Ottaway |
Subject: |
[emacs-wiki-discuss] emacs-wiki: backlink naming fix and parental exclusion code |
Date: |
Tue, 29 Mar 2005 21:45:53 +0100 |
User-agent: |
Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.2 (gnu/linux) |
I found a problem with the backlink creation: the code used the
function buffer-name for the name of the parent; but this might not
return the actual emacs-wiki page name: it may have been renamed
uniquely [i.e. it could be FooBar<1> or FooBar<wiki>, etc., if another
buffer is already called FooBar]. This patch modifies the code to use
emacs-wiki-page-name to get the link name of the parent.
Location: http://www.users.zetnet.co.uk/jeho/archives/2005
Archive name: address@hidden
Branch: emacs-wiki--jeho--1.0
Patch: 4
I have another patch that modifies the behaviour of backlink creation
so that one can exclude backlinks on the basis of the parent name as
well as the child name. I find this useful for planner day pages,
since one may not want to have a backlink to these, while one does
want backlinks to plan pages.
By default the regular expression used,
emacs-wiki-exclude-backlink-parent-regexp, matches no name. I have it
set to planner-date-regexp as part of my planner configuration:
;; modify backlink option for planner pages [stops backlinking from
;; day pages]
(add-to-list
'planner-custom-variables
(cons 'emacs-wiki-exclude-backlink-parent-regexp planner-date-regexp))
(planner-option-customized 'planner-custom-variables
planner-custom-variables)
I also tidied up the function a bit, and moved backlink searching
and creating to separate functions so that they may be used elsewhere
[in, for example, a reparenting function that I started writing
earlier today].
Location: http://www.users.zetnet.co.uk/jeho/archives/2005
Archive name: address@hidden
Branch: emacs-wiki--jeho--1.0
Patch: 5
Regards,
--
Jim Ottaway
- [emacs-wiki-discuss] emacs-wiki: backlink naming fix and parental exclusion code,
Jim Ottaway <=