From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: James Cloos Newsgroups: gmane.emacs.devel Subject: Re: Native line numbers, final testing Date: Sun, 09 Jul 2017 16:16:23 -0400 Message-ID: References: <83y3s9pm2a.fsf@gnu.org> <87vandz7lw.fsf@lylat> <83wp7tpcav.fsf@gnu.org> <87r2y1z45o.fsf@lylat> <83vandp7wz.fsf@gnu.org> <87mv8pyy7f.fsf@lylat> <83shigpoxq.fsf@gnu.org> <87mv8nkh31.fsf@lylat> <83bmp3pnmb.fsf@gnu.org> <87eftzju5g.fsf@lylat> <837ezqq3gd.fsf@gnu.org> <874luuyuqy.fsf@lylat> <83wp7po86m.fsf@gnu.org> <87fuecc7vg.fsf@lylat> <83y3s2n5pa.fsf@gnu.org> <878tk1rmjx.fsf@lylat> <83a84gn4z9.fsf@gnu.org> <837ezkmwfg.fsf@gnu.org> <874lumps82.fsf@lylat> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499631484 3007 195.159.176.226 (9 Jul 2017 20:18:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Jul 2017 20:18:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Eli Zaretskii To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 09 22:18:00 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUIeT-0000M7-RA for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 22:17:57 +0200 Original-Received: from localhost ([::1]:37331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUIeX-0008UZ-94 for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 16:18:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUIeN-0008UH-1C for emacs-devel@gnu.org; Sun, 09 Jul 2017 16:17:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUIeM-0001ko-AB for emacs-devel@gnu.org; Sun, 09 Jul 2017 16:17:51 -0400 Original-Received: from ore.jhcloos.com ([198.147.22.87]:38254) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dUIeI-0001bB-6D; Sun, 09 Jul 2017 16:17:46 -0400 Original-Received: by ore.jhcloos.com (Postfix, from userid 10) id 6BD0F1E937; Sun, 9 Jul 2017 20:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=ore17; t=1499631439; bh=mr3TM76ynuzN2A6/MVPGW0OKeIEbwR5jWuLB/yMxkkg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=UO3J6LYXfW8D4PCxtblonazzRkdeRONLuTlpn3Y9vvaVX7KLwvLh+wuxiSmC69ka1 BjMVBWgrCRw8TX1BVqX/TaaxgBrzew33mUAHPz+eAku6LpVkYS3StRAm9axtv3kwhj gi59dWXZHTs1N4Z5i18Ajg0Nh3+Inj5jc5pSC78/cL0evcYIatC/8iqf4Sc9ns2sH5 wRciOb1WF3c0hG6Sf1oBrf2fS8pdeePDaIczoJ/W5Rm+K60WYvFAg0LyQ92ld5KLTw RXjcB785T5g7OYB3RChLHaTYUywQc9P2I3a9DhJeSfkuE1xU1WgfRMfi4hfMhjuVF7 ZW+zgL7y+NlBw== Original-Received: by carbon.jhcloos.org (Postfix, from userid 500) id AAC7C107B7BE1; Sun, 9 Jul 2017 20:16:23 +0000 (UTC) In-Reply-To: <874lumps82.fsf@lylat> (Alex's message of "Sat, 08 Jul 2017 14:51:41 -0600") Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3 AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu QmCC Copyright: Copyright 2016 James Cloos OpenPGP: 0x997A9F17ED7DAEA6; url=https://jhcloos.com/public_key/0x997A9F17ED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Original-Lines: 20 X-Hashcash: 1:28:170709:emacs-devel@gnu.org::ojxS0IlnWf+XkRhr:00000000000000000000000000000000000000000CGgy7 X-Hashcash: 1:28:170709:eliz@gnu.org::5h+HKBEbGhy/yA5V:00003isjw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 198.147.22.87 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216377 Archived-At: Eli, Having re-compiled master, I tried out the native line numbers, by chance in a buffer in variable-pitch-mode. It looks like the display uses SPACE (U+20) or SPACE's width to offset the digits. It would look better if it used FIGURE SPACE (U+2007) or FIGURE SPACE's width instead. Then the line numbers would, err, line up. The code might need to check whether the current face provides a glyph for FIGURE SPACE. Alternatively, use the width of one of the digits (such as DIGIT EIGHT) to determine how many pixels to skip. Otherwise, it looks and works great. -JimC -- James Cloos OpenPGP: 0x997A9F17ED7DAEA6