* splash screen column alignment
@ 2021-06-01 14:26 Joe Corneli via Emacs development discussions.
2021-06-01 15:30 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Joe Corneli via Emacs development discussions. @ 2021-06-01 14:26 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 531 bytes --]
Depending on the size of the font I use, alignment of the text in the
*GNU Emacs* buffer (which is done with single tabs) may or may not work
properly. I’ve found this would be fixed by starting with 2 tabs
separating the columns, and then running:
(align-regexp (point-min) (point-max) "\\(\t\\)[A-Z]")
as part of the construction of the buffer.
I’ve attached some images showing
• the expected behaviour appearing by luck
• the flaw
• the fix (with whitespace mode enabled to highlight the point).
[-- Attachment #2: aligned.png --]
[-- Type: image/png, Size: 172484 bytes --]
[-- Attachment #3: unaligned.png --]
[-- Type: image/png, Size: 146346 bytes --]
[-- Attachment #4: whitespace.png --]
[-- Type: image/png, Size: 171926 bytes --]
[-- Attachment #5: Type: text/plain, Size: 279 bytes --]
--
Dr Joseph A. Corneli (https://github.com/holtzermann17)
HYPERREAL ENTERPRISES LTD is a private company limited by shares, incorporated
25th, June 2019 as Company Number 634284 on the Register of Companies for
Scotland (https://beta.companieshouse.gov.uk/company/SC634284).
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: splash screen column alignment
2021-06-01 14:26 splash screen column alignment Joe Corneli via Emacs development discussions.
@ 2021-06-01 15:30 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2021-06-01 15:30 UTC (permalink / raw)
To: Joe Corneli; +Cc: emacs-devel
> Date: Tue, 01 Jun 2021 15:26:53 +0100
> From: Joe Corneli via "Emacs development discussions." <emacs-devel@gnu.org>
>
> Depending on the size of the font I use, alignment of the text in the
> *GNU Emacs* buffer (which is done with single tabs) may or may not work
> properly. I’ve found this would be fixed by starting with 2 tabs
> separating the columns, and then running:
>
> (align-regexp (point-min) (point-max) "\\(\t\\)[A-Z]")
>
> as part of the construction of the buffer.
IMO, align-regexp is overkill for this. We should simply use
:align-to display spec there, which is a core feature that doesn't
need to load any Lisp.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-01 15:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-01 14:26 splash screen column alignment Joe Corneli via Emacs development discussions.
2021-06-01 15:30 ` Eli Zaretskii
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.