From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#37120: [PATCH] Prefer display-line-numbers over linum in docs and custom Date: Thu, 22 Aug 2019 15:19:42 +0200 Message-ID: References: <835zmrlnvv.fsf@gnu.org> <83v9uqjwgp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="121659"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37120@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 22 15:21:56 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i0n2K-000VYZ-KC for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Aug 2019 15:21:56 +0200 Original-Received: from localhost ([::1]:43076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0n2I-00027o-NT for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Aug 2019 09:21:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37126) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0n0c-0008EK-Nl for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2019 09:20:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0n0U-0002IO-VJ for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2019 09:20:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56542) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0n0U-0002I1-AK for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2019 09:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i0n0U-0004TH-3f for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2019 09:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Aug 2019 13:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37120 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37120-submit@debbugs.gnu.org id=B37120.156647999317167 (code B ref 37120); Thu, 22 Aug 2019 13:20:02 +0000 Original-Received: (at 37120) by debbugs.gnu.org; 22 Aug 2019 13:19:53 +0000 Original-Received: from localhost ([127.0.0.1]:37130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0n0K-0004Sp-Ul for submit@debbugs.gnu.org; Thu, 22 Aug 2019 09:19:53 -0400 Original-Received: from mail-ed1-f50.google.com ([209.85.208.50]:44754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0n0I-0004Sa-Tv for 37120@debbugs.gnu.org; Thu, 22 Aug 2019 09:19:51 -0400 Original-Received: by mail-ed1-f50.google.com with SMTP id a21so7877834edt.11 for <37120@debbugs.gnu.org>; Thu, 22 Aug 2019 06:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=fVm3BobJbjAdwUaG1OOjBwTpJ8NsdcYbnGH6WyO0rJg=; b=Y/djjAOWrRjBOe+6rHc9QZZe/XQX7D+ASUtXx+uJIY0QQ2yNQ5m+TD3N1k77R41Wq0 0lqUhJYmfpd8JiSxpc+4ecb3XF/GlWsKX/IajIHEX5SJQ5F7/q/uSLNPBnT1Gi/c+19m FskbI3tbDS/rL3IjqLNDBvMeO1k6Qsk9f7hsCIZsXAv5WEPMzO2gbjlYZvxsIDf+ggL5 myUS0JO6mz5L5RSY5yT3NtxehQV/GXTagj1QNYaqYE814KMi/Yg+pLopCmiRB4qBokTM KWvyXHGOvF/TZiGaXMAQnrZz8dxgVXgstYjbPiaPh6+of2KfvsvdzGU1yvcVx+8jChzB u3ZA== 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:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=fVm3BobJbjAdwUaG1OOjBwTpJ8NsdcYbnGH6WyO0rJg=; b=G/Y5i0Vt0DkwWqUIrSXsYCNEFDj+weX7QtHQOZSqSMMGdcaiq3QFs7cnbrx6GEXEZl 3Hnhbd2RjDE/6/mW8N8EB9OPkGT7kppXOe5VhQnDWAbvRpLmH4UCECHldgIZ/dF3uOsg a7of0fNrvHSuzjuIn8SjufLZtsWmOcLaYmYJWzZoRltz8gYBkfobd8z4g6/r3Bb3XKiw 3wKh8Mz9o6w9zZyhuPOJSgJDtqBqgFFcvOg2hnaTwBtrGB/uObULzdNj1g/4dEIUw+X3 SK9Xue53uEAAcMy/GLdQG51Z7nzTumA4R9LRyYCayz2rPugxphr6PKgtmIDj5FxXUjvQ LUYg== X-Gm-Message-State: APjAAAVYRYt4s2/6GSw03V9knhsrHZemR3olfQTY8212q8kvITSPyWcS vEBDsux3PnExx3lINqCutj7etMIv X-Google-Smtp-Source: APXvYqxxUDGbBKuzkjFl4vsXBrc+JVUNjKf3+dK4gGfhHyRCVNJ3TaXeuZNWSJjuKZYoLWtBDJxnSw== X-Received: by 2002:a17:906:48da:: with SMTP id d26mr35865814ejt.106.1566479984477; Thu, 22 Aug 2019 06:19:44 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id o11sm3658477ejd.68.2019.08.22.06.19.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Aug 2019 06:19:43 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Stefan Kangas's message of "Thu, 22 Aug 2019 14:29:58 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165565 Archived-At: >>>>> On Thu, 22 Aug 2019 14:29:58 +0200, Stefan Kangas said: Stefan> From 0e76a8238b684860eb75f049dffd0c7b4c978272 Mon Sep 17 00:00:00 2001 Stefan> From: Stefan Kangas Stefan> Date: Sat, 1 Jun 2019 01:40:11 +0200 Stefan> Subject: [PATCH] Prefer display-line-numbers over linum in docs and one Stefan> defcustom Stefan> * doc/misc/efaq.texi: Replace linum with display-line-numbers-mode. Stefan> * lisp/progmodes/prog-mode.el (prog-mode-hook): Replace linum-mode Stefan> with display-line-numbers-mode in :options. Stefan> --- Stefan> doc/misc/efaq.texi | 19 ++++++++++++++----- Stefan> lisp/progmodes/prog-mode.el | 3 ++- Stefan> 2 files changed, 16 insertions(+), 6 deletions(-) Stefan> diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi Stefan> index 8fd3bf3a45..67fc05c810 100644 Stefan> --- a/doc/misc/efaq.texi Stefan> +++ b/doc/misc/efaq.texi Stefan> @@ -1687,11 +1687,20 @@ Displaying the current line or column Stefan> this variable. Stefan> @cindex Set number capability in @code{vi} emulators Stefan> -The @samp{linum} package (distributed with Emacs since version 23.1) Stefan> -displays line numbers in the left margin, like the ``set number'' Stefan> -capability of @code{vi}. The packages @samp{setnu} and Stefan> -@samp{wb-line-number} (not distributed with Emacs) also implement this Stefan> -feature. Stefan> +The @samp{display-line-numbers} package (added to Emacs in version Stefan> +26.1) displays line numbers in the text area, before each line, like Stefan> +the ``set number'' capability of @code{vi}. Customize Stefan> the @samp around 'set number'? (although it was like that before your changes). Stefan> +buffer-local variable 'display-line-numbers' to activate this optional Stefan> +display. Alternatively, you can use the 'display-line-numbers-mode' Stefan> +minor mode or the global 'global-display-line-numbers-mode'. When Stefan> +using these modes, customize 'display-line-numbers-type' with the same Stefan> +value as you would use with 'display-line-numbers'. Stefan> + All these variables/command should use @code{} rather than explicit quotes, I think. Robert