From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Boris Newsgroups: gmane.emacs.help Subject: Re: relative line numbers and folding: how to make they play along? Date: Thu, 14 Jul 2016 18:23:31 +0000 Message-ID: References: <8360sbcvbz.fsf@gnu.org> <83lh158eza.fsf@gnu.org> <83bn208djh.fsf@gnu.org> <83vb086vwj.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 1468525377 4171 80.91.229.3 (14 Jul 2016 19:42:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2016 19:42:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Filipe Silva , Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 21:42:46 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 1bNmWz-0005nL-AW for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 21:42:45 +0200 Original-Received: from localhost ([::1]:56511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNmWy-0001Gt-Jv for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 15:42:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNlIY-00014f-2n for help-gnu-emacs@gnu.org; Thu, 14 Jul 2016 14:23:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNlIX-0002zp-1X for help-gnu-emacs@gnu.org; Thu, 14 Jul 2016 14:23:45 -0400 Original-Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:36030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNlIU-0002zN-1d; Thu, 14 Jul 2016 14:23:42 -0400 Original-Received: by mail-qt0-x229.google.com with SMTP id 52so47072675qtq.3; Thu, 14 Jul 2016 11:23:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xbnoghMPky6NjjJQoE7pXlPRwKwh7nBgddTbDQwHPOE=; b=EmDEdf7IdK2EYKpGHvqBPQIMvFs9AFBzUYFtSmf4bmjvgQa270/0qjPYn41L8rMt8M iES+OEsxFJOMwQeMlqnUtZvt5i9gu3jB4xC65UcDaXrT9V6P6SC4q2DuJMn0xbmJixqb V+EmijPpPhI6Zpy3x/+EA9/Bg657qHpFXa1uGl4voGyKmZwGwaLtB+IkBle5Tto/NzG7 7NgGrbpAHcI6qviHg/exguhfFf0xMdwhKe3I+49HjPHjwHWflzGr/uOhx7JhVs39Uea3 PHSeLqB1nAEtI3XbZZU1IdgdJWlulnnh16M47sIBO1I9/ho2bclTpZbWWzuAdoN0KZ7r itkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xbnoghMPky6NjjJQoE7pXlPRwKwh7nBgddTbDQwHPOE=; b=f71IvDeFu1ztXZBw8DSFN4URjEERAe9zactbPfs1wZ3d2SXic7iY3SysHByKZ3mX50 5GEyxVYvEjoIngMo4aVY2BccXl7FzVcTB4nZCZhM7w+qIOCO3u3QqnbJeLO0ZVQG8qDi BhUZvmNTya1ErwA3lXqFTg7gJuBoS/VGOwjADfW4HZf74AoVOkJkJrg6u4nOxDGzBu7b qZYOvtPz9cG8sv+1+RBhVe5KgYIFyfcSCmFtFInET8/O9rnLmXK66uWLIhLr7dml9IDI 4peu+LHzmmxxHbI3p2mA1mVgFQJoQQ3Ol5SaPuWj7U5v4A8ERxvKxM52SSWlAA6WOSz0 LP8w== X-Gm-Message-State: ALyK8tIn2YAH2lwBeWoa1VAiIh10jPAWB7bZMQwvNxMpxcSVJvGCbTdKFZUUoVu5JZhZfKTpaGjVXfB3Rmjc/A== X-Received: by 10.200.43.47 with SMTP id 44mr21922194qtu.66.1468520621474; Thu, 14 Jul 2016 11:23:41 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c0d::229 X-Mailman-Approved-At: Thu, 14 Jul 2016 15:30:05 -0400 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:110846 Archived-At: Hey Filipe, `post-command-hook` exists today and you can verify it by calling `C-h v post-command-hook`. ~ d12frosted On Thu, Jul 14, 2016 at 7:51 PM Filipe Silva wrote: > Great Eli. Does that post-command-hook exist today in stock emacs? > > Do you agree with the usefulness of the feature? > > On Thu, Jul 14, 2016 at 1:12 PM, Eli Zaretskii wrote: > > > > From: Filipe Silva > > > Date: Thu, 14 Jul 2016 12:58:20 -0300 > > > Cc: help-gnu-emacs@gnu.org > > > > > > "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?" > > > > > > Eli, thanks. I think now I have described the feature with more clarity > > in my responde to Dan (I think). If it is not > > > clear yet, please let me now. > > > > Perhaps something like a post-command-hook that measures line numbers > > with vertical-motion, and then sets up the corresponding numbers on > > the margin, like linum-mode does, could do this. > > > > >