bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#30074: 26.0; Add function(s) for current monitor info


From: Lars Ingebrigtsen
Subject: bug#30074: 26.0; Add function(s) for current monitor info
Date: Mon, 15 Jul 2019 18:35:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Drew Adams <drew.adams@oracle.com> writes:

> This is getting a bit ridiculous.  Why do
> you think we have functions like this?
>
> (defun frame-width (&optional frame)
>   "Return number of columns available for display on FRAME.
> If FRAME is omitted, describe the currently selected frame."
>   (cdr (assq 'width (frame-parameters frame))))
>
> Why don't you complain that `frame-parameters'
> already gives you that information? "What other
> information do you need?"

Because getting the frame width is something you need quite a bit.
Monitor width -- not so much.

I'm closing this bug report.

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





reply via email to

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