[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] org-agenda: Use `window-max-chars-per-line' instead of `wind
From: |
N. Jackson |
Subject: |
Re: [PATCH] org-agenda: Use `window-max-chars-per-line' instead of `window-width' |
Date: |
Thu, 21 Apr 2022 03:56:32 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Hello Ihor,
At 03:16 -0400 on Thursday 2022-04-21, N. Jackson wrote:
>
> However, the problem with the tags wrapping in Agenda (instead of
> being right aligned) remains.
I believe the problem with the wrapping of the Agenda tags is here:
(defun org-agenda-align-tags (&optional line)
"Align all tags in agenda items to `org-agenda-tags-column'.
When optional argument LINE is non-nil, align tags only on the
current line."
(let ((inhibit-read-only t)
(org-agenda-tags-column (if (eq 'auto org-agenda-tags-column)
(- (window-text-width))
^^^^^^^^^^^^^^^^^
org-agenda-tags-column))
(end (and line (line-end-position)))
l c)
...
Changing window-text-width to window-max-chars-per-line fixes the
problem here and seems like the right thing to do.
Regards,
N.
- [BUG] Off-by-one error in width of Agenda window? [9.5.2 (release_9.5.2-25-gaf6f12 @ /data/installs/snapshots/emacs-28.1/lisp/org/)], N. Jackson, 2022/04/18
- Re: [BUG] Off-by-one error in width of Agenda window? [9.5.2 (release_9.5.2-25-gaf6f12 @ /data/installs/snapshots/emacs-28.1/lisp/org/)], Ihor Radchenko, 2022/04/18
- Re: [BUG] Off-by-one error in width of Agenda window? [9.5.2 (release_9.5.2-25-gaf6f12 @ /data/installs/snapshots/emacs-28.1/lisp/org/)], N. Jackson, 2022/04/18
- Re: [BUG] Off-by-one error in width of Agenda window? [9.5.2 (release_9.5.2-25-gaf6f12 @ /data/installs/snapshots/emacs-28.1/lisp/org/)], Ihor Radchenko, 2022/04/18
- Re: [BUG] Off-by-one error in width of Agenda window?, N. Jackson, 2022/04/19
- Re: [BUG] Off-by-one error in width of Agenda window?, Ihor Radchenko, 2022/04/20
- Re: [BUG] Off-by-one error in width of Agenda window?, N. Jackson, 2022/04/20
- [PATCH] org-agenda: Use `window-max-chars-per-line' instead of `window-width', Ihor Radchenko, 2022/04/21
- Re: [PATCH] org-agenda: Use `window-max-chars-per-line' instead of `window-width', N. Jackson, 2022/04/21
- Re: [PATCH] org-agenda: Use `window-max-chars-per-line' instead of `window-width',
N. Jackson <=
- [PATCH v2] org-agenda: Use `window-max-chars-per-line' to calculate max text width, Ihor Radchenko, 2022/04/22
- Re: [PATCH v2] org-agenda: Use `window-max-chars-per-line' to calculate max text width, N. Jackson, 2022/04/22
- Re: [PATCH v2] org-agenda: Use `window-max-chars-per-line' to calculate max text width, Ihor Radchenko, 2022/04/22
- Re: [PATCH v2] org-agenda: Use `window-max-chars-per-line' to calculate max text width, N. Jackson, 2022/04/22
- Re: [PATCH v2] org-agenda: Use `window-max-chars-per-line' to calculate max text width, Ihor Radchenko, 2022/04/24
- Thank you Re: [PATCH v2] org-agenda: Use `window-max-chars-per-line' to calculate max text width, N. Jackson, 2022/04/24
Re: [BUG] Off-by-one error in width of Agenda window? [9.5.2 (release_9.5.2-25-gaf6f12 @ /data/installs/snapshots/emacs-28.1/lisp/org/)], Tory S. Anderson, 2022/04/18