Re: Bug: [PATCH] org-agenda: "Invalid face reference: t" errors [9.4 (release_9.4-49-g4b150d @ /home/n/.emacs.d/straight/build/org/)]

2020-10-06 Thread Kyle Meyer
No Wayman writes:

> I noticed recently that my message buffer was getting clobbered 
> with thousands of Invalid face reference errors when moving point 
> around an org-agenda buffer. e.g.:
>
>> Invalid face reference: t [4519 times]
[...]
> I believe the face spec in the call to `add-face-text-property' in 
> `org-display-outline-path' is incorrect.
> The attached patch replaces it with an anonymous face, which works 
> on my end.

Yeah, I'd guess the invalid (t ...) slipped in because of the
(DISPLAY . PLIST) used for defface.

Applied (f0902bf18), appending a period to your changelog description.

Thanks.



Re: Bug: [PATCH] org-agenda: "Invalid face reference: t" errors [9.4 (release_9.4-49-g4b150d @ /home/n/.emacs.d/straight/build/org/)]

2020-10-06 Thread Samuel Wales
i can confirm these errors in maint [didn't confirm the patch or
workaround].  thanks for debugging what i could not.


On 10/5/20, No Wayman  wrote:
>
> I noticed recently that my message buffer was getting clobbered
> with thousands of Invalid face reference errors when moving point
> around an org-agenda buffer. e.g.:
>
>> Invalid face reference: t [4519 times]
>
> Git bisect points to commit
> 7a12e149907b5921011710d869b7554c35859c89
>
>> org.el (org-display-outline-path): Fix faces of the message
>>
>> * lisp/org.el (org-display-outline-path): Set :height as the
>> default face height, and don't change other face attributes.
>>
>> See a3576543f for a previous fix, and this discussion:
>> 
>
> As a workaround, setting `org-agenda-show-outline-path' to nil
> prevents the errors.
> I believe the face spec in the call to `add-face-text-property' in
> `org-display-outline-path' is incorrect.
> The attached patch replaces it with an anonymous face, which works
> on my end.
>
>


-- 
The Kafka Pandemic

Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html



Bug: [PATCH] org-agenda: "Invalid face reference: t" errors [9.4 (release_9.4-49-g4b150d @ /home/n/.emacs.d/straight/build/org/)]

2020-10-05 Thread No Wayman


I noticed recently that my message buffer was getting clobbered 
with thousands of Invalid face reference errors when moving point 
around an org-agenda buffer. e.g.:



Invalid face reference: t [4519 times]


Git bisect points to commit 
7a12e149907b5921011710d869b7554c35859c89



org.el (org-display-outline-path): Fix faces of the message

* lisp/org.el (org-display-outline-path): Set :height as the
default face height, and don't change other face attributes.

See a3576543f for a previous fix, and this discussion:



As a workaround, setting `org-agenda-show-outline-path' to nil 
prevents the errors.
I believe the face spec in the call to `add-face-text-property' in 
`org-display-outline-path' is incorrect.
The attached patch replaces it with an anonymous face, which works 
on my end.


>From 4b150d7ca3f8d7d9fe30f6b562b35a5f4072e5e1 Mon Sep 17 00:00:00 2001
From: Nicholas Vollmer 
Date: Tue, 6 Oct 2020 01:30:09 -0400
Subject: [PATCH] org.el (org-display-outline-path): Fix invalid face reference
 error

* lisp/org.el (org-display-outline-path): Use an anonymous face when
adding default :height to outline path
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 425e9391b..beb830b36 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8057,7 +8057,7 @@ If JUST-RETURN-STRING is non-nil, return a string, don't display a message."
 	   (and file bfn (concat (file-name-nondirectory bfn) separator))
 	   separator))
 (add-face-text-property 0 (length res)
-			`((t :height ,(face-attribute 'default :height)))
+			`(:height ,(face-attribute 'default :height))
 			nil res)
 (if just-return-string
 	res
-- 
2.28.0