>>>> "Stephen" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
Uwe Brauer writes:
> Is there any package or function which allows me to actualise the values
> which are defined in Local Variables?
I don't understand what you mean by "actualize". The
variables are
automatically read when you read the file. To write new values is a
little complicated, and depends on the context.
That is what I meant.
Its about the primitive hack I wrote for 'permanent' footnotes.
The variable which controls the footnote numbering is called
counter-value.
Now I have to save this variable when closing the file.
Either by
write-file-hooks
or
kill-buffer-hook
Or something like this.
My first intent was something like this.
(defun my-insert-counter-value ()
(interactive)
(save-excursion
(goto-char (point-max))
(search-backward ";;; counter-value:")
(beginning-of-line 1)
(search-forward ";;; counter-value:")
(kill-line)
(insert (concat " " (format "%d" counter-value) " "))))
However I have to include the case that there might be no Local-Variable
in this file.
Uwe
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta