From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: Native display of line numbers Date: Sat, 17 Jun 2017 17:20:40 +0000 Message-ID: References: <83lgoqzm0v.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114b2c30bea81605522b1fcf" X-Trace: blaine.gmane.org 1497720095 13114 195.159.176.226 (17 Jun 2017 17:21:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2017 17:21:35 +0000 (UTC) To: Eli Zaretskii , Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 17 19:21:30 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 1dMHPc-00031I-Lc for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 19:21:28 +0200 Original-Received: from localhost ([::1]:35795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMHPh-00040D-TT for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 13:21:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMHP8-000407-0q for emacs-devel@gnu.org; Sat, 17 Jun 2017 13:20:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMHP7-00086C-0L for emacs-devel@gnu.org; Sat, 17 Jun 2017 13:20:57 -0400 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:33022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMHP4-00085r-RT; Sat, 17 Jun 2017 13:20:55 -0400 Original-Received: by mail-lf0-x230.google.com with SMTP id m77so38063775lfe.0; Sat, 17 Jun 2017 10:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=79cp8LFELpY1BSF44zbCLQGZnp/cSoPm27d/7ghUv9Y=; b=rvIieVLu4m/NYau8V8uJ+sL44Xl6UL79zvt0FU4XHy8gaAEAb4EVh8KkXvNsxghYGu m1vzvP1pTzHBtvS/vXW5KIHiFESpEIacAI22nGjfxguvMoGACcnxjqdttp46u0QH6dJt O6IWkgz8akftmJObIVNb7lK1owLbuQyFDVr+TPjaMr2SoevyHIFzUYW8ce8NUmheRWty 7XWn//GkwqYVrbJG2iR7rUIXpBgkvEaIHhlni0ku0zkLwaPOdYOiopXcjZPsnDPoUEje lZIQBxfacL0i9EzWqgs5GGwi7UEh8zewgKzVzYZ9i1tNTQT4x3KEMaTRyFxZ+iFYQOA5 s7jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=79cp8LFELpY1BSF44zbCLQGZnp/cSoPm27d/7ghUv9Y=; b=asNCBs8Q6Jb6KQ9WYx40Cftss0stdhFnMzB5WKqb/TjoNB8qnpq+tZ2WbKxguh8fU7 JX0ww6aHZUr7CDmr44e/uI/9cZrTyVpP0tXwKn8dSFLRnpKH71WcvSTlNspKWBj5UxUl 8i0DtYQhkWzR2JewhkgTZko6Sn0bqfEBykzfk+ljaodPQZeHnF7p2L2YzwbNPlZ6JK/V rbzabY0NyOvVwZk7LVVlFPw7gHHxKMJ7uam0JkWCm3o7kiXpx/bF3AC9/p2bxsC3DsO0 2Ub9CKx5pGiWxSHQwy+F/vM12+z9dJV5Zrcg10RRhkF6Zx8uh4P3qf2YB7GO3hb8qh2j uJLg== X-Gm-Message-State: AKS2vOzGh4TnNqTOPjRAPmDSpdHYydOuO2XQ/r1OT7ylsIUweNT3X/gN Z76WKdQN3NKkSSMCi51SW5/w17KtOQ== X-Received: by 10.25.196.210 with SMTP id u201mr6027554lff.88.1497720053210; Sat, 17 Jun 2017 10:20:53 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::230 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:215704 Archived-At: --001a114b2c30bea81605522b1fcf Content-Type: text/plain; charset="UTF-8" On Sat, Jun 17, 2017, 12:52 PM Kaushal Modi wrote: > > but replacing toggle-display-line-numbers function with a minor mode > line-numbers-mode? > Of course the line-number-mode to toggle line numbers in just the mode line already exists. Can the same minor mode be reused? Then using a defcustom user can specify: - line numbers in the margin (what would be the right word for that?), mode line or both - line numbers in the 'margin': regular/relative - line numbers in the 'margin': current line highlight on/off (my requested feature in the previous email) > -- Kaushal Modi --001a114b2c30bea81605522b1fcf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Jun 17, 2017, 12:52 PM = Kaushal Modi <kaushal.modi@gma= il.com> wrote:
=

but replacing toggle-display-line-numbers function with a minor mode lin= e-numbers-mode?

<= div>Of course the line-number-mode to toggle line numbers in just the mode = line already exists.=C2=A0

Can the same minor mode= be reused? Then using a defcustom user can specify:

- line numbers in the margin (what would be the right word for that?), m= ode line or both
- line numbers in the 'margin': regular/= relative
- line numbers in the 'margin': current line hig= hlight on/off (my requested feature in the previous email)
--

Kaushal Modi

--001a114b2c30bea81605522b1fcf--