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: Thu, 25 Jul 2024 17:27:38 +0000 Message-ID: References: =?us-ascii?Q?____<86jzha5494.fsf@gnu.org>_____<0f--pABu2Yb1Y9QHPFvBJ6S684=5F=5FnBaWQ-IOxrf7sTvspdcvowFh5GGqUTzSNQmTl-CEIPM1li9nu?= =?us-ascii?Q?2zL5WpZ47-UyIUsifPoiOLBOCXS33o=3D@protonmail.com>?= 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="36569"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuri Khan , Eli Zaretskii , help-gnu-emacs@gnu.org To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 25 19:28:40 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 1sX2Ge-0009C0-As for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Jul 2024 19:28:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sX2Fq-0001RH-Lt; Thu, 25 Jul 2024 13:27:50 -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 1sX2Fo-0001Qq-58 for help-gnu-emacs@gnu.org; Thu, 25 Jul 2024 13:27:48 -0400 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sX2Fm-0004Wr-7G; Thu, 25 Jul 2024 13:27:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1721928463; x=1722187663; bh=Ev7R5eDycvLBoxb4pZyjs8mEqNVnt2bsaDEUV09seTU=; 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=ysC52vuq5aEam07+H+8Wi3NEWPAoou75VNYj1BM1A/hFFA8xbcm/iuqdGnmqaWzPg KHSA4qAkShC23uIDuXeGU9GKNAgkvSbuhsfomkWvUNyrTAG+iIDmX1p3+JwqOaSZi1 eDK6s22frmCvMpgphIDhdDwVuT2bJu4bYBYcLVlcyhLLGDMcuILXt4quIUP6bydpJe 8jRScQQPQDfMRBGjG8JrXhDf0aguASou3muwd3x+Agbf0oMDsJB8Plk1BkwOnEQhkx oRjG3JEAKcrvR8RbNbfsKMwYczT90G3JtoZG30D8mLQlsR4zGTWCkaHvNmDdojUN9s SxoMDupt/7JCQ== In-Reply-To: <0f--pABu2Yb1Y9QHPFvBJ6S684__nBaWQ-IOxrf7sTvspdcvowFh5GGqUTzSNQmTl-CEIPM1li9nu2zL5WpZ47-UyIUsifPoiOLBOCXS33o=@protonmail.com> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 92509215fabdf2025c317f10bcee2afaf94d0f4d Received-SPF: pass client-ip=185.70.43.19; envelope-from=heimeborgia@protonmail.com; helo=mail-4319.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, TO_EQ_FM_DIRECT_MX=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:147371 Archived-At: Sent with Proton Mail secure email. On Friday, July 26th, 2024 at 4:01 AM, Heime w= rote: >=20 >=20 >=20 >=20 >=20 > Sent with Proton Mail secure email. >=20 >=20 > On Friday, July 26th, 2024 at 3:26 AM, Yuri Khan yuri.v.khan@gmail.com wr= ote: >=20 > > On Thu, 25 Jul 2024 at 20:20, Heime heimeborgia@protonmail.com wrote: > >=20 > > > I understand. propertized-buffer-identification has hardwired keymap = etc > >=20 > > It hardwires the keymap to the value of the variable > > =E2=80=98mode-line-buffer-identification-keymap=E2=80=99, but you are a= llowed to > > modify that variable. > >=20 > > > and calling it only sets the format used for the buffer identificatio= n > > > name. > >=20 > > I=E2=80=99m pretty sure it will set the format for whatever modeline > > constructs you pass in. > >=20 > > That said, the function =E2=80=98propertized-buffer-identification= =E2=80=99 is not > > very complex; you can copy it and adapt for your custom modeline > > parts. > >=20 > > (For myself, I=E2=80=99m not bothering with mouse bindings. Switching b= uffers > > one step at a time only really works when you have three or so, and > > that just does not happen. Switching between a few hundred buffers is > > better done via IBuffer anyway.) >=20 >=20 > Agreed, but since it is how buffer-identificoation works in the modeline,= I did > not want to mess with it. Have done as instructed (defun vodil-bfnwidth (width) (setq mode-line-buffer-identification (propertized-buffer-identification (format "%%%db" width)))) (defvar vodil-deploy-bfname nil "") (unless vodil-deploy-bfname (vodil-bfnwidth 5)) (setq-default mode-line-format '( "%e" (:eval (if vodil-deploy-bfname vodil-panelit-bfname mode-line-buffer-identification)))) ) Still, I cannot see any difference in the buffer name width.