xemacs -vanilla
provides a nice button 'Load .emacs' in menubar, but it seems to me that there
is a bug.
Suppose you start xemacs -vanilla, then open several buffers with different
major modes. In each buffer the menubar contains 'Load .emacs'. Fine.
But: pressing this button in a buffer with one major mode does still keep it in
buffers with other major modes. And those buttons load .emacs again and again.
For test, I loaded at startup the following code:
(set-buffer (get-buffer-create "Text"))
(text-mode)
(set-buffer (get-buffer-create "C"))
(c-mode)
(set-buffer (get-buffer-create "Tmp"))
(text-mode)
So, after startup there are 3 major modes: text-mode, c-mode and
lisp-interaction. I added counter to my .emacs.
I pressed the button in text-mode buffer and it disappears. Then i pressed it
in c-mode buffer and *scratch*. Each time I pressed buttons my counter of
.emacs loads incremented.
I suppose that 'Load .emacs' should be active only once.
May be I'm wrong.
Nick.