From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Daemon/Client, Multiple Terminals, and `tty-erase-char' Date: Mon, 16 Dec 2019 19:44:09 +0200 Message-ID: <83sglk413q.fsf@gnu.org> References: <8962B7D8-DE8B-48C0-A461-DA2C9ACB67C7@gnu.org> <83woaw432r.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="171554"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs@Alexander.Shukaev.name, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 16 18:44:39 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iguQ7-000iRc-ON for ged-emacs-devel@m.gmane.org; Mon, 16 Dec 2019 18:44:35 +0100 Original-Received: from localhost ([::1]:58022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iguQ6-00025h-JW for ged-emacs-devel@m.gmane.org; Mon, 16 Dec 2019 12:44:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33893) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iguPz-000259-IM for emacs-devel@gnu.org; Mon, 16 Dec 2019 12:44:28 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iguPz-0006HU-2G; Mon, 16 Dec 2019 12:44:27 -0500 Original-Received: from [176.228.60.248] (port=1685 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iguPy-0002SN-3I; Mon, 16 Dec 2019 12:44:26 -0500 In-reply-to: (message from Andreas Schwab on Mon, 16 Dec 2019 18:15:13 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243425 Archived-At: > From: Andreas Schwab > Cc: emacs-devel@gnu.org, emacs@Alexander.Shukaev.name > Date: Mon, 16 Dec 2019 18:15:13 +0100 > > >> Currently, tty-erase-char is set to the ERASE character of the last > >> opened terminal. Since normal-erase-is-backspace-setup-frame is > >> normally only called once when the frame is created, this happens to > >> work out right. > > > > tty-erase-char is also set whenever init_sys_modes is called, and > > many/most of its callers are generally supposed to be called for the > > controlling terminal only. If one of those callers is actually > > called, tty-erase-char will be reset to the ERASE character of the > > controlling terminal, AFAIU. > > Emacs can have multiple controlling terminals, if there are multiple > terminals. OK, but still, if one calls, say, set-input-meta-mode, tty-erase-char will be reset as appropriate for the TERMINAL argument, and that is not necessarily the last-frame value.