texteditorbuffer and stack modification