Uwe Brauer writes:
>>>>> "Mats" == Mats Lidell
<matsl(a)xemacs.org> writes:
Mats> * Creating an explicit button in the ChangeLog is not
desirable I
Mats> think!? (Excplicit means that an hyperbole button "<....>"
Mats> is inserted. The link will be persistent but the ChangeLog
Mats> will contain hyperbole buttons ...)
Well I would not mind, if it where easy to create and to use.
But of course as you said, I would like that when I run the modified
add-change-log-entry, then the position of the change is stored and
the link is set automatically.
OK, Hyperbole doesn't seem to do what you want.
Mats> * What I think really is wanted is that a cross reference
is created
Mats> from the ChangeLog to from where add-change-log-entry was
Mats> invoked.
[...]
Mats> Maybe that idea could be taken further and any line in
a
Mats> buffer could be the starting point for a cross reference to
Mats> a position in another file. Then a modified
Mats> add-change-log-entry could update that cross
Mats> reference. However this transfers the problem into how to
Mats> update the cross reference when the originating file is
Mats> changed which doesn't seem to be trivial.
Right, this a problem in bm and in bookmark.el. However bookmark has a
clever idea (which was then implemented by bm as well): not only store
the char position, where the change occurred, but store also some
strings before and after the change (this is called front-context-string and
rear-context-string) in order take into account a possible change of
the file later.
The question reminds were to store all that information. I see three
possibilities:
- In the change log file (but may be in the non visible
part). However that might be complicated
I don't think this is very desirable. These bookmarks seem likely to
become numerous but also to get stale rapidly.
- In a global file in the home directory
- In a file associated which every changelog file
Which of these does bookmark do? I would lean toward the global file,
but it's probably easiest to use bookmark's features. If you use
add-change-log-entry (and friends), then I would say that an around
advice that first creates a bookmark at the change point, then
executes the original function, then creates a bookmark in the
ChangeLog, and finally links each bookmark to the other, might be the
way to go. The links might be kept in a separate file from the
bookmarks file.
In the long run you'd probably want to revise bookmark to allow links
in any bookmark rather than having a separate file of links, but I'm
not even sure of that.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta