From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#26291: In mode-line-format, `:propertize' drops some existing text properties Date: Wed, 29 Mar 2017 17:28:34 +0300 Message-ID: <83inms6tt9.fsf@gnu.org> References: <8f9200e4-1361-fd15-7c43-fabfa5df4179@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1490797836 22277 195.159.176.226 (29 Mar 2017 14:30:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 29 Mar 2017 14:30:36 +0000 (UTC) Cc: 26291@debbugs.gnu.org To: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 29 16:30:31 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctEc9-0004O8-Rp for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Mar 2017 16:30:21 +0200 Original-Received: from localhost ([::1]:59428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctEcF-00066u-Qj for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Mar 2017 10:30:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctEaw-0005M7-6J for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 10:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctEas-00079p-0V for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 10:29:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ctEar-00079g-TT for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 10:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ctEar-0002Il-Ki for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 10:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Mar 2017 14:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26291 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26291-submit@debbugs.gnu.org id=B26291.14907977298827 (code B ref 26291); Wed, 29 Mar 2017 14:29:01 +0000 Original-Received: (at 26291) by debbugs.gnu.org; 29 Mar 2017 14:28:49 +0000 Original-Received: from localhost ([127.0.0.1]:51447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctEaf-0002IJ-2c for submit@debbugs.gnu.org; Wed, 29 Mar 2017 10:28:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctEad-0002I6-Bu for 26291@debbugs.gnu.org; Wed, 29 Mar 2017 10:28:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctEaU-0006vT-5l for 26291@debbugs.gnu.org; Wed, 29 Mar 2017 10:28:42 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctEaU-0006vP-2m; Wed, 29 Mar 2017 10:28:38 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2094 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ctEaT-0007Lt-AR; Wed, 29 Mar 2017 10:28:37 -0400 In-reply-to: <8f9200e4-1361-fd15-7c43-fabfa5df4179@gmail.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel on Tue, 28 Mar 2017 19:42:02 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131058 Archived-At: > From: Clément Pit-Claudel > Date: Tue, 28 Mar 2017 19:42:02 -0400 > > (format-mode-line `(:propertize #("AB" 1 2 (x 0)) y 0)) > (format-mode-line `(:propertize ("A" #("B" 0 1 (x 0))) y 0)) > (format-mode-line '(:propertize ("A" (:propertize "B" x 0)) y 0)) > > But they don't: > > (format-mode-line `(:propertize #("AB" 1 2 (x 0)) y 0)) > => #("AB" 0 2 (y 0)) ;; x 0 is dropped > > (format-mode-line '(:propertize ("A" (:propertize "B" x 0)) y 0)) > ⇒ #("AB" 0 1 (y 0) 1 2 (x 0)) ;; y 0 is dropped on 1..2 > > (format-mode-line `(:propertize ("A" #("B" 0 1 (x 0))) y 0)) > ⇒ #("AB" 0 1 (y 0) 1 2 (y 0 x 0)) ;; Seems right > > Am I misreading the docs? Which docs were you reading that led you to believe the above should work? (And btw, why did you use backticks here? I don't think they are needed in this case.)