From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9402: list-colors-display Date: Tue, 30 Aug 2011 03:44:37 -0400 Message-ID: References: <87obz83v0x.fsf@mail.jurta.org> <838vqcf086.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1314690307 32631 80.91.229.12 (30 Aug 2011 07:45:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2011 07:45:07 +0000 (UTC) Cc: 9402@debbugs.gnu.org To: juri@jurta.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 30 09:45:01 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QyJ0G-0002e1-ON for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Aug 2011 09:45:00 +0200 Original-Received: from localhost ([::1]:34569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyJ0G-0006aO-A1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Aug 2011 03:45:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyJ0D-0006aH-Eb for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2011 03:44:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyJ0C-0002yC-Fy for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2011 03:44:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyJ0C-0002y8-DA for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2011 03:44:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QyJ3C-0000UQ-2u; Tue, 30 Aug 2011 03:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2011 07:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9402 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9402-submit@debbugs.gnu.org id=B9402.13146904661861 (code B ref 9402); Tue, 30 Aug 2011 07:48:02 +0000 Original-Received: (at 9402) by debbugs.gnu.org; 30 Aug 2011 07:47:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyJ2v-0000Tx-Rk for submit@debbugs.gnu.org; Tue, 30 Aug 2011 03:47:46 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyJ2t-0000Tq-UK for 9402@debbugs.gnu.org; Tue, 30 Aug 2011 03:47:44 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QyIzt-00064F-Pt; Tue, 30 Aug 2011 03:44:37 -0400 In-reply-to: <838vqcf086.fsf@gnu.org> (message from Eli Zaretskii on Mon, 29 Aug 2011 23:10:01 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 30 Aug 2011 03:48:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.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:50425 Archived-At: > Date: Mon, 29 Aug 2011 23:10:01 +0300 > From: Eli Zaretskii > Cc: 9402@debbugs.gnu.org > > > From: Juri Linkov > > Date: Mon, 29 Aug 2011 22:27:50 +0300 > > > > 1. On a tty, running `M-x list-colors-display RET' displays > > truncated hex color values like: red #cd000$ > > where $ is displayed at the end of the partial line. > > > > To display the complete line this could be fixed by incrementing > > `align-to' from 9 to 10 in `list-colors-print'. But after that > > when running it on X two extra spaces are displayed at the end > > of these lines. > > > > Maybe the bug is somewhere deeper in the display engine > > that aligns differently on a tty and X? > > It aligns differently, but the result should be identical. I will > take a look. I see the problem: the calculation of the width of the stretch of white space is subtly different in the TTY and GUI versions of the code. It all comes from The Mother Of All Evil: having two separate versions of code where in fact the TTY version is a proper subset of the GUI one. I will merge both versions into one later today, and that should fix the bug.