From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#23594: 25.0.94; Display errors on Linux tty Date: Sun, 22 May 2016 09:38:13 +0000 Message-ID: <20160522093813.GA2136@acm.fritz.box> References: <20160521104720.GA2987@acm.fritz.box> <83k2in72de.fsf@gnu.org> <20160521190110.GB2987@acm.fritz.box> <83d1of6xe5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1463909965 9551 80.91.229.3 (22 May 2016 09:39:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 May 2016 09:39:25 +0000 (UTC) Cc: 23594@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 22 11:39:14 2016 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 1b4Pqs-0004XV-3B for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 May 2016 11:39:14 +0200 Original-Received: from localhost ([::1]:42579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4Pqr-0002Jc-6d for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 May 2016 05:39:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4Pqj-0002IN-Ey for bug-gnu-emacs@gnu.org; Sun, 22 May 2016 05:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4Pqg-0000du-9R for bug-gnu-emacs@gnu.org; Sun, 22 May 2016 05:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4Pqg-0000dq-5n for bug-gnu-emacs@gnu.org; Sun, 22 May 2016 05:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b4Pqf-0003w6-PH for bug-gnu-emacs@gnu.org; Sun, 22 May 2016 05:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 May 2016 09:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23594 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23594-submit@debbugs.gnu.org id=B23594.146390989515077 (code B ref 23594); Sun, 22 May 2016 09:39:01 +0000 Original-Received: (at 23594) by debbugs.gnu.org; 22 May 2016 09:38:15 +0000 Original-Received: from localhost ([127.0.0.1]:60374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4Ppu-0003v6-Pp for submit@debbugs.gnu.org; Sun, 22 May 2016 05:38:14 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:62743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4Ppt-0003uw-EL for 23594@debbugs.gnu.org; Sun, 22 May 2016 05:38:13 -0400 Original-Received: (qmail 20444 invoked by uid 3782); 22 May 2016 09:38:11 -0000 Original-Received: from acm.muc.de (p4FC467AB.dip0.t-ipconnect.de [79.196.103.171]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 22 May 2016 11:38:09 +0200 Original-Received: (qmail 2938 invoked by uid 1000); 22 May 2016 09:38:13 -0000 Content-Disposition: inline In-Reply-To: <83d1of6xe5.fsf@gnu.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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" Xref: news.gmane.org gmane.emacs.bugs:118531 Archived-At: Hello, Eli. On Sat, May 21, 2016 at 10:09:38PM +0300, Eli Zaretskii wrote: > > > This bug exists since we started showing the 'decomposition' of > > > characters in Emacs 24.1. With LF, we send a literal LF character > > > to the screen. That's only half the story. The literal LF doesn't seem to be the problem. Rather, it's got a 'composition text-property attached to it. The string we're trying to display is #(" decomposition: (10) ('\n')\n" 24 25 (composition (0 1 [9 10 9]))) ^ | 24 What is this composition trying to do? The [9 10 9] is [\t \n \t]. The whole thing is a result of calling (char-code-property-description 'decomposition '(10)) Under X-Windows, the same string is displayed, this time successfully. The call (inseert #(" decomposition: .... [9 10 9]))) works on X-Windows, the "\n" with the composition property being displayed as a square box. > > OK. The next question is is it easy to fix? > Yes. We should not send control characters to that buffer. It seems to me there is a bug in the display engine here: the same string which is displayed successfully in X-Windows goes badly wrong on a Linux tty. Comments? -- Alan Mackenzie (Nuremberg, Germany).