From unknown Tue Aug 12 08:34:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45520: 28.0.50; mode-line-compact doesn't do text properties Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Dec 2020 04:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45520 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 45520@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160921467331512 (code B ref -1); Tue, 29 Dec 2020 04:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Dec 2020 04:04:33 +0000 Received: from localhost ([127.0.0.1]:37356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku6FM-0008CC-OP for submit@debbugs.gnu.org; Mon, 28 Dec 2020 23:04:33 -0500 Received: from lists.gnu.org ([209.51.188.17]:41888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku6FL-0008C5-NG for submit@debbugs.gnu.org; Mon, 28 Dec 2020 23:04:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ku6FL-0006xk-Hk for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2020 23:04:31 -0500 Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:40004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ku6FI-0004AF-Tu for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2020 23:04:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=3kS+44RQVgVyl2Bi5rLWdxi3ZVOzSlJqPdpFX4sS6Fs=; b=gDePZ35FxLhZJP3WTEamUMTvb2 mGm8v+anPrmW+sgGkqqFkSv7P4NgT6l042ATfPuIo4mvdZ95Jw/zHOhxsgebb+U5UsKvovSgK0XvG g5LRIrmELtsX7Ay6ca2deSF5IXy4gdu44feg4K13bYQHmKsgLqOHr+kF0bKTt3rB0njA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ku6F7-0004pi-TD for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 05:04:27 +0100 From: Lars Ingebrigtsen X-Now-Playing: Japan's _Tin Drum (1)_: "Sons of Pioneers" Date: Tue, 29 Dec 2020 05:04:16 +0100 Message-ID: <87tus5febj.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: I thought the issue was with `format-mode-line', but that function does return text properties as ordered (I think). Instead the issue is that display_string doesn't do anything with the text properti [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) I thought the issue was with `format-mode-line', but that function does return text properties as ordered (I think). Instead the issue is that display_string doesn't do anything with the text properties? If this can't be fixed somewhat easily, I guess I'll revert the mode-line-compact change, because it's pretty useless without text properties, but I don't have the time right now to investigate, so I'm reporting this as a bug to remind myself (or anybody else who feels like having a look). In GNU Emacs 28.0.50 (build 59, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) of 2020-12-23 built on xo Repository revision: 22c1f00d997d38ba0c453da5f5e9c526d0ac05b0 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Debian GNU/Linux bullseye/sid -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 12 08:34:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45520: 28.0.50; mode-line-compact doesn't do text properties Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Dec 2020 04:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45520 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 45520@debbugs.gnu.org Received: via spool by 45520-submit@debbugs.gnu.org id=B45520.16092154938395 (code B ref 45520); Tue, 29 Dec 2020 04:19:02 +0000 Received: (at 45520) by debbugs.gnu.org; 29 Dec 2020 04:18:13 +0000 Received: from localhost ([127.0.0.1]:37372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku6Sb-0002BL-JJ for submit@debbugs.gnu.org; Mon, 28 Dec 2020 23:18:13 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku6SZ-0002B6-5c for 45520@debbugs.gnu.org; Mon, 28 Dec 2020 23:18:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jsdFPWpl1Oy5qqOU71Hla5cMKyoffbJk6WiWpVZ0aoc=; b=H3yM0yyQjV5yxM2fNWNrwF9C7K AWJ8+8ego1nhm0WwKVfoJNTXfHjzB0lAzd5LIPxHLulEd9nxDmmftYvChWbPS+I/+MbBseVkQZVtu yZ8HEjt5+Tk732VQu+zJNlwehOBnAolb2pM2HtySknrLzmxP81gj8L4YTVuEvXknTPxI=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ku6SQ-0004yK-BZ for 45520@debbugs.gnu.org; Tue, 29 Dec 2020 05:18:04 +0100 From: Lars Ingebrigtsen References: <87tus5febj.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXRwqT69d6ogltd RjAgFA7///+u9mQ5AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QMHQQQJrlErgcAAAG1SURBVDjLdZOB keMwCEWRsgUoqsBGLsArVEAmov+a7gN2Npn4yIyd4Rk+IETpfmmJrkEhWq8j7ogA9X/xis9ha83M mcpaeaGAeagqJfg7cwVwQygHQOCCR8pEeNK9NPPrt0Zxv16Um+Ge/A2KAOzpo0TTo2IB/R2UF5gL JL8kqmpPB7Cv7UemWHViTJlilIYoecV1dqvsItVMVjHATQQZShZmq72s5hGATXUt99xQZjSVW28B Zsf34wTNpjoiQoitXwd1iui8oUAAXe+F/wCLcETobxyPA3ilDVRv4PEGkHkOJdkNzGIi4uUKtyeq kv3HZamJ94NUjXUMAzhjgXo7gI5pJ6j7tqPpBZ0EOE/BNNDcE/2K2gKcC8eLiQOQp7L9CQANtApf lJsPQEe5aDFrgKqxPvoI8Kgy5B20NcCsQ6enojD2kaAupLIzfYkP73xtulsAQBE3H4nI8qOPocux Pq4h+631jib6kOlNx3WwiDYlbb0j/v2qDe8jbU8Z5zIEiD7S9nuTzh8gIgbOptM3WFTHsXCfqXx5 5ofGOUQ99+oEsSVXgDK/7A+UY5QpvS5c3KD/2z8/UYVxzpVNRQAAACV0RVh0ZGF0ZTpjcmVhdGUA MjAyMC0xMi0yOVQwNDoxNjozOCswMDowMKVBSckAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMTIt MjlUMDQ6MTY6MzgrMDA6MDDUHPF1AAAAAElFTkSuQmCC X-Now-Playing: Simple Minds's _Sons and Fascination_: "70 Cities as Love Brings the Fall" Date: Tue, 29 Dec 2020 05:18:01 +0100 In-Reply-To: <87tus5febj.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 29 Dec 2020 05:04:16 +0100") Message-ID: <87pn2tfdom.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > I thought the issue was with `format-mode-line', but that function does > return text properties as ordered (I think). Instead the issue is that > display_string doesn't do anything with the text pr [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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 (-) Lars Ingebrigtsen writes: > I thought the issue was with `format-mode-line', but that function does > return text properties as ordered (I think). Instead the issue is that > display_string doesn't do anything with the text properties? OK, that was trivial to fix, so now the snippet that shortens the mode line text just has to be amended to do the work on the Lisp_Object string instead (so that text properties are preserved). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 12 08:34:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45520: 28.0.50; mode-line-compact doesn't do text properties Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Dec 2020 05:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45520 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 45520@debbugs.gnu.org Received: via spool by 45520-submit@debbugs.gnu.org id=B45520.160921803012506 (code B ref 45520); Tue, 29 Dec 2020 05:01:02 +0000 Received: (at 45520) by debbugs.gnu.org; 29 Dec 2020 05:00:30 +0000 Received: from localhost ([127.0.0.1]:37392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku77V-0003Fe-MB for submit@debbugs.gnu.org; Tue, 29 Dec 2020 00:00:29 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku77R-0003FE-FG for 45520@debbugs.gnu.org; Tue, 29 Dec 2020 00:00:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mXZGXK1qNerQ7jlyWjSS8TxdLGML1Sp3ii4Ah64M5eg=; b=AqQiI0bxFvurccdjei2dYGHpQx A+0c4bmaV6T1JOYn23BJvrMmAQMMPMs/o3S43sSky7RhtTekZhFVlSktut7fccq+XBqMC48l/ktbK pydbZG95G8bgb+BTLITsmcWMtTt1t0resY/Ewidpz42GXDQWjC71SY+V1kUO7gHab1D8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ku77D-0005Jd-Gu for 45520@debbugs.gnu.org; Tue, 29 Dec 2020 06:00:19 +0100 From: Lars Ingebrigtsen References: <87tus5febj.fsf@gnus.org> <87pn2tfdom.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEVvja90l8Y6ZZ49 OziJg3iXprT38dn////PMCpNAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+QMHQQ7NDyNIiYAAAFISURB VDjLpZTBboQgEIYHsvYMdvfu0qQvIH0Cxr23yp43jfL+j9ABQRfUtEn/xBjmY+aHCQDwPzEpxX6Y JFSQD8hMr23QMpuzmn6CM56AAq64uhJQ/t+oBHio1qhrrfzgyt9SKXngUcTl2URw+czBZYhAqEbW qhELsD6uAeoIWJaxgrVUb/aBQIwe1CPq3FLqbLA1Ybl3lzQtGdpkwPmVXzz42AFzRg/Uu3f3oG8F Yesz+H4CcASqsFr0+9gAEzJEYV4NsZTcAB83WwDt7FGVgKXj8VWYzyJyCOrfQB9MO9O5UaM3SuYR DLcJtSmAaXVnraG0EiBir9HkYESk6XbsBsIsN9cab6OmGS0TK6AxItjJTlCdnoHXelAjeKgXN7m7 W6LhKj41McuAorte3gLEFsxXegdEsgHpDSjB8iDYVULC3pPxJ51+ACBzvgDPBT2aAAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIwLTEyLTI5VDA0OjU5OjUyKzAwOjAwhow3DwAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMC0xMi0yOVQwNDo1OTo1MiswMDowMPfRj7MAAAAASUVORK5CYII= X-Now-Playing: Simple Minds's _Sister Feelings Call_: "20th Century Promised Land" Date: Tue, 29 Dec 2020 06:00:10 +0100 In-Reply-To: <87pn2tfdom.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 29 Dec 2020 05:18:01 +0100") Message-ID: <87lfdhfbqd.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > OK, that was trivial to fix, so now the snippet that shortens the mode > line text just has to be amended to do the work on the Lisp_Object > string instead (so that text properties are preserved). Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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 (-) Lars Ingebrigtsen writes: > OK, that was trivial to fix, so now the snippet that shortens the mode > line text just has to be amended to do the work on the Lisp_Object > string instead (so that text properties are preserved). And the rest didn't seem that complicated, either, so this should actually work now... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 29 00:00:39 2020 Received: (at control) by debbugs.gnu.org; 29 Dec 2020 05:00:39 +0000 Received: from localhost ([127.0.0.1]:37395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku77e-0003G2-VN for submit@debbugs.gnu.org; Tue, 29 Dec 2020 00:00:39 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku77c-0003Fm-DW for control@debbugs.gnu.org; Tue, 29 Dec 2020 00:00:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Y4MrCBt+hNKxlJoG0Tmia/RRJL2M6OZ9WdQpEEN15pE=; b=QTw8i4+DjAlluIUJVFXZBo84ha fgWTabJsy+V0rugmH3Q4GmwPRCMydAJPmc6DSvBVMxmJD/rJVe56QIfgYpWADWYxnnXpMNpuyptU2 9xTW9W89J25T/uyP2AFND7/ajZDVP/LA26/j3flrjZLReW+GLOov8eiUjrrIh9DZulwQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ku77U-0005Jl-Ng for control@debbugs.gnu.org; Tue, 29 Dec 2020 06:00:30 +0100 Date: Tue, 29 Dec 2020 06:00:27 +0100 Message-Id: <87h7o5fbpw.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45520 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 45520 fixed close 45520 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) tags 45520 fixed close 45520 28.1 quit