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 12:45:50 +0000 Message-ID: References: <86cyn47wr3.fsf@gnu.org> <868qxr8qzv.fsf@gnu.org> <86ttgf6mh2.fsf@gnu.org> <86plr36kbb.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="34089"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 24 14:46:35 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 1sWbO7-0008lE-C1 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 24 Jul 2024 14:46:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWbNf-00007A-KI; Wed, 24 Jul 2024 08:46:07 -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 1sWbNZ-00006g-G8 for help-gnu-emacs@gnu.org; Wed, 24 Jul 2024 08:46:01 -0400 Original-Received: from mail-43167.protonmail.ch ([185.70.43.167]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWbNX-0007z1-5K; Wed, 24 Jul 2024 08:46:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1721825154; x=1722084354; bh=zoBTRL2FgItOGcUBlenoeOJbItwsIFs2tfkvUdIMcJM=; 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=cpYEytiv1vkGeYiWXA67+fyls/o9Pn+texOXei8scJYQsCTUsTsV5oSgmpVKTmJrn 5Qd0EWeZSKZ864UTDlf2D1YkV6gkJNNQuLP+2JdlvqPzx7GOkkQ09VipqPl3lcHw4d uFA4wnbkDkrPG9RHSFs8hB3arIFAKdVOjWYp7BQhaAEYYr+TMGPb12s1yG42ANwsPq 76/rh9MZPls8hD7pPkx1jUoAPxu+Yvu1E04wI9Bkg3tK2H9aGRTRrubXlBO0cDPVfc d/eQd3T0WzyaUZn8Ithc3249dH3NnEsGfpBwSUXPzOraMP9obCx1Dxox71rYnBYn2I MSNMnRXPznYTQ== In-Reply-To: <86plr36kbb.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: a2eeff146157da172f5ff033b0704c36dacc7541 Received-SPF: pass client-ip=185.70.43.167; envelope-from=heimeborgia@protonmail.com; helo=mail-43167.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:147334 Archived-At: On Thursday, July 25th, 2024 at 12:33 AM, Eli Zaretskii wrot= e: > > Date: Wed, 24 Jul 2024 12:21:49 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: help-gnu-emacs@gnu.org > >=20 > > On Wednesday, July 24th, 2024 at 11:47 PM, Eli Zaretskii eliz@gnu.org w= rote: > >=20 > > > > Date: Wed, 24 Jul 2024 10:18:44 +0000 > > > > From: Heime heimeborgia@protonmail.com > > > > Cc: help-gnu-emacs@gnu.org > > > >=20 > > > > On Wednesday, July 24th, 2024 at 2:26 PM, Eli Zaretskii eliz@gnu.or= g wrote: > > > >=20 > > > > > > Date: Tue, 23 Jul 2024 19:13:32 +0000 > > > > > > From: Heime heimeborgia@protonmail.com > > > > > > Cc: help-gnu-emacs@gnu.org > > > > > >=20 > > > > > > On Wednesday, July 24th, 2024 at 7:07 AM, Eli Zaretskii eliz@gn= u.org wrote: > > > > > >=20 > > > > > > > > Date: Tue, 23 Jul 2024 18:56:47 +0000 > > > > > > > > From: Heime heimeborgia@protonmail.com > > > > > > > > Cc: help-gnu-emacs@gnu.org > > > > > > > >=20 > > > > > > > > > > Seems that the text properties are the same for each ch= aracter. > > > > > > > > >=20 > > > > > > > > > They are not. > > > > > > > >=20 > > > > > > > > If the buffer name is provodilac.el, what is the difference= in text proporties > > > > > > > > between the different characters ? I see there are faces an= d code for mouse > > > > > > > > action whether I use position 0, 1, 2, etc. > > > > > > >=20 > > > > > > > All the characters that belong to the buffer name indeed have= the same > > > > > > > properties. But not all of the characters of the string retur= ned by > > > > > > > format-mode-line. > > > > > >=20 > > > > > > Returning the text properties from position 0 would ensure that= the properties one gets are associated with the the buffer name. Is this c= orrect when doing > > > > > >=20 > > > > > > (text-properties-at 0 (format-mode-line mode-line-buffer-identi= fication)) > > > > >=20 > > > > > I don't understand your question, sorry. Is what correct? > > > >=20 > > > > I want to have buffer identification in the modeline without the "%= 12b" > > > > so that the buffer name does not get truncated. What can I do ? Hav= e > > > > been copying the text properties. > > >=20 > > > It depends on what you replace "%12b" with. > >=20 > > I want to replace it to a larger value. >=20 >=20 > You mean, instead of "%12b" something like "%20b"? Then you shouldn't > need to do anything. Yes. Maybe I do not need to do a lot, but the number is not going to chang= e=20 all by itself.