unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using :align-to with non-spaces
@ 2017-10-09  5:22 Alex
  2017-10-10  6:40 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Alex @ 2017-10-09  5:22 UTC (permalink / raw)
  To: help-gnu-emacs

Would it be a reasonable feature request to allow some usage of
:align-to with non-spaces (or to have a special display property for
alignment)? For instance, imagine one wants to align a string in the
header-line with the text area. Compare:


(setq header-line-format
      (concat (propertize " "
                          'display
                          '(space . (:align-to 0)))
              "test"))

(setq header-line-format
      (propertize "test"
                  'display
                  '(space . (:align-to 0))))

It's not a big deal, but it's makes things look cleaner, especially when
the string in question is also being propertized.

P.S. I noticed that the above does not take into account the space taken
by `display-line-numbers'.



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

end of thread, other threads:[~2017-10-12  7:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-09  5:22 Using :align-to with non-spaces Alex
2017-10-10  6:40 ` Eli Zaretskii
2017-10-10 18:09   ` Alex
2017-10-10 18:27     ` Eli Zaretskii
2017-10-10 19:18       ` Alex
2017-10-10 20:01         ` Eli Zaretskii
2017-10-11  0:41           ` Alex
2017-10-11 10:38             ` Eli Zaretskii
2017-10-12  0:47               ` Stefan Monnier
2017-10-12  7:10                 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).