From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72309: propertized-buffer-identification with maximum width Date: Sat, 27 Jul 2024 12:23:20 +0000 Message-ID: References: <8eYtcka1bg4aOfbQVrzRShsG1EtNIu1JLO9XlRoQXZ4Q7yqojew5kxXcml4s-JdvwA7hgEdo_0-YEQf0zknb2wq9aS_-rgwEZB0ZT9y6QWM=@protonmail.com> <86jzh72xml.fsf@gnu.org> <86v80r11mk.fsf@gnu.org> Reply-To: Heime 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="19871"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72309@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 27 14:24:13 2024 Return-path: Envelope-to: geb-bug-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 1sXgT7-00051c-7J for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Jul 2024 14:24:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXgSo-0006UJ-Ne; Sat, 27 Jul 2024 08:23:55 -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 1sXgSm-0006Tm-MT for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 08:23:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXgSm-00028M-5a for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 08:23:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=CZNfUpLtT8EHLih+L1f6BjdUh/xYo6Xb/GctWmZuNz8=; b=s+i3pvlTM852i4wTS+2SeTkbXA1WiAJlxTBvnx9CeE755dZ1RF12P7YrjQU6RWuk/0f1IOjC9OdOZndZJ/c9sO43MrSLMOPkE8VQlfa4rGQJndjzHFOjYi16VFMi38bLk0zzrgIEDAK4sQoJUolggHoMwmtwCs0ZtSNN5N/QUvlSF90Gi0EPLzjEb0CugBh4GDuBwNEZ6y0KQm5HBZCq/8/FvG91/asx3B5DfZ3rto5qSA1HwF++rxkizpqR3yBJa3ZSxs8rAWB5NOeKLoX4hM0dh/s0uxfwzcwIKrLLtmGr7nuixIB6wQq7Ge4ku0x4/uB0KDovEW/7kKnYa6ePlQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXgSv-0001FH-Vy for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 08:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2024 12:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 72309-submit@debbugs.gnu.org id=B72309.17220830244734 (code B ref 72309); Sat, 27 Jul 2024 12:24:01 +0000 Original-Received: (at 72309) by debbugs.gnu.org; 27 Jul 2024 12:23:44 +0000 Original-Received: from localhost ([127.0.0.1]:40809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXgSd-0001E5-Lz for submit@debbugs.gnu.org; Sat, 27 Jul 2024 08:23:43 -0400 Original-Received: from mail-40138.protonmail.ch ([185.70.40.138]:28087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXgSb-0001DJ-Pz for 72309@debbugs.gnu.org; Sat, 27 Jul 2024 08:23:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1722083004; x=1722342204; bh=Tx7Z/bTyJUV1JAZRhGrloUHaMIxdbf58G+R3q21v2uc=; 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=o0ocpFGEcaKl9PFlSFg0FVmXo9vwd1RIOWn1K6gDJoCFcjDuf/eTKgMQMCuIOUYs8 3TnxH7+yPe/8S30bsgMMwHUXNzN7KLks1UBXwH56Znu4LvGiIf5/qcEUjeg9YRwWA1 Gh7P2avhDj6/CMKAllSFFoPouWfpu1y/DkwpGJq8e0NTfG2uZeyM7f0edzam2cMYBV fmNBkMfWKeXjuvdgNfLJXRG2UTXwCdVEuF+W7cH0uu2YHmlAx9i+/dSqlIKH+x2SHg EY39PGnCvZRytImyfzg0jWFd2uhj9iI3XTH63+RS1SkNPnqFPkTSG2niMprld51W5m aXk470azpmbgA== In-Reply-To: <86v80r11mk.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 5d194ed9f67443fd9c4c7406047558d11d77ccf6 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289427 Archived-At: Sent with Proton Mail secure email. On Sunday, July 28th, 2024 at 12:05 AM, Eli Zaretskii wrote: > > Date: Sat, 27 Jul 2024 09:22:21 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: 72309@debbugs.gnu.org > >=20 > > On Saturday, July 27th, 2024 at 5:48 PM, Eli Zaretskii eliz@gnu.org wro= te: > >=20 > > > tags 72309 notabug > > > thanks > > >=20 > > > > Date: Fri, 26 Jul 2024 19:04:14 +0000 > > > > From: Heime via "Bug reports for GNU Emacs, > > > > the Swiss army knife of text editors" bug-gnu-emacs@gnu.org > > > >=20 > > > > propertized-buffer-identification could be improved so that when us= ing a > > > > maximum width there are three dots and a space at the end to indica= te > > > > that the buffer name has been truncated. > > >=20 > > > Emacs doesn't truncate the buffer name shown on the mode line, so no > > > ellipsis should be needed, ever. IOW, the maximum width is basically > > > infinity. > > >=20 > > > Where did you see the buffer name truncated on the mode line? > >=20 > > There is this construct > >=20 > > (width rest=E2=80=A6) > >=20 > > which specifies truncation or padding of the results of rest. > >=20 > > If used on the buffer name it just truncates without specification > > that truncation occurred. >=20 >=20 > Where in the Emacs code did you see that? I cannot find anything like > that in bindings.el, which is where we have the code used for > displaying the buffer name on the mode line. The last entry in "24.4.2 The Data Structure of the Mode Line". I have tried it and setting a maximum width does work and the abrupt=20 truncation in the buffer name does occur. =20