From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Filipe Silva Newsgroups: gmane.emacs.help Subject: Re: relative line numbers and folding: how to make they play along? Date: Wed, 13 Jul 2016 19:33:34 -0300 Message-ID: References: <8360sbcvbz.fsf@gnu.org> <83lh158eza.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1468449310 22368 80.91.229.3 (13 Jul 2016 22:35:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2016 22:35:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 00:35:09 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 1bNSkH-0006k9-3p for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 00:35:09 +0200 Original-Received: from localhost ([::1]:50366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNSkG-0003wT-1v for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 18:35:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNSir-0002mT-UV for help-gnu-emacs@gnu.org; Wed, 13 Jul 2016 18:33:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNSip-0002BH-Q1 for help-gnu-emacs@gnu.org; Wed, 13 Jul 2016 18:33:40 -0400 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:36257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNSim-0002Ao-Nf; Wed, 13 Jul 2016 18:33:36 -0400 Original-Received: by mail-oi0-x233.google.com with SMTP id w18so92094672oiw.3; Wed, 13 Jul 2016 15:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lQFf02mu2ZdAlqCCDC/9K9csIHRRYaRlL3Ax8NAnRIw=; b=rNLQ6ziWZXDFp/c9geJvBFo+mNOY1RRb2PGiptdgDru8gLEeggJsL9c0N69/ChrrQ+ UXFeIvitdW0JVLLqrwqZacLkuED1QM5d3uGnx8JRgx3yShZG0DgklD85V1ZNfH6Dr2RV 2J8bHTnm6QpW3+WtO2HK9Z4TzLsZGS4eYLfPrO+8XRd78zU+iNPPrrDmEoUewQ8222jC QYakVSIAEmvPBx+tASHc/qUwDBthnyUGFWmkcymNL374628vy5+YwbnFhPyV8xhbADUd KeO2FWpiLxy+b10tP/QoP+ngGseDzX8a82dYQRXfyOkQqcjFROLFYEfsU5+d2Uvxjn5y TxIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lQFf02mu2ZdAlqCCDC/9K9csIHRRYaRlL3Ax8NAnRIw=; b=TKUFcskcG8x4JsAtEEOLfmL+87sgnNf7Y3lacBkzV5CD71pOccAwkQNFmlnxl7e1uN Zf0uAiA71PaYASfTlB7ZtK2WOkPfCvJg+A8hwkxpBFcauUo75j8pjKcakC1CL/r7xVdh i66RBb0Vpoe42IyGRYWtWgMfKq9eg5rbY2LLYRO1glXbR9FgFh/BKde2yUiDxQo/BKt7 TnEtzT/c9X1aQluAft/HuvSVEquxoWBZnv+iVXxjWYX+8ZDMbJQxgzhPSgLA1YNKEE1k 0BlwxVPSzsPn6GWj75lmSRZzVsOqNHE4lrsVPYtN2tEKH1lD3nvOKxaE+L1tXGNIKvW+ 64aQ== X-Gm-Message-State: ALyK8tJJOodHSW61rGmJnSJduSdbl0rk/twidW1Eek3SZ925XOiy5dYyq3qXtXblP64jWa/fZysLGAIY5XDl/g== X-Received: by 10.202.178.130 with SMTP id b124mr2984016oif.97.1468449215496; Wed, 13 Jul 2016 15:33:35 -0700 (PDT) Original-Received: by 10.202.114.196 with HTTP; Wed, 13 Jul 2016 15:33:34 -0700 (PDT) In-Reply-To: <83lh158eza.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::233 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:110823 Archived-At: 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 If it can't be done, I think it is the case to issue a feature request for that. cheers, Filipe On Wed, Jul 13, 2016 at 5:23 PM, Eli Zaretskii wrote: > > From: Stefan Monnier > > Date: Wed, 13 Jul 2016 16:10:30 -0400 > > > > I think to implement relative-visual-linum-mode efficiently, we'd need > > help from the display engine. E.g.: > > - First perform redisplay of the window. > > - then, go through the window, visual-line by visual-line > > and add something in the margin. > > - then update the margin part of the matrices. > > AFAIU, this would cause a momentary flickering of an incorrect display > (without the line numbers), until they are computed and displayed. > > And I still don't see any answer to my question, alas. > >