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.bugs Subject: bug#73600: 31.0.50; Visual wrap prefix mode and image display Date: Sun, 13 Oct 2024 08:36:01 +0300 Message-ID: <861q0kva2m.fsf@gnu.org> References: <87wmiq1wsd.fsf@gautierponsinet.xyz> <86cyki1pgu.fsf@gnu.org> <86bk021p1k.fsf@gnu.org> <3117d4b7-751c-8c6d-8acf-48dc6464e723@gmail.com> <86h69tzc2w.fsf@gnu.org> <57d753c5-538d-d026-2f41-2a0eaddef746@gmail.com> <86v7y8xtyi.fsf@gnu.org> <867canxda6.fsf@gnu.org> <86plo5wmy7.fsf@gnu.org> <31b6ff37-f742-c7a1-cd80-ea1f79f11cda@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4349"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73600@debbugs.gnu.org, gautier@gautierponsinet.xyz To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 13 07:37:06 2024 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 1szrHs-0000zx-Th for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Oct 2024 07:37:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szrHg-0002LT-41; Sun, 13 Oct 2024 01:36:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szrHd-0002LB-Ef for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 01:36:49 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szrHb-0004Az-LW for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 01:36:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=GJGdDNZ+3t2rr62v9hHfOZq1LEi3S24kR8h34ycrU6o=; b=OEPel9u0n5nZGWbnrJAaUyBrLD00+oUzVC4qMg3t9667ygsY2x4STlGkAKCDyQhYh0TAFrJcZpVtVMV9oee+C17TZq/oO077Xj9HxBOnK/5lFVbnwWKxfMCdCR5+rpdDQ7jJ/IL7iTfDE7Kfkl7PhnZadG4SEPvZnngs6LOUS5Or+8QzGcyv8Nscm+4A5iXb5pVjBpfba3/Y3WXtxToaG/2ZBNbJlMcpR98Ff1GoBvdWERl58iFJi9lcHBgdEVbiXSDOQqhQA6AYn7NjuJqU4P058PvAnijKzNTSfyvb1UzPHRhHoAem9/MXyIv5i5R6bKecKgC+DlkJGoZ0vtabAA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szrHq-0001Xf-KC for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 01:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Oct 2024 05:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73600 X-GNU-PR-Package: emacs Original-Received: via spool by 73600-submit@debbugs.gnu.org id=B73600.17287977915888 (code B ref 73600); Sun, 13 Oct 2024 05:37:02 +0000 Original-Received: (at 73600) by debbugs.gnu.org; 13 Oct 2024 05:36:31 +0000 Original-Received: from localhost ([127.0.0.1]:49924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szrHK-0001Wt-JL for submit@debbugs.gnu.org; Sun, 13 Oct 2024 01:36:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szrHI-0001Wh-EW for 73600@debbugs.gnu.org; Sun, 13 Oct 2024 01:36:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szrGw-00049f-Ev; Sun, 13 Oct 2024 01:36:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GJGdDNZ+3t2rr62v9hHfOZq1LEi3S24kR8h34ycrU6o=; b=fzBzLSq645p9 H56WD0hAtRtczAs0Via/nHZW6wxLedkfjbxjjalDvj2clrhJDw52mbDtQz91IDma/PUDudK6S/yhP h6Zyeij/8Dir9U0idLLGqi3cVF7K6WBhrZoCJSQTodUqVuVM/GL/i0Lgck5wSZD8aObN3E8Wc0Ftm +VtBTHqbmHAnuTgG4m5Yz4X9JPqVv3iDn/CKfBpM+VU7u+w2nQyfC0NzUo+uwbOW6F5KMr9wZd5ep szQJfoli563Kr78k+kHWKbkSzJoIqGoAmBJSjiH+1zjtHJ0BXoYaFZ0S3/fdIVJza339yxlOlVaCg am6BM6ozNzw+D3xBbbW8hQ==; In-Reply-To: <31b6ff37-f742-c7a1-cd80-ea1f79f11cda@gmail.com> (message from Jim Porter on Sat, 12 Oct 2024 18:36:27 -0700) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293495 Archived-At: > Date: Sat, 12 Oct 2024 18:36:27 -0700 > Cc: 73600@debbugs.gnu.org, gautier@gautierponsinet.xyz > From: Jim Porter > > + ;; Check if the display property at the end of this line is "safe". > + (if (visual-wrap--display-property-safe-p > + (get-char-property (pos-eol) 'display)) > + ;; If so, we can apply our visual wrapping properties to this > + ;; line and continue to the next line. > + (progn > + (visual-wrap--apply-to-line (point)) > + (forward-line)) > + ;; Otherwise, skip ahead to the beginning of the first line after > + ;; the unsafe display property changes. > + (goto-char (next-single-char-property-change (pos-eol) 'display)) Yes, this is what I had in mind, thanks. But does next-single-char-property-change really fit the bill? What if you have several overlapping 'display' properties, and in particular one property "enclosed" in another? Did you test such a scenario?