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#23755: 25.0.95; Emacs 25.0.95 Line number is in fringe Date: Fri, 17 Jun 2016 23:14:24 +0300 Message-ID: <83lh23bmjj.fsf@gnu.org> References: <83wplufgdo.fsf@gnu.org> <6D7D3844-4E4A-4341-8F9C-DE18481480F5@gmail.com> <83shwifal9.fsf@gnu.org> <20160612215037.GA70967@breton.holly.idiocy.org> <83oa75g2le.fsf@gnu.org> <83k2htfbd4.fsf@gnu.org> <83h9ctcgec.fsf@gnu.org> <3D6F64ED-4325-495C-A733-74A60006943E@gmail.com> <8360t8cmci.fsf@gnu.org> <20160617174134.GA68643@breton.holly.idiocy.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466194470 11699 80.91.229.3 (17 Jun 2016 20:14:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2016 20:14:30 +0000 (UTC) Cc: ja.nguyen@gmail.com, 23755@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 17 22:14:18 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 1bE09g-0001el-Cp for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jun 2016 22:14:16 +0200 Original-Received: from localhost ([::1]:60169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bE09c-0002tx-Fp for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jun 2016 16:14:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bE09W-0002sk-GG for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 16:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bE09S-00033Q-5Q for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 16:14:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bE09S-00033M-22 for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 16:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bE09R-0006f3-Ug for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2016 16:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Jun 2016 20:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23755 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23755-submit@debbugs.gnu.org id=B23755.146619441525564 (code B ref 23755); Fri, 17 Jun 2016 20:14:01 +0000 Original-Received: (at 23755) by debbugs.gnu.org; 17 Jun 2016 20:13:35 +0000 Original-Received: from localhost ([127.0.0.1]:44534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bE091-0006eF-GK for submit@debbugs.gnu.org; Fri, 17 Jun 2016 16:13:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bE090-0006e4-8H for 23755@debbugs.gnu.org; Fri, 17 Jun 2016 16:13:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bE08r-0002hG-VN for 23755@debbugs.gnu.org; Fri, 17 Jun 2016 16:13:29 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bE08r-0002hC-SL; Fri, 17 Jun 2016 16:13:25 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4653 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bE08o-0007VY-Lx; Fri, 17 Jun 2016 16:13:23 -0400 In-reply-to: <20160617174134.GA68643@breton.holly.idiocy.org> (message from Alan Third on Fri, 17 Jun 2016 18:41:34 +0100) 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" Xref: news.gmane.org gmane.emacs.bugs:119693 Archived-At: > Date: Fri, 17 Jun 2016 18:41:34 +0100 > From: Alan Third > Cc: James Nguyen , 23755@debbugs.gnu.org > > > emacs -Q > > (add-to-list 'load-path "/path/to/smart-mode-line-master") > > (load-library "smart-mode-line") > > (sml/setup) > > (dolist (sym '(mode-line mode-line-inactive)) > > (set-face-attribute > > sym nil > > :box `(:line-width 2 :color ,(face-attribute `,sym :background)))) > > > > I see no display problems in the mode line after the above. > > I just tried this on the NS port and it leaves stuff behind. Then I guess it's either NS-specific or specific to the fonts you are using. > Aside from that, the digits seem to be placed wrongly. Sometimes > they're fine, other times they're all wonky. I've attached a > screenshot where it's displaying 404, but it looks like the 0 is too > far left, and the second 4 is cut off, and another screenshot after I > paged down and you can still see the left edge of the zero. So what, the NS port cannot even display text correctly? > I don't know how to tell what font it is, but I suspect it's > variable-width and Emacs doesn't notice when they change size. That cannot be true in general, since Emacs displays variable-pitch fonts correctly since v21.1. > For example, the misplaced 0 in 404 occurs after scrolling from a > number starting with 3, and the 3 appears to be narrower than the > 4. The second digit doesn't move right to compensate for the larger > first digit. That can only happen if the font lies to Emacs about the dimensions of the character glyphs. > Changing line-width to 1 in your code fixes it. Which means the font does NOT lie, and thus the fact that some characters are narrower than others is NOT the reason.