From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.devel Subject: eliding in mode-line-format Date: Fri, 01 Oct 2021 16:00:51 +0200 Message-ID: <875yugrgj0.fsf@elite.giraud> 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="27920"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 01 16:03:13 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 1mWJ84-00074B-OE for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Oct 2021 16:03:12 +0200 Original-Received: from localhost ([::1]:47434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWJ83-0001Ds-Oj for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Oct 2021 10:03:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWJ69-0008IO-78 for emacs-devel@gnu.org; Fri, 01 Oct 2021 10:01:13 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:47593) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWJ5t-0007lp-Up for emacs-devel@gnu.org; Fri, 01 Oct 2021 10:01:12 -0400 Original-Received: from elite.giraud (82-65-148-221.subs.proxad.net [82.65.148.221]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 8062f8f5 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Fri, 1 Oct 2021 16:00:52 +0200 (CEST) Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:275981 Archived-At: Hi, I'd like to have some kind eliding feature in the mode line. As a usage example, I'd like to be able to have "a buffer with a really long and meaning full name" that I'm able to track down (with icomplete for instance) but I want its "%b" mode line representation to be truncated to say n characters ("a buffer with=E2=80=A6" for instance). Before I start digging into 'xdisp.c', I'd like to know if maybe there is already a way to do it in emacs and if it is something that could be interesting to some? --=20 Manuel Giraud