From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Overlay behavior change Date: Wed, 08 Jul 2020 19:25:40 +0300 Message-ID: <83a70aq8hn.fsf@gnu.org> References: <83k0zeqdzr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20171"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 08 18:26:15 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 1jtCti-00058o-Lo for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jul 2020 18:26:14 +0200 Original-Received: from localhost ([::1]:44142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtCth-0006bW-Nm for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jul 2020 12:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtCt1-00063n-6V for emacs-devel@gnu.org; Wed, 08 Jul 2020 12:25:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39565) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtCsz-0005cE-MQ; Wed, 08 Jul 2020 12:25:29 -0400 Original-Received: from [176.228.60.248] (port=4484 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jtCsx-00059c-Nq; Wed, 08 Jul 2020 12:25:29 -0400 In-Reply-To: (emacs-devel@gnu.org) 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:252786 Archived-At: > Date: Wed, 8 Jul 2020 17:12:23 +0200 (CEST) > From: Gregory Heytings via "Emacs development discussions." > > What I would have liked to see is something that is neither the previous > nor the current default behavior. This idea will probably not be > considered (let's name it the attribute ":visualblock t"), but here it is: > > 1. calculate the overlay as it would have been displayed by Emacs 21 to > 26. > > 2. remove all pixel columns on the right *and on the left* of the overlay > which have no "content" (that is, no characters on the right, whitespace > characters on the left). > > This way the block (of code) would really be displayed on the screen as a > block, even a deeply nested one. The above "algorithm" would work with > fixed and variable-width fonts, but could of course be made more efficient > for fixed-width fonts. Feel free to submit a feature-request bug report about this.