From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Josh Caswell" Newsgroups: gmane.emacs.bugs Subject: bug#58122: 28.2; overlay before/after-string does not render more than one fringe display spec Date: Tue, 27 Sep 2022 11:05:10 -0700 Message-ID: <55613fb3-91db-4fb0-aaa7-120888b9db10@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19905"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-968-g04df58079d-fm-20220921.001-g04df5807 To: 58122@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 27 21:18:54 2022 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 1odG6W-0004zh-Tt for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Sep 2022 21:18:54 +0200 Original-Received: from localhost ([::1]:43186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odG6V-0004PL-TO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Sep 2022 15:18:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odG4l-0003hk-1m for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 15:17:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odG4k-000282-P9 for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 15:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odG4k-0004KB-JR for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 15:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Josh Caswell" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Sep 2022 19:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58122 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166430619316581 (code B ref -1); Tue, 27 Sep 2022 19:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Sep 2022 19:16:33 +0000 Original-Received: from localhost ([127.0.0.1]:56828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odG4G-0004JG-GE for submit@debbugs.gnu.org; Tue, 27 Sep 2022 15:16:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odEyT-0002Xb-GA for submit@debbugs.gnu.org; Tue, 27 Sep 2022 14:06:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odEyT-0001Zq-5b for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 14:06:29 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:36339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odEyR-0007iB-5A for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 14:06:28 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5F2935C00A7 for ; Tue, 27 Sep 2022 14:06:24 -0400 (EDT) Original-Received: from imap42 ([10.202.2.92]) by compute5.internal (MEProxy); Tue, 27 Sep 2022 14:06:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=woolsweater.net; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t= 1664301984; x=1664388384; bh=sZNyME4Eb3UOPwZxCWf5Pi/0brpVBxhi2P5 ieUGgOXc=; b=zGUcaJ2Og6hdjHt44kmOTQfyruCXZaDlQzL7XALANn/3WJvFkGj 87QOEn78OryPFvj5lD8U8aXtGSGA6ZRsK7/jTftAorqET6L3HWf0NL1q3TzAy6KS CFbSbmiKzmw0Kq81y+1BXRwR1sXUYmUgJ1BxaG/NTNrewObYZgcsTWMpiP7Xvyax x/PrzQAFM81exCKCiXzZ56en7Kof+8/gsChVPAQkhr9uQXUwHr1C3UCuf29qjs26 b7YFWC1eMNg1M7aiDfzLvXpy91t6ZApWjd5p4jKQYu3V66TXs5x5/hleJ2BFenmm 6Q0Hm2zRkU+BMDGCZ6psE325WKSxE3p6Z6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1664301984; x= 1664388384; bh=sZNyME4Eb3UOPwZxCWf5Pi/0brpVBxhi2P5ieUGgOXc=; b=i bnf8TZ7L/OKmEHi4wFsT/JOcss/GTer0xYH4Qrs30Xv5erbBwmXP9Isow8+TOb8r Bwtkx2oegM/8bQ55PX5unB+t5DYo6gbzMa+WapyrG6MOQEbPpSY8jJvivM0O6JTC Rq6BoDPosfSu/qFTfkIsQGuoA8B7bwifzP6H2twhwiSQ7wpNsNdx4j6IOJR7esO6 I/iVr4sQwTMZBC6utERjR7l2mW4VVKYjKjzD8N0GF8WXi2R62CkFKkhw0sNwd926 pioLPnkerCqhiqOq2i0BiCv2gjzUQtbJSS7rqBRGYpZhlEhfVapswHI+jpLKoqHX Y7qOhK3Ey09SrtWy9zWkQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeegiedgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedflfhoshhhucevrghsfigvlhhlfdcuoegvmhgrtghsseifohho lhhsfigvrghtvghrrdhnvghtqeenucggtffrrghtthgvrhhnpeffvdetieekfeehtddvud etfeekgffhiefgjeelhfdvkedvgfefheduffffheehffenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvmhgrtghsseifohholhhsfigvrghtvg hrrdhnvght X-ME-Proxy: Feedback-ID: i512946c9:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 448B3BC0078; Tue, 27 Sep 2022 14:06:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=66.111.4.25; envelope-from=emacs@woolsweater.net; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 27 Sep 2022 15:16:30 -0400 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:243761 Archived-At: An overlay `before-string' or `after-string' property with both left and right fringe display specs only seems to render the first spec. *Demonstration*: - Launch GUI Emacs with the -q flag - In an Elisp buffer, define these two commands (defun insert-two-squares () (interactive) (insert (propertize " " 'display [(left-fringe hollow-square) (right-fringe hollow-square)]))) (defun overlay-two-squares (right-first) (interactive "P") (remove-overlays) (let ((ov (make-overlay (point) (point))) (specs [(left-fringe hollow-square) (right-fringe hollow-square)])) (overlay-put ov 'before-string (propertize " " 'display (if right-first (reverse specs) specs))))) - Switch to a new test buffer - Invoke `insert-two-squares'; observe that both left and right fringes display a hollow square - Delete the inserted character (fringe bitmaps disappear) - Invoke `overlay-two-squares'; observe that only the left fringe displays a hollow square - Invoke `overlay-two-squares' prefixed with `C-u'; observe that only the _right_ fringe displays the hollow square The same behavior is seen if the overlay property is `after-string' rather than `before-string'. *Expectation*: Based on the display spec documentation I would expect the overlay to render fringes the same way as an inserted propertized string. In GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2022-09-12 built on armbob.lan Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.0.1 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x edmacro kmacro cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 52550 8825) (symbols 48 6664 1) (strings 32 18735 1663) (string-bytes 1 623539) (vectors 16 14125) (vector-slots 8 194959 12178) (floats 8 23 44) (intervals 56 313 0) (buffers 992 12))