Better LibeditTransient implementation.