From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.devel Subject: min-width display property, but with padding at the start Date: Mon, 19 Aug 2024 16:53:58 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3818"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 20 04:20:25 2024 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 1sgETx-0000p6-4g for ged-emacs-devel@m.gmane-mx.org; Tue, 20 Aug 2024 04:20:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgET1-0006un-6b; Mon, 19 Aug 2024 22:19:27 -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 1sg9O6-0000pV-MO for emacs-devel@gnu.org; Mon, 19 Aug 2024 16:54:02 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sg9O4-0002XZ-G4 for emacs-devel@gnu.org; Mon, 19 Aug 2024 16:54:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1724100839; bh=91xp5Lyu246n3k75L55Oq9WqBG3f5Qtw/MBPOYxphgw=; h=From:To:Subject:Date; b=VBlO82d3opZxlV1zcWS7HeyqZV5Sh8VhYk3C2ysOzoJV7SBgu/FiyeVDBGjnkTmpS Hj2hXdJ3msKTAIohAWOX/IoVMXKMv7Qxh7OCZw9q6E4znpFkao0Exaw4trV9CalY92 r6Vv+AgMJyhiwjbsC4BnHCzZtHPffhkECI/ffJX/APvg4saVl+SZg5k7XaCLsSED0E 4bhq+rmXlql4oQhGGZZFmew+oDIL616xGrSl7NUfph5GgXwBRVYUjGiC+j7PnqjUR8 yKYlTi0+wLxzWABtHcvVP5WtvFDAySdKpqnpLTpzcqBraMuAi+YqpQhWZolaZ6Stt+ Tok+pDX1Hzp8A== Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 19 Aug 2024 22:19:24 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322950 Archived-At: I'm writing a mode which adds an entry to the mode-line containing a number. This number can rapidly grow or shrink (it's a number of build targets left to build, for a build system like Bazel) so I would like to pad it to a specified width, to avoid the mode-line jittering around as the number changes. Adding a `display' property with the value '(min-width (5.0)) works fine. However, min-width pads by adding padding at the end. I'd like to add padding at the start instead. Is there a way to achieve this with display properties?