merge 21041 22639 tags 21041 + patch quit Philipp Stephani writes: > M-x ansi-term RET RET > emacsclient -t > > Expected: emacsclient shows an error message > Actual: Emacs frame opened inside ansi-term And then gets stuck, as described in Bug#22639. > term.el sets TERM to eterm-color, but emacsclient.c checks only for > eterm (exact match). I'd suggest to introduce more defensive checks in > emacsclient.c: abort whenever either TERM starts with eterm (prefix > match) or INSIDE_EMACS is set. I think "or" is too aggressive, "and" makes more sense. "eterm" is somewhat generic, there used to be a non-Emacs related terminal emulator called that.