From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Scott Jaderholm Newsgroups: gmane.emacs.devel Subject: Re: Native display of line numbers Date: Sun, 18 Jun 2017 22:49:48 -0700 Message-ID: <8760fsil1f.fsf@gmail.com> References: <83lgoqzm0v.fsf@gnu.org> <87d1a1hraj.fsf@gmail.com> <83a854yac8.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497855349 11574 195.159.176.226 (19 Jun 2017 06:55:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2017 06:55:49 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 19 08:55:43 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 1dMqb9-0002kW-Ae for ged-emacs-devel@m.gmane.org; Mon, 19 Jun 2017 08:55:43 +0200 Original-Received: from localhost ([::1]:40869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMqbE-0002ZZ-Js for ged-emacs-devel@m.gmane.org; Mon, 19 Jun 2017 02:55:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMpZe-0005Tt-SF for emacs-devel@gnu.org; Mon, 19 Jun 2017 01:50:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMpZa-00009A-1c for emacs-devel@gnu.org; Mon, 19 Jun 2017 01:50:06 -0400 Original-Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:36466) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMpZZ-00008w-SI; Mon, 19 Jun 2017 01:50:01 -0400 Original-Received: by mail-pf0-x22d.google.com with SMTP id x63so49148431pff.3; Sun, 18 Jun 2017 22:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=mXVGtMr94wNdXOSaCcWPSGKQtow3Jzfi7axJvxWIwyI=; b=HiPbP/VcQYT+kQGXdkcQ2FmT5TxkPdxBW9B9dD439RWdoYU1ESr2lrWoeMWaBSw1Rq r2lSGQYKox2kAFmw1KUnXDcTHd+Wu5lNBHqBpLNq9Wg2dlW0WLFYr2YaC40BJG5bvZSk crcnIdgQlzMHCd9/OissFwieC2xRywuONlF+FqLwcSkmV7MjS0Wu6AGht77ZvTsEG+xA BaThMiJ4NVgxP4TseRgtZjIMgtDXboAQMaiyye4MHzdEpAbITKo17Lp/pjGgj4TG7z2a GexGyOe5ZA7BdSVQbgdHMxGrCSvMkdkmuV8ktDTgrp5tFxG9OczusqCqtVX7dexEddeD iRgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=mXVGtMr94wNdXOSaCcWPSGKQtow3Jzfi7axJvxWIwyI=; b=BKU1tjEFLym+1aF1IKgyWVYBernJhpmgQqjrmDKPhCjivtMWdlXi9Yiwy6pEk3I7/J 7K1zqTWVtVC8x1vp7yrqcK4ds09sA0WxE4QSfq8nueu+AbpSP37Xb47FZryxV0G7Kef2 l6IXFlDzoXx5uNGd8iZsqwYS84RbvapCdbC0kbCae9KGojTUchPWB9NBWSuOESy/PhoR GBC93mi1gUbfXEoixyLaDu2VfGtXNnm4tqW1m8opbEPEAJa49gqG2eimadsPeDJpSgJc hKvl48cMCR94YP2Mf/GEm/UvDkYD6oKKz+TGOxBDFw4wG2UNALGPAQwyWCMHp7KLQFhm iVLA== X-Gm-Message-State: AKS2vOwUiZbOTI1OYUNzvu2gtHqNRABYBS0BQbubFvAzHeQBjLpqEW7i WbaKtHJ2BRbOpKPFBys= X-Received: by 10.84.129.67 with SMTP id 61mr27603784plb.229.1497851400454; Sun, 18 Jun 2017 22:50:00 -0700 (PDT) Original-Received: from iandi.gmail.com ([63.135.62.46]) by smtp.gmail.com with ESMTPSA id p4sm18925403pgf.21.2017.06.18.22.49.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Jun 2017 22:49:59 -0700 (PDT) In-Reply-To: <83a854yac8.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 19 Jun 2017 05:34:15 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22d X-Mailman-Approved-At: Mon, 19 Jun 2017 02:54:59 -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:215771 Archived-At: On Mon, Jun 19 2017,Eli Zaretskii wrote: >> From: Scott Jaderholm Cc: emacs-devel@gnu.org >> Date: Sun, 18 Jun 2017 15:20:04 -0700 >> >> It would be nice to be able to display both absolute and relative line >> numbers at the same time, with each having their own face. > > That sounds strange to me. What is the use case for that? It's not that there's a unique use case when they're used together, but that there are various independent use cases for absolute line numbers and various independent use cases for relative line numbers, and a user might want some from both sets at any time. For example, relative line numbers are useful for counting items in a list and prefixing movement/deletion/etc commands. Absolute line numbers are useful for tracking down errors, context in the file, or communicating a line. A user might want all of these things. > Would a key binding that would switch between absolute and relative > numbers be good enough for such a use case? I think it would be unfortunate if that were required. For most of the use cases for both modes it's nice to be able to see the numbers at a glance without having to invoke a command first. If users were happy pressing a key before seeing line numbers, then the performance when scrolling wouldn't matter because the old modes could just be used on demand. Another way to think about it is it's nice to have more than one item in a mode-line. It would be unfortunate if mode-lines could only display buffer names and we had to press a key binding everytime we wanted to see something else there. Scott