all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* min-width display property, but with padding at the start
@ 2024-08-19 20:53 Spencer Baugh
  2024-08-20 11:59 ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Spencer Baugh @ 2024-08-19 20:53 UTC (permalink / raw)
  To: emacs-devel


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?



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-08-20 19:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-19 20:53 min-width display property, but with padding at the start Spencer Baugh
2024-08-20 11:59 ` Eli Zaretskii
2024-08-20 12:09   ` Spencer Baugh
2024-08-20 13:28     ` Eli Zaretskii
2024-08-20 13:42       ` Spencer Baugh
2024-08-20 14:03       ` Ihor Radchenko
2024-08-20 14:26         ` Eli Zaretskii
2024-08-20 14:34           ` Ihor Radchenko
2024-08-20 18:23             ` Eli Zaretskii
2024-08-20 18:33               ` Ihor Radchenko
2024-08-20 19:31       ` Petteri Hintsanen
2024-08-20 19:46       ` Jim Porter
2024-08-20 12:21   ` tomas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.