emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: variable-pitch-mode misaligns org-mode heading tags


From: Jeff Filipovits
Subject: Re: variable-pitch-mode misaligns org-mode heading tags
Date: Thu, 17 Sep 2020 11:36:49 -0400
User-agent: mu4e 1.2.0; emacs 28.0.50


Adam Spiers <orgmode@adamspiers.org> writes:

Hrm, no this isn't good enough. For graphical windows we still need to set the display text properties to align all tags when the buffer initially loads. AFAICS there's currently no code to trigger this, so it would need to be added, and for large files this might actually
cause problems with file loading time unless it was done in the
background (a bit like fontification can be done).

A few issues I found:

1. If the headline text exceeds the org-tags-column, the tags are moved so there is no space between the headline and the tag. This is only aesthetic, since in reality there is still a space there. Not sure this needs to be fixed. 2. If you try to insert a space at the end of the headline, it will be gobbled automatically because org-self-insert-command calls org–align-tags-here. With this method of aligning tags I don’t think org-self-insert-command needs to make this call, because the display text property updates automatically on redisplay. So the solution may be take that call out, but I don’t know if that will break anything. Otherwise, maybe the code ensuring there is one space is not really necessary. 3. Org-indent-mode creates a problem. Not sure why yet, or whether it’s org-indent-mode or some setting I have associated with it, but tags of child nodes don’t align properly.


Jeff Filipovits
Spears & Filipovits, LLC
1126 Ponce de Leon Avenue
Atlanta, GA 30306
678.237.9302 (direct)
jeff@civil-rights.law

All emails confidential to the fullest extent of the law.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]