From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: James Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Native display of line numbers Date: Sun, 18 Jun 2017 19:25:46 -0700 Message-ID: <1DCA149D-6E05-4B0F-BDA0-3A01CE23077C@fastmail.com> References: <83lgoqzm0v.fsf@gnu.org> <83zid5xt8o.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497839191 31183 195.159.176.226 (19 Jun 2017 02:26:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2017 02:26:31 +0000 (UTC) Cc: emacs-devel@gnu.org, Mathias Dahl To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 19 04:26:18 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 1dMmOO-0007E7-Th for ged-emacs-devel@m.gmane.org; Mon, 19 Jun 2017 04:26:17 +0200 Original-Received: from localhost ([::1]:40229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMmOR-0002fi-3h for ged-emacs-devel@m.gmane.org; Sun, 18 Jun 2017 22:26:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMmOI-0002fY-Ds for emacs-devel@gnu.org; Sun, 18 Jun 2017 22:26:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMmOH-0003Zv-9F for emacs-devel@gnu.org; Sun, 18 Jun 2017 22:26:10 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:43339) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dMmOB-0003WG-Kk; Sun, 18 Jun 2017 22:26:04 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D78AA204F7; Sun, 18 Jun 2017 22:26:01 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Sun, 18 Jun 2017 22:26:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=zWUocprn+NijMkmdaH CE6a7OAaPInd+A4UJ+wPRRGeY=; b=2qG0MmJg5y+BKtrhWxAxZcGZ108J3H3nzA MmMuVGxXCB9gjK0ndKioIr5XLYbfxUvLVIwXeoqlp9h6PrBFPm/hcHXX3WY236Os n+RtfOCY+1NS5F/7DG6iPej0kI0kKZmPxw8ZKr4LaAHjLkhs+PbKw0YKU/hjrO/9 cv8K9Luf1ri8NvSIl/la+AwIRaJltyRIjf8+ujyyjwsOkTTHHirXMXW9X94EMUcj QekqOoaIu98zw2+61xKiT+Mz5GjyiKCk4adXZ8ZggbE3+30bubFsi1Kw+otNuBt+ wIrBI0ZYAICyy2RVW3A40HdA3vxE2whNsLCxD8ixYpZfWGOt+dHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=zWUocprn+NijMkmdaHCE6a7OAaPInd+A4UJ+wPRRGeY=; b=kCSAHXPL sgGvnUYXdB15pzOa8dLIqTqyQTq8RQWOOMKA5Cmb67tt2klfsljy4oQTSj+3oqT0 SiXwBrnFkxmL7Ji8GlbayNwKS+FidNebuy2NdhKFZHF9eBcsFqUcDMk80uZiSWR+ P1EKf71r6hgRMIcpvy7OwrY6gVRAYTW8yNi+7wFLhd7v5W8qqqXPVx1KqRLXzI0k ot0eApMwHctFBaKq9Yvrp+mPyOtsTf/q09D4nUjzsHueDCLj99arfC771GYfo2q4 iTcTC1692ZoaYK8YCCuTPrpllx5OfuNH2bGLB7Dt6zsisquiwAmPTyBhqmxdBY/P 0U+9ZgIaBlpGIQ== X-ME-Sender: X-Sasl-enc: /RGP7nZpcsZOGCWbw+wIeb5MzdPf+7eNXK11Nr18Xurg 1497839161 Original-Received: from [10.0.1.47] (c-73-231-191-86.hsd1.ca.comcast.net [73.231.191.86]) by mail.messagingengine.com (Postfix) with ESMTPA id 0CDBD7E85D; Sun, 18 Jun 2017 22:25:59 -0400 (EDT) In-Reply-To: <83zid5xt8o.fsf@gnu.org> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.27 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:215761 Archived-At: >> On the device-independent level, this is already supported, has been >> since Emacs 21. Emacs 26 has a minor mode which uses this to provide >> pixel-level smooth scroll commands. But they slow down scrolling, so >> some people might not like that. And the only way I can think of to >> implement a faster smooth scrolling is to do that in = terminal-specific >> code, i.e. separately for X, w32, and NS. Patches are welcome. I'm not sure how to get started doing that. The pixel-scroll-mode is = very nice, but a little too slow for my liking. Sublime Text like pixel scrolling would probably be my highest wish list = item. (Well, up there with handling ~very~ long lines.) Sublime is able to handle Macbook Touchpad scrolling as well as a mouse = responsively. >> I guess this will have to be added, thanks for the feedback. Thanks! This is great. # Some things I noticed: 1. Overlays might mess with the line numbers. Using company-mode along with display-line-numbers. The overlay gets a = little janky and the line numbers disappear where the overlay shows up. Here's a pic I found from reddit detailing the same thing. https://i.imgur.com/qXSJDrv.png 2. Haven't been able to reproduce it, but I was scrolling downwards with = a Macbook Touchpad with relative numbers and the numbers kept toggling back to the = absolute version. Scrolling up was fine.