Fix emacsclient check for term.el buffer (Bug#21041)
* lib-src/emacsclient.c (find_tty): Check for any TERM value with prefix of "eterm", not just "eterm" itself. Also check for ",term:" in INSIDE_EMACS value.
This commit is contained in:
parent
5132a5856d
commit
5afbf62674
1 changed files with 3 additions and 1 deletions
|
@ -1114,7 +1114,9 @@ find_tty (const char **tty_type, const char **tty_name, int noabort)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp (type, "eterm") == 0)
|
const char *inside_emacs = egetenv ("INSIDE_EMACS");
|
||||||
|
if (inside_emacs && strstr (inside_emacs, ",term:")
|
||||||
|
&& strprefix ("eterm", type))
|
||||||
{
|
{
|
||||||
if (noabort)
|
if (noabort)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue