From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Gallagher - NOAA Affiliate via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#50506: 28.0.50; display-line-numbers equivalent for linum-format? Date: Mon, 13 Sep 2021 11:54:59 -0600 Message-ID: References: <87czpgc1yb.fsf@noaa.gov> <83fsucipdz.fsf@gnu.org> <87tuirnwu0.fsf@gnus.org> Reply-To: Michael Gallagher - NOAA Affiliate Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000003cd8405cbe42ccf" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4656"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50506@debbugs.gnu.org, Eli Zaretskii To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 13 19:56:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mPqBe-00010y-Ul for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Sep 2021 19:56:11 +0200 Original-Received: from localhost ([::1]:57600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPqBd-0004CV-6p for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Sep 2021 13:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPqBW-0004CM-AD for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2021 13:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35218) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPqBV-0005sk-UB for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2021 13:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mPqBV-0005Mo-QP for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2021 13:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Gallagher - NOAA Affiliate Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Sep 2021 17:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50506 X-GNU-PR-Package: emacs Original-Received: via spool by 50506-submit@debbugs.gnu.org id=B50506.163155574320603 (code B ref 50506); Mon, 13 Sep 2021 17:56:01 +0000 Original-Received: (at 50506) by debbugs.gnu.org; 13 Sep 2021 17:55:43 +0000 Original-Received: from localhost ([127.0.0.1]:46764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPqBC-0005ME-Lz for submit@debbugs.gnu.org; Mon, 13 Sep 2021 13:55:43 -0400 Original-Received: from mail-pl1-f181.google.com ([209.85.214.181]:34635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPqBB-0005M1-4f for 50506@debbugs.gnu.org; Mon, 13 Sep 2021 13:55:41 -0400 Original-Received: by mail-pl1-f181.google.com with SMTP id o8so3275130pll.1 for <50506@debbugs.gnu.org>; Mon, 13 Sep 2021 10:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y2JSuWZFEyxJhF0hElyPM0N5fJSBGZnuINRjlTcoWjY=; b=StZP6veAm8Y3ocZexEY8rE1uexbORjM/1WDCIINV9K9/8Vu6HED241hyJVxURfalJk UydPXQnyJvh9nm1OHIIAu8Hyw8x1lo1Bqrwj+/rFZspVfuOzSuRWXGGYdBZrV+UEAPcG t4SqKITkQqV99JBpGqkr08IKfUKDPbu7qL7uNtUzDekOWy2CxXrj7kyMFFXw9Ne8SZ9z zrl6C5kScUKAcU/jwinkMEKA+s+lWYS3HxB4b9oLKXuRV5NVBn2zRbxm0OGSOiXRGli9 EyZn2/05sgeLcMVuezHyqPOrUWPaDHG0Rd9Cvl5dD5ood0gUom1n67tzmSDdbZvHr+1a G++g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y2JSuWZFEyxJhF0hElyPM0N5fJSBGZnuINRjlTcoWjY=; b=rIlQb3SavsnYltyWduPYmOIJBBHzT+RmuRVxaxq7YDq/Hcs5gE/4x67X94mBvBuu4s nz4Ki8wBX2FnLyZia7JRZGltsVOBL/Firjwywwf7BhhBWV97cp7b2nXHWZnteoYspZvP X5WwPvctTvb8EaAs1Wm9G7Hx9ILb2gzdh013iwuiAv9Mf2bx+GmYbl7Wsvdd72hHTAGm LEQkL2KWmhFlTLNHHwmkXtnw51Z7Agahkkspy4xVsbNMQT/EWLWRG6z5dNWer7g6gtIy LCQ4smkfgGCrCkIr041pwE3QilXEgVyoCEB9V0KMewJlx1nR/sZHQnfKOEDDxZmoGou8 KjSw== X-Gm-Message-State: AOAM533yQV7HbigC9/a8qLfA10azc7w6o+64pIt/bXk6z8w6RODuVfzk Ry89XGddLbGAYOACLVfRHdtfnjh1RDBK0p7AFl2BHQ5YSrs= X-Google-Smtp-Source: ABdhPJw8IFYM1mhkw2nTYPIJjGu5pYXcZ5bzUBYdm72Prrm04BD6DKI8RFqZR2E1yNCcj33Pds07CXomCSptO12wKEY= X-Received: by 2002:a17:902:b789:b0:13b:90bc:f184 with SMTP id e9-20020a170902b78900b0013b90bcf184mr6859459pls.31.1631555734966; Mon, 13 Sep 2021 10:55:34 -0700 (PDT) In-Reply-To: <87tuirnwu0.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214244 Archived-At: --00000000000003cd8405cbe42ccf Content-Type: text/plain; charset="UTF-8" Thank you all for the replies. Lars, I do this already but it only really helps most when it's high contrast (white --> black) like you've shown here. And with that, it hurts my brain for other reasons... I swear I'm not overly sensitive. Eli, as far as your suggestions, these requirements make sense to me. I took a crack at modifying xdisp.c and was able to display ascii characters by appending to lnum_buf before the numbers are displayed. However, when I tried to hook that into the lisp code and add a variable so that it wouldn't be hardcoded (a must, of course) I fell flat on my face. Converting between character lisp variables to the appropriate C types is above my "undergrad CSCI refresher" pay grade. I wish I could be more helpful but if I were to be the one to submit a pull request I would probably need someone to hold my hand. Best, Michael On Sat, Sep 11, 2021 at 6:03 AM Lars Ingebrigtsen wrote: > Michael Gallagher - NOAA Affiliate > writes: > > > The purpose for me is to clearly delineate the > > text/code from the line numbers in a way that makes it easier to grok the > > text being displayed. My brain sees the numbers as part of the code with > the > > current formatting of display-line-numbers, but maybe I'm uniquely > > incapable. > > Does it help to customize the `line-number' face to something that has a > different background colour than the main text? For instance, setting > the background colour to black gives me this: > > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > -- Michael Gallagher, PhD CIRES Research Scientist Polar Observations and Processes Team (ESRL/NOAA/PSD) 325 Broadway, Boulder, Colorado 80305 --00000000000003cd8405cbe42ccf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you all for the replies.

Lars, I do this already but it only really helps most when it's= high contrast (white --> black) like you've shown here. And with th= at, it hurts my brain for other reasons... I swear I'm not overly sensi= tive.

Eli, as far as your suggestions, these = requirements make sense to me. I took a crack at modifying xdisp.c and was = able to display ascii characters by appending to lnum_buf before the number= s are displayed. However, when I tried to hook that into the lisp code and = add a variable so that it wouldn't be hardcoded (a must, of course) I f= ell flat on my face. Converting between character lisp variables to the app= ropriate C types is above my "undergrad CSCI refresher" pay grade= . I wish I could be more helpful but if I were to be the one to submit a pu= ll request I would probably need someone to hold my hand.
Best,
Michael

On Sat, Sep 11, 2021 at 6:03 = AM Lars Ingebrigtsen <larsi@gnus.org> wrote:
Mi= chael Gallagher - NOAA Affiliate <michael.r.gallagher@noaa.gov>
writes:

> The purpose for me is to clearly delineate the
> text/code from the line numbers in a way that makes it easier to grok = the
> text being displayed. My brain sees the numbers as part of the code wi= th the
> current formatting of display-line-numbers, but maybe I'm uniquely=
> incapable.

Does it help to customize the `line-number' face to something that has = a
different background colour than the main text?=C2=A0 For instance, setting=
the background colour to black gives me this:


--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no


--
Michael Gallagher, PhD
CIRES Research Scientist
<= /div>
Polar Obser= vations and Processes Team (ESRL/NOAA/PSD)
325 Broadway, Boulder, Colorado 80305
--00000000000003cd8405cbe42ccf--