From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#22154: 25.0.50; emacsclient -c "breaks" 256-color display in server Date: Thu, 17 Dec 2015 23:59:08 -0500 Message-ID: References: <8361025k9u.fsf@gnu.org> <83a8pd3txg.fsf@gnu.org> <834mfl3qvp.fsf@gnu.org> <83h9jj3dfs.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450414820 11071 80.91.229.3 (18 Dec 2015 05:00:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Dec 2015 05:00:20 +0000 (UTC) Cc: eric.hanchrow@gmail.com, 22154@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 18 06:00:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a9n9E-0004Ms-4N for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Dec 2015 06:00:08 +0100 Original-Received: from localhost ([::1]:58401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9n9D-0002Vb-I9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Dec 2015 00:00:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9n99-0002VA-Pv for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2015 00:00:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9n98-00040E-Sd for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2015 00:00:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9n98-000406-Js for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2015 00:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a9n98-0003fk-C7 for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2015 00:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Dec 2015 05:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22154 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22154-submit@debbugs.gnu.org id=B22154.145041476014000 (code B ref 22154); Fri, 18 Dec 2015 05:00:02 +0000 Original-Received: (at 22154) by debbugs.gnu.org; 18 Dec 2015 04:59:20 +0000 Original-Received: from localhost ([127.0.0.1]:55022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9n8S-0003di-GQ for submit@debbugs.gnu.org; Thu, 17 Dec 2015 23:59:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39982) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9n8Q-0003dV-NZ for 22154@debbugs.gnu.org; Thu, 17 Dec 2015 23:59:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9n8K-0003pF-MB for 22154@debbugs.gnu.org; Thu, 17 Dec 2015 23:59:13 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9n8K-0003pB-IQ; Thu, 17 Dec 2015 23:59:12 -0500 Original-Received: from localhost ([::1]:55897 helo=fencepost.gnu.org) by fencepost.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a9n8I-0003g7-Fs; Thu, 17 Dec 2015 23:59:10 -0500 In-Reply-To: <83h9jj3dfs.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 15 Dec 2015 18:05:11 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110100 Archived-At: Eli Zaretskii writes: >> From: Dan Nicolaescu >> Cc: eric.hanchrow@gmail.com, 22154@debbugs.gnu.org >> Date: Tue, 15 Dec 2015 00:46:08 -0500 >> >> >> What exactly is the problem that your patch fixes? >> > >> > The fact that the default escape sequences for turning colors on or >> > off are stored in global variables that get overwritten each time >> > another tty is initialized. >> >> Can you describe a behavior that is incorrect? > > It was described in the original report of this bug, see > > http://lists.gnu.org/archive/html/bug-gnu-emacs/2015-12/msg00420.html > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22154#5 > >> > And I don't understand how could what you describe work when there's >> > only one global value of tty-defined-color-alist. Can you explain how >> > that worked, given that each terminal's initialization overwrites that >> > list? >> >> Sorry, I don't remember the details, but it did work >> In fact I just tried on emacs 24.5 with 3 terminals: xterm >> with TERM=vt100, rxvt -fg black -bg white and rxvt -fg white -bg black. >> emacsclient -t connected to the same emacs daemon > > That's not the same use case. The one you should indeed works, > because the foreground and background colors are recorded separately > for each frame. IOW, this is not related to the issue at hand. OK, great. That is actually a very important use-case, and more in line with what people normally do. It's good that it still works.