From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Operation of format-mode-line Date: Wed, 24 Jul 2024 16:30:51 +0000 Message-ID: References: <86plr36kbb.fsf@gnu.org> <86msm76jl1.fsf@gnu.org> <86jzha7wli.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15056"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , help-gnu-emacs@gnu.org To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 24 18:31:26 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1sWeti-0003gh-0R for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 24 Jul 2024 18:31:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWetJ-0008Rg-9F; Wed, 24 Jul 2024 12:31:01 -0400 Original-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 1sWetH-0008Kj-EJ for help-gnu-emacs@gnu.org; Wed, 24 Jul 2024 12:30:59 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWetF-0003In-Gg for help-gnu-emacs@gnu.org; Wed, 24 Jul 2024 12:30:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1721838654; x=1722097854; bh=Kus2JxqNPBZDwE+y4RrkRw3CXvStf3UcL1W5qCKXRqg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=vGfq0QP+u93H6d2nQvhoIfxlWGmr/osk5D+Nn7hP+ofHx+NxqpHD7rYFKjqHqm0K1 huUNcLA2s10jMsmLzJ/juwiuJTymrCubtZD+VF99LcuAEMiYZLc6uMPSfTFc0hQdUQ W+XqghkbQKkrc681PwkxmswEYkPcUaDzhIcSY4WWuqsOMr/a+FI1B4Ia23I1XDV4Xi hsO9sMIf8ZBMWale6XsnTqeCwGEijvrNmRX/vpCqA/V5yDboXuvIPk2wlTgnLR/ZIp BbA+Zl5okZD5aV68kMwMfz/CWbfS17Nlv7XH6tYNebJ0pNBUn4UCQx9yaGBy++YMBE ShLTYgLMlzefw== In-Reply-To: Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 2ab4df9286b7db640108ee800180331811b62ffb Received-SPF: pass client-ip=185.70.43.25; envelope-from=heimeborgia@protonmail.com; helo=mail-4325.protonmail.ch 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147345 Archived-At: On Thursday, July 25th, 2024 at 4:07 AM, Yuri Khan = wrote: > On Wed, 24 Jul 2024 at 22:40, Heime heimeborgia@protonmail.com wrote: >=20 > > On Thursday, July 25th, 2024 at 1:23 AM, Eli Zaretskii eliz@gnu.org wro= te: > >=20 > > > More generally, take a look at lisp/bindings.el, where all the parts > > > of mode-line-format are defined and then used to produce the final > > > value of that variable. > >=20 > > If I change mode-line-buffer-identification, would I not loose the text > > properties and the local-map for the mouse action ? Somehow I have to p= ut > > those back. >=20 >=20 > Have you actually looked at the definition of mode-line-buffer-identifica= tion? >=20 > (defvar-local mode-line-buffer-identification > (propertized-buffer-identification "%12b") > "=E2=80=A6docstring=E2=80=A6") >=20 > Reuse the wrapper. Change the payload. I am not sure whether there are hidden text properties. You all talk to me= =20 in the abstract, expecting me to know what to do.