branch: externals/posframe
commit f340b0ee890eb0bb7281e645db83339bf6561cf5
Author: Rodrigo Kassick <[email protected]>
Commit: GitHub <[email protected]>
fix: avoid using maybe-unbound symbol
text-scale-mode is not autoloaded in 30.2
---
posframe.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/posframe.el b/posframe.el
index dc8ec4652d..03ab9a18c5 100644
--- a/posframe.el
+++ b/posframe.el
@@ -421,7 +421,7 @@ You can use `posframe-delete-all' to delete all posframes."
(font-height (with-current-buffer (window-buffer parent-window)
(posframe--get-font-height position)))
(parent-text-scale-mode-amount (with-current-buffer (window-buffer
parent-window)
- (and text-scale-mode
text-scale-mode-amount)))
+ (and (bound-and-true-p
text-scale-mode) text-scale-mode-amount)))
(mode-line-height (window-mode-line-height
(and (window-minibuffer-p)
(ignore-errors (window-in-direction
'above)))))