From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen C. Gilardi" Newsgroups: gmane.emacs.bugs Subject: bug#19496: 25.0.50; term.c, produce_composite_glyh, cmp->pixel_width uninitialized Date: Sat, 3 Jan 2015 09:20:52 -0500 Message-ID: <0FD61621-E12F-4183-B1A3-BFA8482B7FA5@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420308258 2493 80.91.229.3 (3 Jan 2015 18:04:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2015 18:04:18 +0000 (UTC) To: 19496@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 03 19:04:11 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 1Y7T3b-0004e2-1i for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jan 2015 19:04:11 +0100 Original-Received: from localhost ([::1]:54975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7T3a-0002EJ-6D for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jan 2015 13:04:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7T3W-0002EE-Bl for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 13:04:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7T3S-0008L6-A5 for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 13:04:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7T3S-0008KY-6x for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 13:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y7T3R-0003cc-Px for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 13:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Stephen C. Gilardi" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jan 2015 18:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19496 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142030823513907 (code B ref -1); Sat, 03 Jan 2015 18:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jan 2015 18:03:55 +0000 Original-Received: from localhost ([127.0.0.1]:35776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7T3L-0003cD-2u for submit@debbugs.gnu.org; Sat, 03 Jan 2015 13:03:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44408) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7PZf-0004MV-Vn for submit@debbugs.gnu.org; Sat, 03 Jan 2015 09:21:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7PZe-0003wk-IS for submit@debbugs.gnu.org; Sat, 03 Jan 2015 09:21:03 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7PZe-0003wf-Fk for submit@debbugs.gnu.org; Sat, 03 Jan 2015 09:21:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7PZd-0006QC-A0 for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 09:21:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7PZZ-0003ve-RB for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 09:21:01 -0500 Original-Received: from mail-qg0-x235.google.com ([2607:f8b0:400d:c04::235]:53931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7PZZ-0003vP-MJ for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 09:20:57 -0500 Original-Received: by mail-qg0-f53.google.com with SMTP id l89so13673111qgf.40 for ; Sat, 03 Jan 2015 06:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=tqn87PsZ0tHewQOm78haFd2atY+DlScwLgvuUOguKjw=; b=wnK+gCdXjtqbl7UZ0qfWe+x4jAFDe4TbFJqkNXCZHaL0abWC2mW2tmKyyvgX9xL43+ jt6lN4ghQxUfXgpLuPDVpqkrjF7rHBC9oKk2y0+2b5H4B64Dcz7osguiV0Qb52ddjN7+ /vHea1HEb36lt8EjMbc99hm26P2YYZ1tc1Ff9W9FLM7n8M4W7mte9tTZQj3IS0IbnKFn gNlCPrLZHFONmgFvZXtmYfciLkyWwMebzN4mholjPGp5TrptFY0TyxTp1fFTp6M/Iuie EkGQr/Kevh4gktGdKn8M9i41aQwsEHLknAhP607N4iGo6xxdR3VSVaZXG92F/xO9PbyT vtXQ== X-Received: by 10.140.81.166 with SMTP id f35mr81599051qgd.0.1420294856230; Sat, 03 Jan 2015 06:20:56 -0800 (PST) Original-Received: from firefly.scgilardi.net (c-76-24-159-52.hsd1.ma.comcast.net. [76.24.159.52]) by mx.google.com with ESMTPSA id a3sm45729164qag.22.2015.01.03.06.20.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 Jan 2015 06:20:55 -0800 (PST) X-Mailer: Apple Mail (2.1993) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sat, 03 Jan 2015 13:03:52 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:97962 Archived-At: emacs -Q open an emacs lisp file that contains (lambda ... ) turn on prettify-symbols-mode the lambda form is converted to (=CE=BB ... ), and should be displayed = that way, but instead it's displayed as (\ =CE=BB ...) This commit is the first on master to show the problem: = 20791069fa34b486c018ba7f27982bdc6ad2a4ea (found by git bisect) The problem is the calculation of the pixel_width of the composition in = the buffer. It's set to the pixel_width of the composition in the = composition table, but that field is not initialized. (There is no = mention of pixel_width anywhere in composite.c where the table entries = are made.) When I check the value of cmp->pixel_width, it's somewhere = near MAX_SHORT. It should be a small integer. Prior to this commit, in = my setup, the value is 1 which avoids the problem, but isn't a credible = pixel width. An apparently very wide pixel_width for the composition explains the = display anomaly. The composition appears to be thousands of characters = wide and if that were true, the anomalous display would have been = appropriate. I don't see an obvious fix. There seems to be some confusing use in the = code between "width in columns" and "width in pixels". It's possible = that the pixel_width field in "struct it" is not named precisely for how = it=E2=80=99s used--in a terminal, the width may actually be used as a = number of columns rather than a number of pixels. In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu) of 2015-01-03 on localhost Repository revision: 20791069fa34b486c018ba7f27982bdc6ad2a4ea System Description: Ubuntu 14.04.1 LTS Configured using: `configure --without-x' Configured features: SOUND GPM DBUS NOTIFY LIBSELINUX GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Prettify-Symbols mode enabled user-error: Beginning of history; no preceding item Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils regexp-opt vc-git diff-mode easymenu easy-mmode xterm time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify multi-tty emacs) Memory information: ((conses 16 82152 5459) (symbols 48 17585 0) (miscs 40 36 102) (strings 32 12557 4834) (string-bytes 1 332483) (vectors 16 8665) (vector-slots 8 349036 23681) (floats 8 65 657) (intervals 56 259 25) (buffers 976 12) (heap 1024 37582 1315))