Hello, attached is a patch for bug#1469 (term.el regression when dealing with long lines under bash). * term.el (term-emulate-terminal): Decode substring just prior to inserting it. (Bug#1469) bug#1469 was introduced while fixing bug#1006. I verified this patch against the repro steps in bug#1006 to make sure I haven't made a regression. Can someone please review? I'd appreciate any feedback. -- Nicholas