From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#42307: Feature request: Visual block attribute for overlays Date: Tue, 14 Jul 2020 17:01:43 +0000 Message-ID: References: <83k0z6n7w6.fsf@gnu.org> <83eepem9im.fsf@gnu.org> <837dv6m4xm.fsf@gnu.org> Reply-To: Gregory Heytings Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10594"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.21 (NEB 202 2017-01-01) To: 42307@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 14 19:02:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jvOJn-0002eL-LD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jul 2020 19:02:11 +0200 Original-Received: from localhost ([::1]:33112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvOJm-0003nU-Nk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jul 2020 13:02:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvOJe-0003nE-T9 for bug-gnu-emacs@gnu.org; Tue, 14 Jul 2020 13:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jvOJe-0001l4-JL for bug-gnu-emacs@gnu.org; Tue, 14 Jul 2020 13:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jvOJe-0003l8-HN for bug-gnu-emacs@gnu.org; Tue, 14 Jul 2020 13:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jul 2020 17:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42307 X-GNU-PR-Package: emacs Original-Received: via spool by 42307-submit@debbugs.gnu.org id=B42307.159474611114433 (code B ref 42307); Tue, 14 Jul 2020 17:02:02 +0000 Original-Received: (at 42307) by debbugs.gnu.org; 14 Jul 2020 17:01:51 +0000 Original-Received: from localhost ([127.0.0.1]:51440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jvOJS-0003kj-OY for submit@debbugs.gnu.org; Tue, 14 Jul 2020 13:01:51 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:51471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jvOJQ-0003kZ-On for 42307@debbugs.gnu.org; Tue, 14 Jul 2020 13:01:49 -0400 Original-Received: from sdf.org (IDENT:ghe@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 06EH1kGV017637 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 14 Jul 2020 17:01:46 GMT Original-Received: (from ghe@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 06EH1jVM007271; Tue, 14 Jul 2020 17:01:45 GMT In-Reply-To: <837dv6m4xm.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182998 Archived-At: >>> and \n is the newline, so it isn't on the same line. >>> >> >> It is, but it's the last character of the line. With the current >> default behavior it is displayed, there is one more blank character >> after each line, just type C-x = on that character. > > My point is that \n cannot be "leading space" of a line. It is the end > of the previous line. > Yes, now I see what you mean. So the regexp for "blank" on the left would be "[ \t]*", and the regexp for "blank" on the right would be "\n%*", where "%" denotes "no character". > >>> And finally, what about stretches of whitespace generated by the >>> 'space' display properties? >> >> I don't know, and I'm not sure I fully understand the question. > > The point is that the result of displaying these properties is exactly > the same as tabs and spaces. So excluding them would surprise users. > Okay. So... let's include them ;-) In fact, I'm not entirerly sure that explaining (or implementing) that behavior with regexpes or character is the best thing to do. It's a matter of visual representation. Perhaps the following explanation is clearer (or more precise): draw the overlay with :extend t, and remove pixel columns on the left and on the right that are displayed in the same way as a whitespace character would have been displayed. Gregory