From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Tick Reduction Date: Thu, 25 Nov 2021 17:04:23 +0200 Message-ID: <8335nk5lag.fsf@gnu.org> References: <87bl2hyzca.fsf@gnus.org> <87tug4fdn7.fsf@gnus.org> <83pmqsp0m7.fsf@gnu.org> <87k0gzyy8k.fsf@gnus.org> <835ysjoupv.fsf@gnu.org> <8735nnyob1.fsf@gnus.org> <83y25fneeh.fsf@gnu.org> <87pmqrx7rh.fsf@gnus.org> <83tug3ndaj.fsf@gnu.org> <874k81vmlf.fsf@gnus.org> <83sfvl8wjw.fsf@gnu.org> <87o869y0v2.fsf@gnus.org> <83fsrl8owz.fsf@gnu.org> <87o869wkcx.fsf@gnus.org> <83bl298n9b.fsf@gnu.org> <87pmqpv1jm.fsf@gnus.org> <834k818jwm.fsf@gnu.org> <874k80fkpm.fsf@gnus.org> <83bl285o6b.fsf@gnu.org> <87o868cor3.fsf@gnus.org> <835ysg5no7.fsf@gnu.org> <87k0gwcoce.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27158"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, stefankangas@gmail.com, dgutov@yandex.ru To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 25 16:05:19 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mqGJK-0006op-JH for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Nov 2021 16:05:18 +0100 Original-Received: from localhost ([::1]:38780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqGJJ-0001YC-0M for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Nov 2021 10:05:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqGIQ-0000su-Re for emacs-devel@gnu.org; Thu, 25 Nov 2021 10:04:22 -0500 Original-Received: from [2001:470:142:3::e] (port=44234 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqGIQ-0001Ms-GX; Thu, 25 Nov 2021 10:04:22 -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=q2ANcprZZTZiAgt/Y6at+36jj/afQuRRinzCYoJ3jmQ=; b=oZVGse+bHjvT Ai8Xf/1krj+WP/e9yxE4d0Ci5rnuzY8vI0sndvP70kdX3m9XHpdp7Gue8/Mw7NFhMwNmTRlKDF3Hq YuZkJcndFM3HiW2rvgeN/tCJcWBZTwa+RAYf4pob3hZo+DfLS8pTZMF8N5r5en9IZnFNGfvwQaHFi QIrNjsYkYo00c0dcqWc4+RcD144fI/nQQJuZMp/xQjuoogweWUIlUNbQLyX+sPkiq1bJWn2VihPRj IVmgAjf3ur3RNuhFgTW2iZ1BSPBjoELW8Rk9tiiRq4jd2+uu3AiHS/2VcNQdsDiP0fSaQSp1xQRDG 1vZPlegiacOV1Zy9Xwl7Pg==; Original-Received: from [87.69.77.57] (port=4995 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqGIQ-0004fT-5x; Thu, 25 Nov 2021 10:04:22 -0500 In-Reply-To: <87k0gwcoce.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 25 Nov 2021 15:16:33 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280138 Archived-At: > From: Lars Ingebrigtsen > Cc: dgutov@yandex.ru, stefankangas@gmail.com, emacs-devel@gnu.org > Date: Thu, 25 Nov 2021 15:16:33 +0100 > > Eli Zaretskii writes: > > >> But... the displayed string does end up with a text property -- > >> help-echo etc. So text properties work fine, I think? It's just that > >> we don't call the `display' handler. > > > > I didn't say text properties on the mode line didn't work, I just > > explained why we disregard text properties that are put on C strings. > > Right, but I still don't understand how the display (resulting from > those C strings) does have text properties, while we're not heeding the > `display' property. Is this a bug? The properties are put on the mode-line elements that are Lisp strings, in display_mode_element. "%p" starts as a Lisp string (it comes from bindings.el), so we do put all those text properties, including min-width, on the Lisp string whose contents is "%p". But when we come to _displaying_ the result of evaluating %p, we disregard the 'display' property on the result, because the result is a C string. Given this description, what exactly do you mean when you say you don't understand "how the display (resulting from those C strings) does have text properties"? How do you see that "the display does have text properties"?