From unknown Sat Jun 21 10:42:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76761: 31.0.50; Image icons from 'icons.el' could be accidentally dropped Resent-From: Pengji Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Mar 2025 10:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76761 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 76761@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174116945622666 (code B ref -1); Wed, 05 Mar 2025 10:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Mar 2025 10:10:56 +0000 Received: from localhost ([127.0.0.1]:35481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpliK-0005tV-BM for submit@debbugs.gnu.org; Wed, 05 Mar 2025 05:10:56 -0500 Received: from lists.gnu.org ([2001:470:142::17]:33614) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tpliG-0005tD-9R for submit@debbugs.gnu.org; Wed, 05 Mar 2025 05:10:55 -0500 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 1tpliA-00087o-7G for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2025 05:10:46 -0500 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tpli7-0000qF-S7 for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2025 05:10:45 -0500 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2799425401FF for ; Wed, 5 Mar 2025 05:10:42 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Wed, 05 Mar 2025 05:10:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengjiz.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1741169442; x=1741255842; bh=vtpKHltY6YpZx8yDgf8W8i7ZMWsY91ud VDxnlPcxMoI=; b=avlNl/SCjRb2HZ6DYieP9echQsu8TCmGV2i3uz958PTupJNm q9WC13HbCSJl7XQ7YNJ76SxUyvVXODng+yWtxzLcfW8sKdNNmQYGp0grJhRtUeKM iDwXyYhxfPNsOypO+p8kBYkU9D4spH34pF/GM6LABwJY7eqDF3mfftj+rqPgwEF8 qUZwRvWXYvZNSTklYsCzjUo0KHKFF/fDAvmqxpMFb6jtBYztlWqOiqYIaJOtGnhV qrJ9e7n7JolcVI4/3oAJeqmGOxCKMEaaRdbW90wWhK0b4w5Ey4iE6tryVL+HdxNA Yc96LDLz8rMHrNLuUZqRCT0rYIjXinDOt0Sc9Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741169442; x= 1741255842; bh=vtpKHltY6YpZx8yDgf8W8i7ZMWsY91udVDxnlPcxMoI=; b=O aJJnQEzKb/T2SCd3zdJI8vsjev2/chTsiQf2WMU+N949Av+zpWVopI2pcHIyHgrC T5DRC5TEOBE6FzckOHpN3JUXuL4DCXuA5OVoIxMAByDiNOfjTReSvQ6iqQ+ty/ds PMxU2I91cOzHsXHGb9IGm6YKSZIGRTU2PkWYZG/CxMFVk5T9y6vKo8V3L7sO7Bih wDgIuTnRGZObzgYgTQ/GPbHU98fn7K16ThaeBqqMwEinJkR0zeJcOsbiGYKgQMnU ka4yJoc3hocTnfet5FSuY478N3bvnfAnGK+VYC6NBq1IqKZ5gbJ4XifkGUh2PudX 2TfEmHFDX4wWspecYfu1g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdegheegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvf fufffkgggtsehttdertddttddtnecuhfhrohhmpefrvghnghhjihcukghhrghnghcuoehm vgesphgvnhhgjhhiiidrtghomheqnecuggftrfgrthhtvghrnheptdfhjeekueduleevff elffelhfeuueeufeehkeefteeuhfeiffethfdvhfevuedvnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgvsehpvghnghhjihiirdgtohhmpd hnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhg qdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i16614472:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 5 Mar 2025 05:10:40 -0500 (EST) From: Pengji Zhang Date: Wed, 05 Mar 2025 18:10:38 +0800 Message-ID: <87frjr949t.fsf@pengjiz.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=202.12.124.154; envelope-from=me@pengjiz.com; helo=fhigh-b3-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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) 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.3 (/) Greetings! Currently in 'icons.el' image icons returned by 'icon-string' is a space with a display property (see 'icons--create'). However, IMO it is common to stripped spaces, and that means the icon could be accidentally removed. For example, - Run 'emacs -Q' - Evaluate the following snippet: --8<---------------cut here---------------start------------->8--- (require 'outline) ; for the icon (setopt mode-line-compact t) (setf global-mode-string '("" (:eval (icon-string 'outline-open)) " ")) (force-mode-line-update t) --8<---------------cut here---------------end--------------->8--- Notice that the down arrow icon does not show at all in the mode line due to 'mode-line-compact'. I suppose an easy fix is to use a non-space character. WDYT? Thanks! In GNU Emacs 31.0.50 (build 71, x86_64-pc-linux-gnu, GTK+ Version 3.24.48, cairo version 1.18.2) Repository revision: fe7a8c92be6269f8fc7933eb6c190178839d0f8a Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101016 System Description: Arch Linux Configured using: 'configure --disable-build-details' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 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 tab-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 minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils auth-source cl-seq eieio eieio-core cl-macs password-cache json map byte-opt gv subr-x comp-run bytecomp byte-compile comp-common rx icons cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen 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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 73089 11379) (symbols 48 7060 0) (strings 32 18927 2897) (string-bytes 1 596210) (vectors 16 12730) (vector-slots 8 167990 9957) (floats 8 28 18) (intervals 56 392 87) (buffers 992 12)) From unknown Sat Jun 21 10:42:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76761: 31.0.50; Image icons from 'icons.el' could be accidentally dropped Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Mar 2025 13:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76761 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pengji Zhang Cc: 76761@debbugs.gnu.org Received: via spool by 76761-submit@debbugs.gnu.org id=B76761.174118248721437 (code B ref 76761); Wed, 05 Mar 2025 13:49:02 +0000 Received: (at 76761) by debbugs.gnu.org; 5 Mar 2025 13:48:07 +0000 Received: from localhost ([127.0.0.1]:36195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpp6V-0005Zf-2r for submit@debbugs.gnu.org; Wed, 05 Mar 2025 08:48:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33034) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tpp6S-0005Z6-CN for 76761@debbugs.gnu.org; Wed, 05 Mar 2025 08:48:04 -0500 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 1tpp6M-0007N1-RL; Wed, 05 Mar 2025 08:47:58 -0500 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=8d4B1UIITKwp+tjDrdrT2XHy/on8i5wf6ZI6XwcDq5E=; b=Yl2IbM0tShsc 6QhieYlYh1DeD59n5MGIGNqln+qCde8WI2ampcm0e1Pn0cGSnWAjckrcfvL2qHbHqiFIFTFcPGdeS 71j8yK+cvyi+hk/Z+s/Wrq6nB09us1TmZ0jmccgtwzHHKYBvNlfpDmqkPRFLrSfRrSsptM576B3U4 pwpQ1ENijOkGuFf282++asHRorFE6SaD6Y3PXDmYDy5MxQ4enrKO1WMZxvVoU3FMRM3dF8dlVy/RB jlpc5wsRAk3C9dKi2eqxKQJMebRaGaXpRJDVQLVpmBTyBATA8LAoqXcJ8JggIACibT1Fy8fiRqbzM +hr96usttBV5hDK4sg2u9A==; Date: Wed, 05 Mar 2025 15:47:56 +0200 Message-Id: <86wmd3oagj.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87frjr949t.fsf@pengjiz.com> (message from Pengji Zhang on Wed, 05 Mar 2025 18:10:38 +0800) References: <87frjr949t.fsf@pengjiz.com> X-Spam-Score: -2.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: -3.3 (---) > From: Pengji Zhang > Date: Wed, 05 Mar 2025 18:10:38 +0800 > > Currently in 'icons.el' image icons returned by 'icon-string' is a space > with a display property (see 'icons--create'). However, IMO it is common > to stripped spaces, and that means the icon could be accidentally > removed. For example, > > - Run 'emacs -Q' > - Evaluate the following snippet: > > --8<---------------cut here---------------start------------->8--- > (require 'outline) ; for the icon > (setopt mode-line-compact t) > (setf global-mode-string > '("" (:eval (icon-string 'outline-open)) " ")) > (force-mode-line-update t) > --8<---------------cut here---------------end--------------->8--- > > Notice that the down arrow icon does not show at all in the mode line > due to 'mode-line-compact'. > > I suppose an easy fix is to use a non-space character. WDYT? Isn't that rather a bug in mode-line-compact? It shouldn't remove spaces which have 'display' properties on them, since they are not "empty space" on the mode line. From unknown Sat Jun 21 10:42:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76761: 31.0.50; Image icons from 'icons.el' could be accidentally dropped Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Mar 2025 09:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76761 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: me@pengjiz.com Cc: 76761@debbugs.gnu.org Received: via spool by 76761-submit@debbugs.gnu.org id=B76761.174125450710959 (code B ref 76761); Thu, 06 Mar 2025 09:49:02 +0000 Received: (at 76761) by debbugs.gnu.org; 6 Mar 2025 09:48:27 +0000 Received: from localhost ([127.0.0.1]:41591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tq7q6-0002qg-M7 for submit@debbugs.gnu.org; Thu, 06 Mar 2025 04:48:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35394) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tq7q3-0002qP-IY for 76761@debbugs.gnu.org; Thu, 06 Mar 2025 04:48:24 -0500 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 1tq7px-0003V3-QI; Thu, 06 Mar 2025 04:48:17 -0500 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=vyNpDgt1jnRdlYPUTGpP2CKrh8iOZOlJTo3p9w4SPT4=; b=QyZR4fWOdbpJ 6fyrhX4bKOpL4IRvyeBNtXbXlgXXV3wMcApF9V1WfTaR+deEmrwz/fxUksPGLSuVyfLo84YJMwkKg cX4rgUMRUyflfogzZBps9QdI9toEw6eK5iWpPJRJteTHgIqgB2+zTgzU1bxy2jLpU6opIw8kaAfjZ CnVFPGzyAAQbomURKNTlP24SVdoTsDbd7lvpXg8C6YDm2/rh36SjwmIoLIn2BBOxVVVDe0TLI2wPU iKECEOHX+od9dUgoO6/bnnfaujnGIr7MTKIUczDE3WxG9C4FiOlWYFuEoKaHcOIDVvSDLuVJfazZX cU32+uSMWrMZ3iMlP+iLzA==; Date: Thu, 06 Mar 2025 11:48:14 +0200 Message-Id: <86y0ximqw1.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <86wmd3oagj.fsf@gnu.org> (message from Eli Zaretskii on Wed, 05 Mar 2025 15:47:56 +0200) References: <87frjr949t.fsf@pengjiz.com> <86wmd3oagj.fsf@gnu.org> X-Spam-Score: -2.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: -3.3 (---) > Cc: 76761@debbugs.gnu.org > Date: Wed, 05 Mar 2025 15:47:56 +0200 > From: Eli Zaretskii > > > From: Pengji Zhang > > Date: Wed, 05 Mar 2025 18:10:38 +0800 > > > > Currently in 'icons.el' image icons returned by 'icon-string' is a space > > with a display property (see 'icons--create'). However, IMO it is common > > to stripped spaces, and that means the icon could be accidentally > > removed. For example, > > > > - Run 'emacs -Q' > > - Evaluate the following snippet: > > > > --8<---------------cut here---------------start------------->8--- > > (require 'outline) ; for the icon > > (setopt mode-line-compact t) > > (setf global-mode-string > > '("" (:eval (icon-string 'outline-open)) " ")) > > (force-mode-line-update t) > > --8<---------------cut here---------------end--------------->8--- > > > > Notice that the down arrow icon does not show at all in the mode line > > due to 'mode-line-compact'. > > > > I suppose an easy fix is to use a non-space character. WDYT? > > Isn't that rather a bug in mode-line-compact? It shouldn't remove > spaces which have 'display' properties on them, since they are not > "empty space" on the mode line. Could you try the patch below and see if gives good results? diff --git a/src/xdisp.c b/src/xdisp.c index 6c623ab..5f82ea8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -27612,15 +27612,28 @@ display_mode_line (struct window *w, enum face_id face_id, Lisp_Object format) int c = fetch_string_char_advance (mode_string, &i, &i_byte); if (c == ' ' && prev == ' ') { - display_string (NULL, - Fsubstring (mode_string, make_fixnum (start), - make_fixnum (i - 1)), - Qnil, 0, 0, &it, 0, 0, 0, - STRING_MULTIBYTE (mode_string)); - /* Skip past the rest of the space characters. */ - while (c == ' ' && i < SCHARS (mode_string)) - c = fetch_string_char_advance (mode_string, &i, &i_byte); - start = i - 1; + Lisp_Object prev_pos = make_fixnum (i - 1); + + if (NILP (Fget_text_property (prev_pos, Qdisplay, + mode_string))) + { + display_string (NULL, + Fsubstring (mode_string, + make_fixnum (start), + prev_pos), + Qnil, 0, 0, &it, 0, 0, 0, + STRING_MULTIBYTE (mode_string)); + /* Skip past the rest of the space characters. */ + while (c == ' ' && i < SCHARS (mode_string) + && NILP (Fget_text_property (make_fixnum (i), + Qdisplay, + mode_string))) + { + c = fetch_string_char_advance (mode_string, + &i, &i_byte); + } + start = i - 1; + } } prev = c; } From unknown Sat Jun 21 10:42:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76761: 31.0.50; Image icons from 'icons.el' could be accidentally dropped Resent-From: Pengji Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Mar 2025 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76761 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 76761@debbugs.gnu.org Received: via spool by 76761-submit@debbugs.gnu.org id=B76761.174125516012921 (code B ref 76761); Thu, 06 Mar 2025 10:00:02 +0000 Received: (at 76761) by debbugs.gnu.org; 6 Mar 2025 09:59:20 +0000 Received: from localhost ([127.0.0.1]:41616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tq80e-0003MI-A7 for submit@debbugs.gnu.org; Thu, 06 Mar 2025 04:59:20 -0500 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]:46223) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tq80b-0003Lw-6k for 76761@debbugs.gnu.org; Thu, 06 Mar 2025 04:59:18 -0500 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 72C7B13827B1; Thu, 6 Mar 2025 04:59:10 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Thu, 06 Mar 2025 04:59:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengjiz.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1741255150; x=1741341550; bh=nkBZqMbquN 5E0tIU4dtUu6Db5oPfK0c3LtgAIQLXI34=; b=hdvpRSqdYkxWESWLcDHzCOKnZ2 2s0wsQRxlKfScjZaIyCsR7uO6m11SgcvxztlaDH1pwqEKuoMrI4bvUIlN+CMgT5P lS67tyFY1ZwZEkiOmx3ybXfeI1W8Nk5P3VxgSSsPgh2N8qt4YzAbr0SWhRX2aa80 NW2ZTXFe6Dx853m0c6IXFoUjI4y2Q0VFeUJo4suN6o+nUveGCeAMXcUFGwU/ctNG a5jJYrFM5NCARkq39kGNcTVrmvCfHpwO5R6OsIkQg8qYZ+QoU4dW53bt+j95lJLN tKj1imOawNidXMbYq0fHu+qPZwY4Bfl9qn0MN/CoaGt06spAWRK3DKJwVo9A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1741255150; x=1741341550; bh=nkBZqMbquN5E0tIU4dtUu6Db5oPfK0c3Ltg AIQLXI34=; b=gtGuNCpqpOC55ox8RJHXi0WaoptRAMXRvCZaesMCljfOl+Pde+Y RhgduKFBcLKu776olIzcfMGZq2MKEZTBSPNN9VKL0KEudSku9C5wPxBtRIbnwX5Q 9uVT+P7uwYAH5dbvKos8YFg1fl/Bp0cJ8/xIJrq6u/8omuXM7JLAxt+05TUHbATn uqfF7MY6Q33v6yC7FTt/SYaSBv+vg7HnuYfPUWQj+n0BHCzzaYHIU3SG7sZ1oWk/ xwdgUv4kMec6qzYOO7WUn5rWcdifS2/B6qDu80VArVNOarwVOPJva5NnptkGuAEp mRpR0ipwLlejiRCNrjChKo7P+yd6C0jy2pg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdejgeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddt necuhfhrohhmpefrvghnghhjihcukghhrghnghcuoehmvgesphgvnhhgjhhiiidrtghomh eqnecuggftrfgrthhtvghrnhepgeefieeivddukeeitdegudeftdevtdeuteeifffhvdeh ffetgfeijeeileelheegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepmhgvsehpvghnghhjihiirdgtohhmpdhnsggprhgtphhtthhopedvpdhm ohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdprhgtph htthhopeejieejieduseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i16614472:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Mar 2025 04:59:08 -0500 (EST) From: Pengji Zhang In-Reply-To: <86wmd3oagj.fsf@gnu.org> References: <87frjr949t.fsf@pengjiz.com> <86wmd3oagj.fsf@gnu.org> Date: Thu, 06 Mar 2025 17:59:06 +0800 Message-ID: <87bjuescnp.fsf@pengjiz.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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.7 (-) Eli Zaretskii writes: > Isn't that rather a bug in mode-line-compact? It shouldn't remove > spaces which have 'display' properties on them, since they are not > "empty space" on the mode line. Yes, I agree that we probably need to fix 'mode-line-compact' as well. However, other than 'mode-line-compact', 'string-split', 'string-trim', and some other commonly used string functions could also remove such "non-empty spaces" unexpectedly. Image icons are the only thing that brings me trouble. So I am reporting it as an 'icons.el' bug. Besides, IMO it is less intrusive to change 'icons.el'. From unknown Sat Jun 21 10:42:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76761: 31.0.50; Image icons from 'icons.el' could be accidentally dropped Resent-From: Pengji Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Mar 2025 12:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76761 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 76761@debbugs.gnu.org Received: via spool by 76761-submit@debbugs.gnu.org id=B76761.17412636777759 (code B ref 76761); Thu, 06 Mar 2025 12:22:01 +0000 Received: (at 76761) by debbugs.gnu.org; 6 Mar 2025 12:21:17 +0000 Received: from localhost ([127.0.0.1]:41811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqAE1-000214-1U for submit@debbugs.gnu.org; Thu, 06 Mar 2025 07:21:17 -0500 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]:58127) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tqADv-00020e-PB for 76761@debbugs.gnu.org; Thu, 06 Mar 2025 07:21:12 -0500 Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id 8C962138283C; Thu, 6 Mar 2025 07:21:06 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Thu, 06 Mar 2025 07:21:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengjiz.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1741263666; x=1741350066; bh=HBvLH6LWz4 apquwJWZIUPcXqCgEGWMEZ9SCwnRuQFcc=; b=L6mL3Ia/ZhSaAbL+TrDj8+usNB 6iLh4PIM0HjeF8tEw7OZs4QpjnRg5JO6Xc/NPnmhMV09bQASTvTbYX4rrQ0f7ErL LG9iXvHI6z1Vzx3YxlzntK/6jX9zVZKXzCpzVm+mvy5l37dmDudo94qClO8ywp9M ZF+9FZM30lfGfIutqVye7Mg7Fr8dKfMMv96IKhuDQkH6DciRMpQIe5h9xNMFSkLH WueF44bDc/uR5E9FhqK8mXmSqcstyeavWsEW77y8uvfmLGqcmC9XliiWG+Kl6a/N 1wAFBrMLESbWyEvCt6dkLpUJ+RguFTwOci9X/DfoE62sqWvzFImLptJf5CXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1741263666; x=1741350066; bh=HBvLH6LWz4apquwJWZIUPcXqCgEGWMEZ9SC wnRuQFcc=; b=NojcnpaLSy8ia5dBrlGiW7tlNvxdmiiOw0j6N+QEzItGAlk0BgI eGBLZHomSUQXamCw2oPEgbxaoA3mLT3z75WhTE/FG3E/RebStbAeVvXgTHZV3HQA 3AMqpd5kiOrKnRJEWlu2gqmegotZ3mR4nOg9lXq5O8NYBAm30QfqFptUC2sGb5Ck HVfeD0FD0yT0WxNbocqbCZYYcf1ldNd3awgow0bxCYN2/tNUyqU7sQ7UG6EQ8X21 Ppv2IVb3OYZRv49cVsRohj0yXN6WhURS5vgMX9wU+YzoDcvj0MCGXI6owtb+HOzf FjiY0GLUDSo4+LCIKvzfnEUqcv/gtoI8C1A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdejjeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddt necuhfhrohhmpefrvghnghhjihcukghhrghnghcuoehmvgesphgvnhhgjhhiiidrtghomh eqnecuggftrfgrthhtvghrnhepgeefieeivddukeeitdegudeftdevtdeuteeifffhvdeh ffetgfeijeeileelheegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepmhgvsehpvghnghhjihiirdgtohhmpdhnsggprhgtphhtthhopedvpdhm ohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdprhgtph htthhopeejieejieduseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i16614472:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Mar 2025 07:21:04 -0500 (EST) From: Pengji Zhang In-Reply-To: <86y0ximqw1.fsf@gnu.org> References: <87frjr949t.fsf@pengjiz.com> <86wmd3oagj.fsf@gnu.org> <86y0ximqw1.fsf@gnu.org> Date: Thu, 06 Mar 2025 20:20:56 +0800 Message-ID: <87zfhy2vvb.fsf@pengjiz.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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.7 (-) Eli Zaretskii writes: > Could you try the patch below and see if gives good results? > > [...] Thanks! It fixes the issue with 'mode-line-compact'. From unknown Sat Jun 21 10:42:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76761: 31.0.50; Image icons from 'icons.el' could be accidentally dropped Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Mar 2025 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76761 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pengji Zhang Cc: 76761@debbugs.gnu.org Received: via spool by 76761-submit@debbugs.gnu.org id=B76761.174127088521455 (code B ref 76761); Thu, 06 Mar 2025 14:22:02 +0000 Received: (at 76761) by debbugs.gnu.org; 6 Mar 2025 14:21:25 +0000 Received: from localhost ([127.0.0.1]:42057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqC6G-0005Zz-Kx for submit@debbugs.gnu.org; Thu, 06 Mar 2025 09:21:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57826) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tqC6D-0005Zm-VG for 76761@debbugs.gnu.org; Thu, 06 Mar 2025 09:21:22 -0500 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 1tqC68-0002bj-EU; Thu, 06 Mar 2025 09:21:16 -0500 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=FOLku/tWKhA//yeVr6BEgNX8iQy+0rRp+YraBVdDyVc=; b=IxLM5GevBw/C sKkTEIQnRrIJVJeNDTPf16dXe1ml9qaZRzXR+zKCTzRFKAbXKHI0iX8yecOUCSuWbaOVrO28rIrHk iC+aj/66LRvHKUs9HWrg2Q0NMiIiNJMVCR11iGxHFZ2DO1d2ctHDIGVRZDAwOlcyf6UnlwsKsfQ6h eIwt7fRzvnuaraXZaA+UNG8qHExWgJBCi2zIuT/2KRa1nqnugAyg5o85ccZzefGa9DkT44YuiZqB0 QyVNvXL0Uua4+pNsSkgLfP7wVI4h5uQXP8EOb37xnlebgUDNWcRQyWT4dJY0f6engENk7UH7v+/fW Lp+oNZCongVYYJd0LsPFPA==; Date: Thu, 06 Mar 2025 16:21:15 +0200 Message-Id: <86eczame90.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87bjuescnp.fsf@pengjiz.com> (message from Pengji Zhang on Thu, 06 Mar 2025 17:59:06 +0800) References: <87frjr949t.fsf@pengjiz.com> <86wmd3oagj.fsf@gnu.org> <87bjuescnp.fsf@pengjiz.com> X-Spam-Score: -2.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: -3.3 (---) > From: Pengji Zhang > Cc: 76761@debbugs.gnu.org > Date: Thu, 06 Mar 2025 17:59:06 +0800 > > Eli Zaretskii writes: > > > Isn't that rather a bug in mode-line-compact? It shouldn't remove > > spaces which have 'display' properties on them, since they are not > > "empty space" on the mode line. > > Yes, I agree that we probably need to fix 'mode-line-compact' as well. > However, other than 'mode-line-compact', 'string-split', 'string-trim', > and some other commonly used string functions could also remove such > "non-empty spaces" unexpectedly. Image icons are the only thing that > brings me trouble. So I am reporting it as an 'icons.el' bug. Besides, > IMO it is less intrusive to change 'icons.el'. Any character can be removed, so replacing the space will not solve the problem, not in general. It could make it less frequent, but that's all. As for other functions, Lisp programs which call them should be aware of the issue and code their implementations accordingly. Using space characters for showing images and other stuff is ubiquitous in Emacs, so replacing all of them doesn't sound attractive to me. From unknown Sat Jun 21 10:42:45 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: Pengji Zhang Subject: bug#76761: closed (Re: bug#76761: 31.0.50; Image icons from 'icons.el' could be accidentally dropped) Message-ID: References: <86bjuemdx3.fsf@gnu.org> <87frjr949t.fsf@pengjiz.com> X-Gnu-PR-Message: they-closed 76761 X-Gnu-PR-Package: emacs Reply-To: 76761@debbugs.gnu.org Date: Thu, 06 Mar 2025 14:30:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1741271403-23315-1" This is a multi-part message in MIME format... ------------=_1741271403-23315-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76761: 31.0.50; Image icons from 'icons.el' could be accidentally dropped 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 76761@debbugs.gnu.org. --=20 76761: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76761 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1741271403-23315-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76761-done) by debbugs.gnu.org; 6 Mar 2025 14:29:02 +0000 Received: from localhost ([127.0.0.1]:42092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqCDd-00061v-Q4 for submit@debbugs.gnu.org; Thu, 06 Mar 2025 09:29:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56122) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tqCDb-00061b-0y for 76761-done@debbugs.gnu.org; Thu, 06 Mar 2025 09:28:59 -0500 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 1tqCDV-0003Hp-Hi; Thu, 06 Mar 2025 09:28:53 -0500 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=nmbb7gq193OEg51fHIs6xYU55zpzOJe9VbAeb/O5l/g=; b=P4TrJhBu5+Ux 1xpv/fjyPCesIqrlEJM1OOGwKvub92HJbiS6+WCKZ79G9/oVvSncVi425TU85gIFw8arj0ehvMu+j LGTjsLKKQmNSCMcasGPi79T1Nt5oyhgLqvOhkA1eIE2qzxNee+yYgIN0tMXavjYj1dXNIaahwdJ8Z cFOZ8lgAemH40EQ7j4XrfzFLijIpBoB10bC243hfZOayjjGovHgjjZsZza7SM7TmxN8shxpfHRiuj N96DN72m0E7gNBLeCNBsv8wtQvkwZftH7JOacc7w2LG51ng7ommTUiSqjTmpUn4onAN65+vrI2CvX HsPaKuWVi4nKoq8gk9fF6w==; Date: Thu, 06 Mar 2025 16:28:24 +0200 Message-Id: <86bjuemdx3.fsf@gnu.org> From: Eli Zaretskii To: Pengji Zhang In-Reply-To: <87zfhy2vvb.fsf@pengjiz.com> (message from Pengji Zhang on Thu, 06 Mar 2025 20:20:56 +0800) Subject: Re: bug#76761: 31.0.50; Image icons from 'icons.el' could be accidentally dropped References: <87frjr949t.fsf@pengjiz.com> <86wmd3oagj.fsf@gnu.org> <86y0ximqw1.fsf@gnu.org> <87zfhy2vvb.fsf@pengjiz.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76761-done Cc: 76761-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: -3.3 (---) > From: Pengji Zhang > Cc: 76761@debbugs.gnu.org > Date: Thu, 06 Mar 2025 20:20:56 +0800 > > Eli Zaretskii writes: > > > Could you try the patch below and see if gives good results? > > > > [...] > > Thanks! It fixes the issue with 'mode-line-compact'. Thanks, installed on the master branch, and closing the bug. ------------=_1741271403-23315-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Mar 2025 10:10:56 +0000 Received: from localhost ([127.0.0.1]:35481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpliK-0005tV-BM for submit@debbugs.gnu.org; Wed, 05 Mar 2025 05:10:56 -0500 Received: from lists.gnu.org ([2001:470:142::17]:33614) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tpliG-0005tD-9R for submit@debbugs.gnu.org; Wed, 05 Mar 2025 05:10:55 -0500 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 1tpliA-00087o-7G for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2025 05:10:46 -0500 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tpli7-0000qF-S7 for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2025 05:10:45 -0500 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2799425401FF for ; Wed, 5 Mar 2025 05:10:42 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Wed, 05 Mar 2025 05:10:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengjiz.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1741169442; x=1741255842; bh=vtpKHltY6YpZx8yDgf8W8i7ZMWsY91ud VDxnlPcxMoI=; b=avlNl/SCjRb2HZ6DYieP9echQsu8TCmGV2i3uz958PTupJNm q9WC13HbCSJl7XQ7YNJ76SxUyvVXODng+yWtxzLcfW8sKdNNmQYGp0grJhRtUeKM iDwXyYhxfPNsOypO+p8kBYkU9D4spH34pF/GM6LABwJY7eqDF3mfftj+rqPgwEF8 qUZwRvWXYvZNSTklYsCzjUo0KHKFF/fDAvmqxpMFb6jtBYztlWqOiqYIaJOtGnhV qrJ9e7n7JolcVI4/3oAJeqmGOxCKMEaaRdbW90wWhK0b4w5Ey4iE6tryVL+HdxNA Yc96LDLz8rMHrNLuUZqRCT0rYIjXinDOt0Sc9Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741169442; x= 1741255842; bh=vtpKHltY6YpZx8yDgf8W8i7ZMWsY91udVDxnlPcxMoI=; b=O aJJnQEzKb/T2SCd3zdJI8vsjev2/chTsiQf2WMU+N949Av+zpWVopI2pcHIyHgrC T5DRC5TEOBE6FzckOHpN3JUXuL4DCXuA5OVoIxMAByDiNOfjTReSvQ6iqQ+ty/ds PMxU2I91cOzHsXHGb9IGm6YKSZIGRTU2PkWYZG/CxMFVk5T9y6vKo8V3L7sO7Bih wDgIuTnRGZObzgYgTQ/GPbHU98fn7K16ThaeBqqMwEinJkR0zeJcOsbiGYKgQMnU ka4yJoc3hocTnfet5FSuY478N3bvnfAnGK+VYC6NBq1IqKZ5gbJ4XifkGUh2PudX 2TfEmHFDX4wWspecYfu1g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdegheegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvf fufffkgggtsehttdertddttddtnecuhfhrohhmpefrvghnghhjihcukghhrghnghcuoehm vgesphgvnhhgjhhiiidrtghomheqnecuggftrfgrthhtvghrnheptdfhjeekueduleevff elffelhfeuueeufeehkeefteeuhfeiffethfdvhfevuedvnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgvsehpvghnghhjihiirdgtohhmpd hnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhg qdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i16614472:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 5 Mar 2025 05:10:40 -0500 (EST) From: Pengji Zhang To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Image icons from 'icons.el' could be accidentally dropped Date: Wed, 05 Mar 2025 18:10:38 +0800 Message-ID: <87frjr949t.fsf@pengjiz.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=202.12.124.154; envelope-from=me@pengjiz.com; helo=fhigh-b3-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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) 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: -0.3 (/) Greetings! Currently in 'icons.el' image icons returned by 'icon-string' is a space with a display property (see 'icons--create'). However, IMO it is common to stripped spaces, and that means the icon could be accidentally removed. For example, - Run 'emacs -Q' - Evaluate the following snippet: --8<---------------cut here---------------start------------->8--- (require 'outline) ; for the icon (setopt mode-line-compact t) (setf global-mode-string '("" (:eval (icon-string 'outline-open)) " ")) (force-mode-line-update t) --8<---------------cut here---------------end--------------->8--- Notice that the down arrow icon does not show at all in the mode line due to 'mode-line-compact'. I suppose an easy fix is to use a non-space character. WDYT? Thanks! In GNU Emacs 31.0.50 (build 71, x86_64-pc-linux-gnu, GTK+ Version 3.24.48, cairo version 1.18.2) Repository revision: fe7a8c92be6269f8fc7933eb6c190178839d0f8a Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101016 System Description: Arch Linux Configured using: 'configure --disable-build-details' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 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 tab-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 minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils auth-source cl-seq eieio eieio-core cl-macs password-cache json map byte-opt gv subr-x comp-run bytecomp byte-compile comp-common rx icons cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen 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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 73089 11379) (symbols 48 7060 0) (strings 32 18927 2897) (string-bytes 1 596210) (vectors 16 12730) (vector-slots 8 167990 9957) (floats 8 28 18) (intervals 56 392 87) (buffers 992 12)) ------------=_1741271403-23315-1--