From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: "Why is emacs so square?" Date: Fri, 05 Jun 2020 18:10:00 +0300 Message-ID: <83sgf9a6rb.fsf@gnu.org> References: <863691n4xl.wl-me@enzu.ru> <86blno9yle.wl-me@enzu.ru> <87d0845msg.fsf@yahoo.com> <87h7xgjasw.fsf@yahoo.com> <875zdwjais.fsf@yahoo.com> <6a198677-41b6-4dbd-39d0-2b01550d53cf@yandex.ru> <32f6a2ce-e30f-059f-dcd4-233d666a10a1@yandex.ru> <833679boji.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="120759"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sb@dod.no, rms@gnu.org, emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 05 17:11:16 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jhE03-000VKE-Pb for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Jun 2020 17:11:15 +0200 Original-Received: from localhost ([::1]:53272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhE02-0000UN-Qt for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Jun 2020 11:11:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhDzC-0007mC-6k for emacs-devel@gnu.org; Fri, 05 Jun 2020 11:10:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38402) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhDz9-0002Yn-K4; Fri, 05 Jun 2020 11:10:19 -0400 Original-Received: from [176.228.60.248] (port=3642 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jhDyz-0007sw-Il; Fri, 05 Jun 2020 11:10:10 -0400 In-Reply-To: (message from Arthur Miller on Fri, 05 Jun 2020 16:57:32 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251904 Archived-At: > From: Arthur Miller > Cc: rms@gnu.org, sb@dod.no, emacs-devel@gnu.org > Date: Fri, 05 Jun 2020 16:57:32 +0200 > > > All of this is already available, although not all of it is exposed to > > Lisp. Taking advantage of existing pixel-level capabilities is part > > of the job of providing the features that Richard has in mind. > When you say all of this, and not exposed to lisp, what exactly do you > mean? :-) Is it possible to get a pixel offset from a point with elisp? > Height, width, or whatever that could be used to calculate if current > buffer region fits iin a page or not? See window-text-pixel-size as one example of what we have. The underlying functionality is even more powerful. > >> It would be nice if Emacs could draw a thin line to denote edges, or a > >> rectangle of page size below the text as word processors do > > > > We already can display such thin lines, see, for example, help-fns.el > > (search for ":height"). No X-level graphics is needed. > As composed of characters or as overlays with underline/overstruck or > similar? Just look at the code, it is self-explanatory, IMO. > What about a rectangle in some color as a background to symbolize a > page. You will see in the code I pointed to that we actually already produce a rectangle, just a very thin one.