Uwe Brauer wrote:
>>>>> "Andreas" == Andreas Roehler
<andreas.roehler(a)online.de> writes:
> Uwe Brauer wrote:
>>
>> Is that to be expected you did you get it to work with the normal tags
>> even for that problematic files?
> Can't see an easy to use all-at-one solution while storing all
> footnote-format info into plain text files.
Not a real problem,
> You may use any style in just one session, as the footnotes are
> remembered
> by property then, not by regexp AFAIU.
> Starting from the scratch you must not call footnote-init first,
> rather plain Footnote-add-footnote. Afterwards footnote-init should
> not interfere.
> If it interferes, try uncomment
> ;; (unless footnote-initialised
> and its closing counterpart.
> I've reflected a mode, where footnote-init is just called once.
> But then you will run into renumbering-bugs from footnote.el
> probably.
> If you start with a file, which has footnotes inside already, you
> can't use the footnote expression elsewhere, it must be unique.
> Maybe a solution would be hiding parts of that clumsy tag then?
> This will slow down XEmacs probably, as it struggles already with
> fontification, outline-mode etc.
I thought that may be a more sophisticated regexp
search would be able to distinguish
[1] from [4:10:12] etc
Sure it's possible, but hazardous IMHO. In code where [4:10:12] occurs you can't
exclude [1], [2]
and so on safely.
If you can, that's a very specific case.
So writing code for a lot of people it doesn't seem appropriate to implement it.
But after your explanation I see that this seems really complicated and
yes a slow down should be avoided, so I prefer that "clumsy" solution
Well, it was just an example how to write your own function
changing delimiters style.
All you have to care for is to avoid expressions from text.
What about that:
(defun fi-Footnote-set-my-cats-preffered-tags ()
"Example function to set footnote-start- and end-tag. "
(interactive)
(setq footnote-start-tag "«")
(setq footnote-end-tag "»")
(when (interactive-p) (message "footnote start end tags: %s %s" (concat
"\"" footnote-start-tag "\"") (concat "\""
footnote-end-tag "\""))))
instead of
(defun fi-Footnote-set-clumsy-tags ()
"Example function to set footnote-start- and end-tag. "
(interactive)
(setq footnote-start-tag "\<[[")
(setq footnote-end-tag "]]\>")
(when (interactive-p) (message "footnote start end tags: %s %s" (concat
"\"" footnote-start-tag "\"") (concat "\""
footnote-end-tag "\""))))
Afterwards you should get nice
Footnotes:
«1» blah
«2» blub
«3» ready :)
Cheers
Andreas
--
https://code.launchpad.net/s-x-emacs-werkstatt/
http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode.el/
> Sorry so far.
> Andreas
Thanks again for all your effort.
Uwe
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta