From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: relative line numbers and folding: how to make they play along? Date: Thu, 14 Jul 2016 18:02:01 +0300 Message-ID: <83furc8dqu.fsf@gnu.org> References: <8360sbcvbz.fsf@gnu.org> <83lh158eza.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468509110 31375 80.91.229.3 (14 Jul 2016 15:11:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2016 15:11:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 17:11:34 2016 Return-path: Envelope-to: geh-help-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 1bNiIO-0003NW-LY for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 17:11:24 +0200 Original-Received: from localhost ([::1]:54686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNiIN-0000wD-Oi for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 11:11:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNi9b-0006ts-BW for help-gnu-emacs@gnu.org; Thu, 14 Jul 2016 11:02:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNi9X-0004Ki-4w for help-gnu-emacs@gnu.org; Thu, 14 Jul 2016 11:02:18 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNi9X-0004Kb-2I for help-gnu-emacs@gnu.org; Thu, 14 Jul 2016 11:02:15 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1754 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bNi9U-0000hr-Ct for help-gnu-emacs@gnu.org; Thu, 14 Jul 2016 11:02:12 -0400 In-reply-to: (message from Filipe Silva on Wed, 13 Jul 2016 19:33:34 -0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110839 Archived-At: > From: Filipe Silva > Date: Wed, 13 Jul 2016 19:33:34 -0300 > Cc: help-gnu-emacs@gnu.org > > Eli, sorry, I did not answer your question because everybody on other forums, github, etc... told me that I > would need to install a third party package to do what I showed and even them, it would not play along with > folding. > > So I wanted to know if you could, starting from emacs -Q, construct a lisp code that achieved the effect > shown here: > > https://cloud.githubusercontent.com/assets/8352747/16707876/4bd64c22-45b5-11e6-8d13-ae9c994cbb02.png Problem is, I don't really understand what's the desired effect shown there, exactly. That's why I asked to explain what do you mean by "relative line numbers". Does that mean "count lines that will be displayed, skipping the invisible ones"? Or does it mean "count lines shown in a window, where the first visible line in the window is always line 1"? Or does it mean something else? > If it can't be done, I think it is the case to issue a feature request for that. A feature request will have to describe the desired feature, so what I'm asking is needed for that as well. Thanks.