From unknown Tue Jun 17 20:21:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16870 <16870@debbugs.gnu.org> To: bug#16870 <16870@debbugs.gnu.org> Subject: Status: 24.3; "display" text property versus ":box" face attribute Reply-To: bug#16870 <16870@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:21:13 +0000 retitle 16870 24.3; "display" text property versus ":box" face attribute reassign 16870 emacs submitter 16870 Ben Liblit severity 16870 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 16:20:03 2014 Received: (at submit) by debbugs.gnu.org; 24 Feb 2014 21:20:04 +0000 Received: from localhost ([127.0.0.1]:38249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WI2wU-0007m9-0t for submit@debbugs.gnu.org; Mon, 24 Feb 2014 16:20:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44396) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WI2v3-0007jE-99 for submit@debbugs.gnu.org; Mon, 24 Feb 2014 16:18:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WI2ur-0003HC-FJ for submit@debbugs.gnu.org; Mon, 24 Feb 2014 16:18:28 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WI2ur-0003H8-CN for submit@debbugs.gnu.org; Mon, 24 Feb 2014 16:18:21 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WI2ul-0002ll-Gn for bug-gnu-emacs@gnu.org; Mon, 24 Feb 2014 16:18:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WI2uf-0003Ed-KW for bug-gnu-emacs@gnu.org; Mon, 24 Feb 2014 16:18:15 -0500 Received: from sandstone.cs.wisc.edu ([128.105.6.39]:34437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WI2uf-0003DW-D3 for bug-gnu-emacs@gnu.org; Mon, 24 Feb 2014 16:18:09 -0500 Received: from byrd.cs.wisc.edu (byrd.cs.wisc.edu [128.105.15.5]) by sandstone.cs.wisc.edu (8.14.1/8.14.1) with ESMTP id s1OLI7bS027747 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 24 Feb 2014 15:18:07 -0600 Message-ID: <530BB70F.2080103@acm.org> Date: Mon, 24 Feb 2014 15:18:07 -0600 From: Ben Liblit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.3; "display" text property versus ":box" face attribute Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 24 Feb 2014 16:19:59 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) If a range of text carries the "display" text property and also has its "face" text property set to something with the ":box" attribute, then the right edge of the box is not actually drawn. The following elisp code fragment demonstrates the problem: (let ((buffer (generate-new-buffer "*bug*"))) (set-buffer buffer) (insert "lorem ipsum dolor\n\nlorem ipsum dolor\n") (put-text-property 7 12 'display "xxxxx") (put-text-property 7 12 'face '(:box t)) (put-text-property 26 31 'face '(:box t)) (switch-to-buffer-other-window buffer)) Observe that on the first line, the displayed "xxxxx" replacement text has only three box edges drawn: top, left, and bottom. The right edge is missing. By contrast, the second line of text has no "display" text property set and shows a proper box with all four edges. In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.9) of 2013-06-10 on mcgee.cs.wisc.edu Windowing system distributor `Red Hat, Inc.', version 11.0.11300000 System Description: Red Hat Enterprise Linux Server release 6.5 (Santiago) Configured using: `configure '--prefix=/unsup/emacs-24.3/amd64_rhel6' '--without-pop' '--without-sound' '--with-gif=no'' Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-y C-x C-e M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set # Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec 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 tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 27 12:44:58 2014 Received: (at 16870-done) by debbugs.gnu.org; 27 Feb 2014 17:44:58 +0000 Received: from localhost ([127.0.0.1]:42942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJ510-00040t-68 for submit@debbugs.gnu.org; Thu, 27 Feb 2014 12:44:58 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:47940) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJ50x-00040e-1W for 16870-done@debbugs.gnu.org; Thu, 27 Feb 2014 12:44:56 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N1O00800173MV00@a-mtaout22.012.net.il> for 16870-done@debbugs.gnu.org; Thu, 27 Feb 2014 19:44:53 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1O008GU1ATEV60@a-mtaout22.012.net.il>; Thu, 27 Feb 2014 19:44:53 +0200 (IST) Date: Thu, 27 Feb 2014 19:44:53 +0200 From: Eli Zaretskii Subject: Re: bug#16870: 24.3; "display" text property versus ":box" face attribute In-reply-to: <530BB70F.2080103@acm.org> X-012-Sender: halo1@inter.net.il To: Ben Liblit Message-id: <83k3cgxxey.fsf@gnu.org> References: <530BB70F.2080103@acm.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16870-done Cc: 16870-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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 (+) > Date: Mon, 24 Feb 2014 15:18:07 -0600 > From: Ben Liblit > > If a range of text carries the "display" text property and also has its > "face" text property set to something with the ":box" attribute, then > the right edge of the box is not actually drawn. The following elisp > code fragment demonstrates the problem: > > (let ((buffer (generate-new-buffer "*bug*"))) > (set-buffer buffer) > (insert "lorem ipsum dolor\n\nlorem ipsum dolor\n") > (put-text-property 7 12 'display "xxxxx") > (put-text-property 7 12 'face '(:box t)) > (put-text-property 26 31 'face '(:box t)) > (switch-to-buffer-other-window buffer)) > > Observe that on the first line, the displayed "xxxxx" replacement text > has only three box edges drawn: top, left, and bottom. The right edge > is missing. By contrast, the second line of text has no "display" text > property set and shows a proper box with all four edges. Thanks, I fixed this in trunk revision 116585. For the record: this bug was there since Emacs 21.1, when the 'box' face was first introduced. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 27 13:17:22 2014 Received: (at 16870) by debbugs.gnu.org; 27 Feb 2014 18:17:23 +0000 Received: from localhost ([127.0.0.1]:42981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJ5WM-0007KW-Hr for submit@debbugs.gnu.org; Thu, 27 Feb 2014 13:17:22 -0500 Received: from sandstone.cs.wisc.edu ([128.105.6.39]:43477) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJ5WK-0007KM-SX for 16870@debbugs.gnu.org; Thu, 27 Feb 2014 13:17:21 -0500 Received: from byrd.cs.wisc.edu (byrd.cs.wisc.edu [128.105.15.5]) by sandstone.cs.wisc.edu (8.14.1/8.14.1) with ESMTP id s1RIHIur020652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for <16870@debbugs.gnu.org>; Thu, 27 Feb 2014 12:17:19 -0600 Message-ID: <530F8128.4000109@acm.org> Date: Thu, 27 Feb 2014 12:17:12 -0600 From: Ben Liblit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: 16870@debbugs.gnu.org Subject: Re: bug#16870: closed (Re: bug#16870: 24.3; "display" text property versus ":box" face attribute) References: <83k3cgxxey.fsf@gnu.org> <530BB70F.2080103@acm.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 16870 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (-) Excellent. Thanks for the speedy fix! From unknown Tue Jun 17 20:21:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 28 Mar 2014 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator