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: Sat, 17 Jun 2017 15:12:04 -0700 Message-ID: References: <83lgoqzm0v.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 1497738073 14481 195.159.176.226 (17 Jun 2017 22:21:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2017 22:21:13 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Mathias Dahl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 18 00:21:09 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 1dMM5d-0003KA-Do for ged-emacs-devel@m.gmane.org; Sun, 18 Jun 2017 00:21:09 +0200 Original-Received: from localhost ([::1]:36388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMM5f-0005Jg-DQ for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 18:21:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMLx1-0002tK-8q for emacs-devel@gnu.org; Sat, 17 Jun 2017 18:12:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMLx0-0006T5-C9 for emacs-devel@gnu.org; Sat, 17 Jun 2017 18:12:15 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:54467) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dMLwu-0006R7-AV; Sat, 17 Jun 2017 18:12:08 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D63E6206F4; Sat, 17 Jun 2017 18:12:06 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 17 Jun 2017 18:12:06 -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=h1YX9YBpCARY8mY4qy u2CtLpUp9GvjzjYszlshfu9Es=; b=S8gJ9wyqHduENggfwrGKYeFDIqIwjTXAZi MUXc3Y73mHT3N3FNbtSnCYpREkg03LgjMYDHkW3ZkMSYn/WuPtl3a5fFVAVtCyK2 XXSVE727mb/nTfn2ALnFrtREOJ1PNgN59A7H5UPaOKPfQFKKnLJ8YRTlMLhNDVJz hrTMU5b+sRdlceayZG3tNN622tiYVb/Pxkcv8R5bavBQGQZtuyrBA4/KnxAZSIy4 kmHTgsJdt7ihbk2Xz7PFfXZW3+YBdHNPqqret4DDM1QZAkU1/KmaLgLNpLnmgmXo gpgxliCm0wK4FCUEIqjXaVDpmoFIChXOIorB/nMDJgSbIRCzTTsA== 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=h1YX9YBpCARY8mY4qyu2CtLpUp9GvjzjYszlshfu9Es=; b=EIRgizNW 7kUlAsHLMw2v5r4TusCpQhXpEE+vcPmliASnV74tlwqoXb3ZwW2kOagQF2UJtR8O nWOqwe/CrX55Idftg4xSJt4vutQ7hitDl1u6/xUCS7f78t7xRMTPX+ybNIstuW/T oCe66ltDs4vgJ5xBWLqO+38TbFopokqpbw9BQijJ2Jjb0P57wuWyB2hRbBUg0k8q GQsw0DUn64608/ovD3SmEJV/JhFKbQpiPgyCDtvNSoZjqLL5Dg7DZtrUp+CineY0 gbOVJiSjNhts4mnjtXm9XPaIYarzEsmPwbbZld/h+ju0j6yhznSfsUGwYCWCGcpo EmaawfJMvl9Bdw== X-ME-Sender: X-Sasl-enc: qdUHauReX1Ni2iifpibe3Axh+xTJ4CrEx11ThgcvqqB4 1497737526 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 21FF97E926; Sat, 17 Jun 2017 18:12:06 -0400 (EDT) In-Reply-To: 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-Mailman-Approved-At: Sat, 17 Jun 2017 18:20:32 -0400 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:215724 Archived-At: > In my 20 years or so using Emacs, I can probably count on one hand the > number of times I have really wanted/needed to see line numbers > alongside the source code. And when I have had need for it the use has > mainly been what Kaushal Modi also mentions, as a quick way to refer = to > one or more lines of code, immediately. It's useful for other things too, like pair programming, "=46rom line 22 = - 33, etc...". If you use Evil, even without Relative Numbers, it's useful to look at a = line and say Go to line 33. Visual in memory placemarker as you scroll through code. "Oh this is around line 900...". Not saying there aren't other ways to achieve the goal but line numbers = do have uses.. > In any case, given the popularity of the various add-on modes which > insist on displaying line numbers using all kinds of tricks, I don't > think we can ignore this tendency any longer, even if we agree that > this is a disease. >> A pragmatic way to look at it, I think many will welcome it. While we're on this topic, I wonder how feasible it would be to do = smooth pixel scrolling at the C layer. > > Can you please add support for highlighting the current line number, > > using a different face (See the highlighted line number by nlinum on > > the right hand side)? > Is it really important? Why? do people really have difficulty finding > the line where point/cursor is? I like how nlinum highlights the current line with a different face. I = think it's a nice UI polish item. (Not everything has to be 100% for = functional purposes.) - For Relative Numbers, a feature request would be to have the current = line represent the current line number instead of 0. I think vim 8 does that for relative numbers. Example: 3 2 1 456 1 2 3=