From: Eli Zaretskii <eliz@gnu.org>
To: "Mattias Engdegård" <mattiase@acm.org>
Cc: bzg@gnu.org, emacs-devel@gnu.org
Subject: Re: How to get the line offset in `display-line-numbers-mode'?
Date: Fri, 31 Jan 2020 21:29:02 +0200 [thread overview]
Message-ID: <83k157jugx.fsf@gnu.org> (raw)
In-Reply-To: <19F7E60D-7D4A-41C1-B6E2-8FA5356738F9@acm.org> (message from Mattias Engdegård on Fri, 31 Jan 2020 19:44:59 +0100)
> From: Mattias Engdegård <mattiase@acm.org>
> Date: Fri, 31 Jan 2020 19:44:59 +0100
> Cc: emacs-devel@gnu.org
>
> 31 jan. 2020 kl. 19.14 skrev Bastien <bzg@gnu.org>:
>
> > Assuming display-line-numbers-mode is turned on, how can I get
> > the number of spaces this mode uses for displaying numbers?
>
> It may not be the right way, but I ended up using
>
> (round (line-number-display-width 'columns))
That's the right way.
next prev parent reply other threads:[~2020-01-31 19:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-31 18:14 How to get the line offset in `display-line-numbers-mode'? Bastien
2020-01-31 18:44 ` Mattias Engdegård
2020-01-31 19:29 ` Eli Zaretskii [this message]
2020-01-31 20:28 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83k157jugx.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=bzg@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mattiase@acm.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.