On 10/27/2021 1:20 AM, Michael Albinus wrote: > Looks good to me. However, this technique must be documented > anywhere. Likely in the Emacs manual, node "Shell Options" > (file doc/emacs/misc.texi). Thanks. I've expanded the section about `comint-terminfo-terminal' in the manual to include information about how `system-uses-terminfo' works as well as mentioning that these variables can be declared as connection-local. > Yes, it should be said in etc/NEWS. I added a new entry too. >> + (with-connection-local-variables >> + (if (and (boundp 'system-uses-terminfo) system-uses-terminfo) > > According to git log, the variable system-uses-terminfo exists since [1994.] > I guess it is save to get rid of "(and (boundp 'system-uses-terminfo)". Removed this. Thanks for taking a look. - Jim