emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add function window-line-width


From: Robert Pluim
Subject: Re: [PATCH] Add function window-line-width
Date: Thu, 07 Nov 2019 10:23:21 +0100

>>>>> On Thu, 7 Nov 2019 06:49:48 +0800, Sébastien Chapuis <address@hidden> 
>>>>> said:

    Sébastien> Hello,
    Sébastien> I would like to propose the function `window-line-width'.
    Sébastien> This is to use it in the package lsp-ui[1]

Doesnʼt 'window-text-pixel-size' provide most of this already?

(window-text-pixel-size nil (point-at-bol) (point-at-eol))

will give you the pixel length of the current line.

Robert



reply via email to

[Prev in Thread] Current Thread [Next in Thread]