VM

make-extent problem with elp

Bug #594856 reported by Uday Reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Confirmed
Low
Uday Reddy

Bug Description

When the profiling tool elp is turned on, one gets an error about make-extent being undefined in Gnu Emacs. Not clear why this is. The error disappears when elp is turned off.

Tags: emacsen

Related branches

Uday Reddy (reddyuday)
Changed in vm:
assignee: nobody → Uday Reddy (reddyuday)
Revision history for this message
Tim Cross (tcross) wrote :

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!

Revision history for this message
Tim Cross (tcross) wrote :

Forgot to say, since gnu emacs does not have make-extent, it would probably be best to just make the test more explicit by testing to see if we are running xemcs or gnu emacs and take appropriate fork rather than relying on a test based on symbol signatures. This would be more in-line with other parts of VM and I think is clearer and therefore more maintainable.

Uday Reddy (reddyuday)
Changed in vm:
status: New → Confirmed
importance: Undecided → Low
tags: added: emacs
tags: added: emacsen
removed: emacs
Uday Reddy (reddyuday)
tags: added: xemacs
removed: emacsen
Uday Reddy (reddyuday)
tags: added: emacsen
removed: xemacs
Revision history for this message
Uday Reddy (reddyuday) wrote :

Fix committed in revision 1067.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.