From unknown Sat Aug 16 18:39:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33435: 27.0.50; A use case for recursive display specifications Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Nov 2018 18:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 33435@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154265355011148 (code B ref -1); Mon, 19 Nov 2018 18:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Nov 2018 18:52:30 +0000 Received: from localhost ([127.0.0.1]:32998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOoep-0002ti-Py for submit@debbugs.gnu.org; Mon, 19 Nov 2018 13:52:27 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOoen-0002tU-8J for submit@debbugs.gnu.org; Mon, 19 Nov 2018 13:52:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOoeh-00023d-Dp for submit@debbugs.gnu.org; Mon, 19 Nov 2018 13:52:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gOoeh-00023Q-AN for submit@debbugs.gnu.org; Mon, 19 Nov 2018 13:52:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOoeg-0005bk-Ji for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2018 13:52:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOoef-00020o-PQ for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2018 13:52:18 -0500 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:41372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOoef-0001zr-J4 for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2018 13:52:17 -0500 Received: by mail-lf1-x12c.google.com with SMTP id c16so22098571lfj.8 for ; Mon, 19 Nov 2018 10:52:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ffVH68zBL54uz7xKwWWVCqHPagFJD2HN/ZyKv0LQxZk=; b=ruQTWIMt92nqYLcYD19k7PR77m8kEh+09cWFMMmZLpyDI0rF2XrCqFVuyEub25ZH+O 0X9rqHP/PPQqbfOaUA8surcOj/ZPijkv83RD2UPudKe5whEwdh5FESYT+9ySpvXPg6Sp wHXqto0Ke2x6SPdNvRDsRZ6k/XMUhyTPX5XdT20PxdR/F1/qwQoI2xONHPVb48etnsk0 mCB+71C9tnMATcSQi75f0WwQaJD4YSxyA5XkI1rvzPxCdyOwuoNQ95L/Vus18ilQmTte hNzOoYKd32Dwjl+7OHaC6AsDk2BK1ec/9NThMt+/JqN3TLb+tmPVm+2CGIx16roFUVmx 5Fug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ffVH68zBL54uz7xKwWWVCqHPagFJD2HN/ZyKv0LQxZk=; b=EXeoIi6nR4o5q7/tv6luvyTVjJEswZkFw9KyO33I7s/4SCb9DTS/wnTt4zqairqTw8 o/28hFnmb6+qvbG3T5/Sflby8VQmKA3hCA8iVaz6A3OKB2N9/WnQVIIIGie+8u5y3cBv Qaqv46KoXSJG0FcEWAxcznlW4Yg9F51NjrJBgrQWTVVu3euJPMs95JKPONCUwudyHWwU l8YjCkWN5PxhWVKWq1qYYQVQvzPFrU7RKFoQw8+0DUqP3LA0Q9NPC+/zWQup8mjR3tL0 zmRg6h6CHBYXURxuACyqdQMFobmtudvfC5BcWzgSLY4D3pQzIb9fDCMFwn8ts1B163Nb yz8g== X-Gm-Message-State: AGRZ1gJKO6KfWrncMqiK1we2b4Ys6Jsab/4PGrWv4OBb79H6OmQk9IcR cFxZYdNGqA2HOX/Lv+2kGlm6LcTG3rK4rRVmTTrJcgRv X-Google-Smtp-Source: AJdET5e+oqMyOwW6RtaRsgh9UYaMni64K5E4Ke7/2HfuufWkKYD9Pnsqn50J/pQN1nxGISS5x67DnHzpd47VqcSrZm8= X-Received: by 2002:a19:7306:: with SMTP id o6mr11046666lfc.136.1542653535759; Mon, 19 Nov 2018 10:52:15 -0800 (PST) MIME-Version: 1.0 From: Pip Cet Date: Mon, 19 Nov 2018 18:51:37 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is a feature request: I'd like to be able to display an empty line as a non-empty line with images in it. If there's a way to do that with standard display specs, I haven't found it. It's possible I'm merely missing an obvious way to do so. I think there are two almost-equivalent approaches to achieving this: 1. interpret a list of display specifications by displaying the first element of the list, then the second, and so, on, so I could use (put-text-property beg end 'display `(,image1 ,image2 ,image3 "\n")) 2. allow a single level of recursion in display specifications, so I could use (put-text-property beg end 'display (concat (propertize " " 'display image1) (propertize " " 'display image2) (propertize " " 'display image3) "\n")) I've tried simply disabling the checks for recursive display specifications and (2) appears to work, but I don't know the precise rationale for their existence, so it's possible that breaks the display engine somehow. If the problem is merely the possibility of creating an infinite loop by setting a string's display property to the string itself (indeed, in my test build, that crashes emacs), that could be avoided while still allowing a single level of recursion. (I'm using this to highlight syntactic indentation with SVG images, and that's much prettier if empty lines are interpreted as being indented to the minimum of the preceding and following levels of indentation, rather than merely being empty.) From unknown Sat Aug 16 18:39:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33435: 27.0.50; A use case for recursive display specifications Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Nov 2018 19:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pip Cet Cc: 33435@debbugs.gnu.org Received: via spool by 33435-submit@debbugs.gnu.org id=B33435.154265626816379 (code B ref 33435); Mon, 19 Nov 2018 19:38:01 +0000 Received: (at 33435) by debbugs.gnu.org; 19 Nov 2018 19:37:48 +0000 Received: from localhost ([127.0.0.1]:33013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOpMi-0004G7-C7 for submit@debbugs.gnu.org; Mon, 19 Nov 2018 14:37:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOpMg-0004Fu-08 for 33435@debbugs.gnu.org; Mon, 19 Nov 2018 14:37:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOpMV-0007mI-Qu for 33435@debbugs.gnu.org; Mon, 19 Nov 2018 14:37:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOpMV-0007ly-NZ; Mon, 19 Nov 2018 14:37:35 -0500 Received: from [176.228.60.248] (port=2726 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gOpMV-0004yZ-3w; Mon, 19 Nov 2018 14:37:35 -0500 Date: Mon, 19 Nov 2018 21:37:36 +0200 Message-Id: <835zwskge7.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Pip Cet on Mon, 19 Nov 2018 18:51:37 +0000) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Pip Cet > Date: Mon, 19 Nov 2018 18:51:37 +0000 > > This is a feature request: I'd like to be able to display an empty line > as a non-empty line with images in it. I don't think I understand this. Can you elaborate what that means? In case I did understand: did you try an overlay with after-string that has an image display property on it? From unknown Sat Aug 16 18:39:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33435: 27.0.50; A use case for recursive display specifications Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Nov 2018 15:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: eliz@gnu.org Cc: 33435@debbugs.gnu.org Received: via spool by 33435-submit@debbugs.gnu.org id=B33435.15427270337169 (code B ref 33435); Tue, 20 Nov 2018 15:18:02 +0000 Received: (at 33435) by debbugs.gnu.org; 20 Nov 2018 15:17:13 +0000 Received: from localhost ([127.0.0.1]:35244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gP7m3-0001rX-Ns for submit@debbugs.gnu.org; Tue, 20 Nov 2018 10:17:13 -0500 Received: from mail-lf1-f48.google.com ([209.85.167.48]:44487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gP7m0-0001rG-Sh for 33435@debbugs.gnu.org; Tue, 20 Nov 2018 10:17:09 -0500 Received: by mail-lf1-f48.google.com with SMTP id z13so1576132lfe.11 for <33435@debbugs.gnu.org>; Tue, 20 Nov 2018 07:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B11FzixT++jGUp4xr9+R0cXNcA1Pj9jkPQ1wz+71JeI=; b=rmhJf9BC96nzhvApX3hk7gjmltJW7yS+50OpQhgRFE4RB2j/I1Dv1nDu6T+S1KEnLi 214KkZxdalcLPyMDjCMgmrzanGIStGWLqYT30qouaBHMB6At4UkiPFHUPOMazj9Ukn2c Dr2gMBSfBHN6N39mTdt0CKD+H5BswAyEmiv3twrWRUmmvuSXSE7pYoh2GioBfoT/s/fD gFZ5FCG+UU81hc1B/k0TKFgW4t+t6dxDl9IgiitBdj51ow03BoyzztrizaHI6rR7Yb9c EnEe1GYXoURAhowvLBbgl8gvU9k8QvAoT7VrP9UJVQpUNx9+11rCJgkxvS6V1gaXuZJi lR0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B11FzixT++jGUp4xr9+R0cXNcA1Pj9jkPQ1wz+71JeI=; b=WklAsT8p6i2e7ScyzdAum+/2vP/ui1OZ+OYp1TbiLybVvvN0nWQLyrhNxyKwlFC6un K/qKj0YMHtjPdZQWXu6mKWPDPJdMH7fBuXTc9y5Ot26j7jhDAtgPgNQbJDEhzRoccxWC ZNNabdOCVNs4c91b+VD2caUxcxMMIkWw2MSlKBRMjQq65GdnT9u+AI5gF/3gWx0zvhVT AtL6NJ38OsuZR2UoajNwO2z+6QE2qItalZ6Y8K7h9gDSC3tSa0g2wsbAsIaXKpizauK8 aw0pn7oCiBHNnNNNVH4Tisy37+Knec8sEpq6CA0tRmjaTezFaCtbl42vF7ntgJe7mYpd tGBQ== X-Gm-Message-State: AGRZ1gJejTm/3xwc/XNvqNVbCHHwIQYsSH9jut18dBAZaYjjTd0/c/Cc e64gF+i5D/9zGHdEeK67tMGCz9+aO88W7eO77U0= X-Google-Smtp-Source: AJdET5cTa83yVugNlzBvrz/2JgRQW5zuHfbVWe3OA96qSxI/cCLX+5JEZAe4Stw/hYI9ky7z68y8xfmpWZJxEnnUhtw= X-Received: by 2002:ac2:4354:: with SMTP id o20mr1419229lfl.129.1542727022910; Tue, 20 Nov 2018 07:17:02 -0800 (PST) MIME-Version: 1.0 References: <835zwskge7.fsf@gnu.org> In-Reply-To: <835zwskge7.fsf@gnu.org> From: Pip Cet Date: Tue, 20 Nov 2018 15:16:25 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Mon, Nov 19, 2018 at 7:37 PM Eli Zaretskii wrote: > > This is a feature request: I'd like to be able to display an empty line > > as a non-empty line with images in it. > > I don't think I understand this. Can you elaborate what that means? > > In case I did understand: did you try an overlay with after-string > that has an image display property on it? First, thanks for the suggestion; sorry, it simply hadn't occurred to me that after/before-string can do things display specifications cannot. Obviously I'm still thinking of a display-propertized display specification string as the more natural thing to do, and things are slightly different (cursor placement, modifications, highlighting of included text) with the after-string solution, but I'll try to get things working that way. Thanks again. From unknown Sat Aug 16 18:39:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33435: 27.0.50; A use case for recursive display specifications Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Nov 2018 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pip Cet Cc: 33435@debbugs.gnu.org Received: via spool by 33435-submit@debbugs.gnu.org id=B33435.154273141216020 (code B ref 33435); Tue, 20 Nov 2018 16:31:02 +0000 Received: (at 33435) by debbugs.gnu.org; 20 Nov 2018 16:30:12 +0000 Received: from localhost ([127.0.0.1]:35384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gP8ug-0004A7-9W for submit@debbugs.gnu.org; Tue, 20 Nov 2018 11:30:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gP8ue-00049d-Kz for 33435@debbugs.gnu.org; Tue, 20 Nov 2018 11:30:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gP8uV-0004D2-Ki for 33435@debbugs.gnu.org; Tue, 20 Nov 2018 11:30:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gP8uU-0004A1-F8; Tue, 20 Nov 2018 11:29:58 -0500 Received: from [176.228.60.248] (port=1973 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gP8uU-0000Xu-3C; Tue, 20 Nov 2018 11:29:58 -0500 Date: Tue, 20 Nov 2018 18:30:06 +0200 Message-Id: <83o9ajiuep.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Pip Cet on Tue, 20 Nov 2018 15:16:25 +0000) References: <835zwskge7.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Pip Cet > Date: Tue, 20 Nov 2018 15:16:25 +0000 > Cc: 33435@debbugs.gnu.org > > > In case I did understand: did you try an overlay with after-string > > that has an image display property on it? > > First, thanks for the suggestion; sorry, it simply hadn't occurred to > me that after/before-string can do things display specifications > cannot. Well, it's still a display spec, just on a string, not on buffer text. > Obviously I'm still thinking of a display-propertized display > specification string as the more natural thing to do, and things are > slightly different (cursor placement, modifications, highlighting of > included text) with the after-string solution, but I'll try to get > things working that way. Thanks again. Let me know if you have other difficulties. I should warn you that the combination of an overlay string and a display spec is used rarely, so you might bump into weird behavior and even bugs. Until Emacs 25 I think this combination was very buggy. From unknown Sat Aug 16 18:39:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33435: 27.0.50; A use case for recursive display specifications References: In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Oct 2019 00:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pip Cet Cc: Eli Zaretskii , 33435@debbugs.gnu.org Received: via spool by 33435-submit@debbugs.gnu.org id=B33435.157006202611693 (code B ref 33435); Thu, 03 Oct 2019 00:21:02 +0000 Received: (at 33435) by debbugs.gnu.org; 3 Oct 2019 00:20:26 +0000 Received: from localhost ([127.0.0.1]:38546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFor3-00032X-Ki for submit@debbugs.gnu.org; Wed, 02 Oct 2019 20:20:25 -0400 Received: from mail-pf1-f170.google.com ([209.85.210.170]:46911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFor2-00032J-FX for 33435@debbugs.gnu.org; Wed, 02 Oct 2019 20:20:24 -0400 Received: by mail-pf1-f170.google.com with SMTP id q5so516612pfg.13 for <33435@debbugs.gnu.org>; Wed, 02 Oct 2019 17:20:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=YMzoC99KAipOdd1B/qdLi2SdzxUWaKgdzilWcVjfV6k=; b=EtYFZ7JmfKMyi6NTs6isB1Uvc0RRzDL2Rdh5S7rbvU1Rhe9E6UfR/GOUXtJcJgH5C8 6xKOrnzSASvKQimwcZqfxCA8GkHD4YYSuTjUnfHQ1a3fgrtxhbysTGYPxCqGm+o9F+3l 8DCsYZgcowd3uGUa9ENNb7hiKQM3dfJjvPhAZB/fsZDbn3O9nhRniQgcveP8mKonyEYb 5vS7KK+Vvt13kUY9I4RT3CFdTskkfZFQjVFe2/rKtDRIrt1kyvOFNI3CyXriUqZmspj+ 5UD48RmC1lwhxaStPaLHdzE/Ma/rickzSXFlG3X+34BesPw2qDjVpji9txQmKFkJoYSK xqaQ== X-Gm-Message-State: APjAAAVqoU2p/GhwHUmyvSCrEWXXfHniIIQ7s7rYtErzfc828hs8sVM9 OqMqs6VT3CYxCpe1Tp61w7l8w60ClfRVI/vHmyQ= X-Google-Smtp-Source: APXvYqyG5PHAMWZdWqYKIvvEk9ZTybMJTWfNEHdiBgXXPGca8QAcCiiyW5mg+mOS96OwEMejO4zzKI60W46voYtJSr4= X-Received: by 2002:aa7:8750:: with SMTP id g16mr7658333pfo.190.1570062018659; Wed, 02 Oct 2019 17:20:18 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Thu, 3 Oct 2019 02:20:07 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Pip Cet writes: > On Mon, Nov 19, 2018 at 7:37 PM Eli Zaretskii wrote: >> > This is a feature request: I'd like to be able to display an empty line >> > as a non-empty line with images in it. >> >> I don't think I understand this. Can you elaborate what that means? >> >> In case I did understand: did you try an overlay with after-string >> that has an image display property on it? > > First, thanks for the suggestion; sorry, it simply hadn't occurred to > me that after/before-string can do things display specifications > cannot. > > Obviously I'm still thinking of a display-propertized display > specification string as the more natural thing to do, and things are > slightly different (cursor placement, modifications, highlighting of > included text) with the after-string solution, but I'll try to get > things working that way. Thanks again. Is this feature request still relevant, or did Eli's reply solve this use case? Thanks. Best regards, Stefan Kangas From unknown Sat Aug 16 18:39:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33435: 27.0.50; A use case for recursive display specifications Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Oct 2019 12:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: Eli Zaretskii , 33435@debbugs.gnu.org Received: via spool by 33435-submit@debbugs.gnu.org id=B33435.15701060736606 (code B ref 33435); Thu, 03 Oct 2019 12:35:03 +0000 Received: (at 33435) by debbugs.gnu.org; 3 Oct 2019 12:34:33 +0000 Received: from localhost ([127.0.0.1]:38910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG0JV-0001iU-8I for submit@debbugs.gnu.org; Thu, 03 Oct 2019 08:34:33 -0400 Received: from mail-ot1-f51.google.com ([209.85.210.51]:43334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG0JS-0001iG-KD for 33435@debbugs.gnu.org; Thu, 03 Oct 2019 08:34:31 -0400 Received: by mail-ot1-f51.google.com with SMTP id o44so2076484ota.10 for <33435@debbugs.gnu.org>; Thu, 03 Oct 2019 05:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ofPe9lh3ZIi+ZS/U0swBQS9Mqic1NApC8dNa2FGfllM=; b=juGQQHa1LgHIKeiZIFKAGZb9/1kzqkf6EgbSI+6odrPTjDyiGU/r6k5fRKQwjkgpcp tYrZigJurp72euk8J9al7Q5lGlbfizS7ez2ddJcxziIKqDTalhMVGtP7W/sCBO7+QEcA FdQ6GRWs6oaSA3tUXaJ6lJ8q+D7xJZJNdiHwD7xB9VKv30zmNf8nQzCgBHLmiSAOM2eK CuRB1FAw+peJ6tC3pfrNZAz8fF8b/TiueI/XDq9I0iJu4ea8/E3Ejydl6ODpqzLp4njV fXDJHB07QETkcz9gjz74dpOk5sgsdIgNg9kNVXM8CjUSXCJ9gwb6S4KEf5RZKunKRgc1 06Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ofPe9lh3ZIi+ZS/U0swBQS9Mqic1NApC8dNa2FGfllM=; b=tURNqnmYKYclAfdlVjnDwThNyVJ7yYgHyG8KzOnz4v5vT2KinFmtLIB8ePHUQFPW1O aIuwzNa3DXpyVaPV0SpMt8qgYX8C24X684WXx/fnpNGcDnt3vwIEgrw/14PuZ7o1xxYZ LYUka5UgbmmIwxZrbhT8/KR2RX871r7HX0q92wuw0Qeib8dBDXY8A/1pScZEea9vgmmp y+m7KDUaZiB+/0BPaLGAtI2PYZllxRre9wpu7Cvcg3WJ7xjSoXJapCu/V6LSqdCorwW2 x0WSK/Mz0/OQ46CuqPncj8cPL43w3ErbVSq2MQ000bN184pfROV4o5A8CZd5uBCCzJGJ w8fg== X-Gm-Message-State: APjAAAWvQeWX2imtFKZPujgf5HPyJwsP7Hbbf/RS/vNReFok5nSMbXS4 GSi9DB+J2MCnjsbTIoXI8wc4UlDqICaIGOgxkI8= X-Google-Smtp-Source: APXvYqwV2BPdcakP5NZGtTTjydJ5PxDlavQqoEj9FiXJqv5B3ylvGmQM9GeElxwDYwU8t/zXr2ysDTjcPNxyICxwTPU= X-Received: by 2002:a05:6830:134b:: with SMTP id r11mr6862884otq.154.1570106065063; Thu, 03 Oct 2019 05:34:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pip Cet Date: Thu, 3 Oct 2019 12:33:49 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, Oct 3, 2019 at 12:20 AM Stefan Kangas wrote: > Is this feature request still relevant, or did Eli's reply solve this > use case? Thanks. I think we can close this bug. It would be nice to have a way to do this without using overlays or modifying buffer text (the latter of which is what I ended up doing), but hopefully new ideas for how to handle overlay/text properties will take care of that one day... Thanks! Pip From unknown Sat Aug 16 18:39:17 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Pip Cet Subject: bug#33435: closed (Re: bug#33435: 27.0.50; A use case for recursive display specifications) Message-ID: References: X-Gnu-PR-Message: they-closed 33435 X-Gnu-PR-Package: emacs Reply-To: 33435@debbugs.gnu.org Date: Thu, 03 Oct 2019 16:44:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1570121042-11000-1" This is a multi-part message in MIME format... ------------=_1570121042-11000-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #33435: 27.0.50; A use case for recursive display specifications which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 33435@debbugs.gnu.org. --=20 33435: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33435 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1570121042-11000-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 33435-done) by debbugs.gnu.org; 3 Oct 2019 16:43:09 +0000 Received: from localhost ([127.0.0.1]:40971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG4C5-0002pu-BO for submit@debbugs.gnu.org; Thu, 03 Oct 2019 12:43:09 -0400 Received: from mail-pg1-f180.google.com ([209.85.215.180]:34273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG4C2-0002pL-5a for 33435-done@debbugs.gnu.org; Thu, 03 Oct 2019 12:43:08 -0400 Received: by mail-pg1-f180.google.com with SMTP id y35so2134032pgl.1 for <33435-done@debbugs.gnu.org>; Thu, 03 Oct 2019 09:43:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7dzA3kYJ2/uQ6bqEf+iGPWWDz4U3Dvida6u5pUtn9Gk=; b=GHtKd7JWK3Mgb3e0m8khJUqlLAGhJhOBTIb378bmT+YBVh1nIX04hl8trRc+1uSupb IY+Hvsm/xRK9CiCf3kIElS2RDRW/bJ59tctOEFuUQQvxSs0F13GXaBCuWJgceLDgf9/0 GQjr5V3jgwCxtv7Jf/5M6qaCvsSIXd1DE86uMXNJOIMKyO+grt7HzkzTRLWSQJVNmJHK AF/cbXlBPjkDH4qDFldRnbFgr1ihWHf8oHklOMQlhYbTGnA/9z6i1mATI0wFH2mWHWnr CXbzBtFSKb0C6zeJnXRRvYRNCFhWFlbQURZdnLaqeOKX8R7GuKQ+dtqG8CzpbyvKE0Ja fFog== X-Gm-Message-State: APjAAAWWJeWS/SFwzoCsV9gARdcbD6dVKVEaoYu7IYn0Of9/EpNeXPYv dFouprustVBQ4xXkaWnXK4/1xOJgA12+EGr8AkQ= X-Google-Smtp-Source: APXvYqwZR1rDjcBQFEHNh//tAYOwfVl+LWuHWeNT40Bzbj+Ar+e+x3ZYjx1i6eFfbrU1LPcKnevr5gDJk9XI5+Lzs1o= X-Received: by 2002:a65:5802:: with SMTP id g2mr10960165pgr.333.1570120980148; Thu, 03 Oct 2019 09:43:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stefan Kangas Date: Thu, 3 Oct 2019 18:42:48 +0200 Message-ID: Subject: Re: bug#33435: 27.0.50; A use case for recursive display specifications To: Pip Cet Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 33435-done Cc: Eli Zaretskii , 33435-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) skrev Pip Cet writes: > On Thu, Oct 3, 2019 at 12:20 AM Stefan Kangas wrote: > > Is this feature request still relevant, or did Eli's reply solve this > > use case? Thanks. > > I think we can close this bug. It would be nice to have a way to do > this without using overlays or modifying buffer text (the latter of > which is what I ended up doing), but hopefully new ideas for how to > handle overlay/text properties will take care of that one day... > > Thanks! Thank you for clarifying! Closing now. Best regards, Stefan Kangas ------------=_1570121042-11000-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 Nov 2018 18:52:30 +0000 Received: from localhost ([127.0.0.1]:32998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOoep-0002ti-Py for submit@debbugs.gnu.org; Mon, 19 Nov 2018 13:52:27 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOoen-0002tU-8J for submit@debbugs.gnu.org; Mon, 19 Nov 2018 13:52:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOoeh-00023d-Dp for submit@debbugs.gnu.org; Mon, 19 Nov 2018 13:52:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gOoeh-00023Q-AN for submit@debbugs.gnu.org; Mon, 19 Nov 2018 13:52:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOoeg-0005bk-Ji for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2018 13:52:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOoef-00020o-PQ for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2018 13:52:18 -0500 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:41372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOoef-0001zr-J4 for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2018 13:52:17 -0500 Received: by mail-lf1-x12c.google.com with SMTP id c16so22098571lfj.8 for ; Mon, 19 Nov 2018 10:52:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ffVH68zBL54uz7xKwWWVCqHPagFJD2HN/ZyKv0LQxZk=; b=ruQTWIMt92nqYLcYD19k7PR77m8kEh+09cWFMMmZLpyDI0rF2XrCqFVuyEub25ZH+O 0X9rqHP/PPQqbfOaUA8surcOj/ZPijkv83RD2UPudKe5whEwdh5FESYT+9ySpvXPg6Sp wHXqto0Ke2x6SPdNvRDsRZ6k/XMUhyTPX5XdT20PxdR/F1/qwQoI2xONHPVb48etnsk0 mCB+71C9tnMATcSQi75f0WwQaJD4YSxyA5XkI1rvzPxCdyOwuoNQ95L/Vus18ilQmTte hNzOoYKd32Dwjl+7OHaC6AsDk2BK1ec/9NThMt+/JqN3TLb+tmPVm+2CGIx16roFUVmx 5Fug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ffVH68zBL54uz7xKwWWVCqHPagFJD2HN/ZyKv0LQxZk=; b=EXeoIi6nR4o5q7/tv6luvyTVjJEswZkFw9KyO33I7s/4SCb9DTS/wnTt4zqairqTw8 o/28hFnmb6+qvbG3T5/Sflby8VQmKA3hCA8iVaz6A3OKB2N9/WnQVIIIGie+8u5y3cBv Qaqv46KoXSJG0FcEWAxcznlW4Yg9F51NjrJBgrQWTVVu3euJPMs95JKPONCUwudyHWwU l8YjCkWN5PxhWVKWq1qYYQVQvzPFrU7RKFoQw8+0DUqP3LA0Q9NPC+/zWQup8mjR3tL0 zmRg6h6CHBYXURxuACyqdQMFobmtudvfC5BcWzgSLY4D3pQzIb9fDCMFwn8ts1B163Nb yz8g== X-Gm-Message-State: AGRZ1gJKO6KfWrncMqiK1we2b4Ys6Jsab/4PGrWv4OBb79H6OmQk9IcR cFxZYdNGqA2HOX/Lv+2kGlm6LcTG3rK4rRVmTTrJcgRv X-Google-Smtp-Source: AJdET5e+oqMyOwW6RtaRsgh9UYaMni64K5E4Ke7/2HfuufWkKYD9Pnsqn50J/pQN1nxGISS5x67DnHzpd47VqcSrZm8= X-Received: by 2002:a19:7306:: with SMTP id o6mr11046666lfc.136.1542653535759; Mon, 19 Nov 2018 10:52:15 -0800 (PST) MIME-Version: 1.0 From: Pip Cet Date: Mon, 19 Nov 2018 18:51:37 +0000 Message-ID: Subject: 27.0.50; A use case for recursive display specifications To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is a feature request: I'd like to be able to display an empty line as a non-empty line with images in it. If there's a way to do that with standard display specs, I haven't found it. It's possible I'm merely missing an obvious way to do so. I think there are two almost-equivalent approaches to achieving this: 1. interpret a list of display specifications by displaying the first element of the list, then the second, and so, on, so I could use (put-text-property beg end 'display `(,image1 ,image2 ,image3 "\n")) 2. allow a single level of recursion in display specifications, so I could use (put-text-property beg end 'display (concat (propertize " " 'display image1) (propertize " " 'display image2) (propertize " " 'display image3) "\n")) I've tried simply disabling the checks for recursive display specifications and (2) appears to work, but I don't know the precise rationale for their existence, so it's possible that breaks the display engine somehow. If the problem is merely the possibility of creating an infinite loop by setting a string's display property to the string itself (indeed, in my test build, that crashes emacs), that could be avoided while still allowing a single level of recursion. (I'm using this to highlight syntactic indentation with SVG images, and that's much prettier if empty lines are interpreted as being indented to the minimum of the preceding and following levels of indentation, rather than merely being empty.) ------------=_1570121042-11000-1--