I think the problem is in vm-mime-insert-button. This function uses the following test to determine whether to use GNU emacs make-overlay or XEmacs' make-extent. However, the test is done via a comparison of symbol names in the line (if (eq (symbol-function 'vm-make-extent) 'make-overlay)
The problem is that elp works by putting 'wrappers' around the funcitons. This wrapper breaks the eq test and so VM tries to use make-extent instead of make-overlay.
Note that I only glanced at this and this cold be completely wrong!
I think the problem is in vm-mime- insert- button. This function uses the following test to determine whether to use GNU emacs make-overlay or XEmacs' make-extent. However, the test is done via a comparison of symbol names in the line (if (eq (symbol-function 'vm-make-extent) 'make-overlay)
The problem is that elp works by putting 'wrappers' around the funcitons. This wrapper breaks the eq test and so VM tries to use make-extent instead of make-overlay.
Note that I only glanced at this and this cold be completely wrong!