Subject: Re: bug#11919: 24.1; term-emulate-term does not process bash's Ctrl-Z signal of directory name when an AnSi message is present

From: Eli Zaretskii <[email-masked]>
Date: Fri, 27 Jan 2017 11:30:46 +0200

> From: Michael Hoffman <[email-masked]>
> Date: Mon, 23 Jan 2017 14:24:28 -0500
> Cc: [email-masked], Michael Hoffman <[email-masked]>
> 
>  See these messages in the archives for the reason why that change was
>  done:
> 
>  https://lists.gnu.org/archive/html/emacs-pretest-bug/2005-11/msg00020.html
>  https://lists.gnu.org/archive/html/emacs-pretest-bug/2005-11/msg00103.html
>  https://lists.gnu.org/archive/html/emacs-pretest-bug/2005-12/msg00089.html
> 
>  If you can propose changes that solve this issue without
>  re-introducing that one, please do.
> 
> The below patch eliminates the garbage printing while maintaining the behavior added in 2005 of having
> `handled-ansi-message` preventing any updates to `default-directory` based on a \032 escape.

Thanks, I pushed this to the master branch, with a slight change due
to changes in the surrounding code since the version you were using.
Please test the master branch, if you can, and please reopen the bug
if some issues are left.