VM

Killing and yanking attachment buttons loses face

Bug #744191 reported by Uday Reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Triaged
Wishlist
Unassigned

Bug Description

When you kill and yank attachment buttons, they don't look like buttons any more. Can the face be preserved during the operation?

Tags: mime ui
Revision history for this message
Arik (akwm) wrote :

Hey Uday,

The problem, in this context, with the mime-buttons in VM is that the face is associated with an overlay and is not a text property. Overlays do not get preserved because they are buffer-local. Not sure why an overlay is used, but it is interesting to note that the text properties of these buttons contain the 'vm-mime-layout' as well as the overlay (this one gets yanked with the text)

Revision history for this message
Uday Reddy (reddyuday) wrote : [Bug 744191] Re: Yanking attachment buttons loses face

Yup, see the "Extents and Overlays" in the Internals section of the VM
manual!

But I didn't realize that is what I ended up doing. I will check.

Cheers,
Uday

Revision history for this message
Uday Reddy (reddyuday) wrote :

Attachment buttons are text-properties in Gnu Emacs. So there is no problem there.

The problem is that the font-lock-mode is overriding the local font setting. If I turn off font-lock-mode, it works fine.

summary: - Yanking attachment buttons loses face
+ Killing and anking attachment buttons loses face
summary: - Killing and anking attachment buttons loses face
+ Killing and yanking attachment buttons loses face
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.