From fd19831949df99fd4d31f4de9fed5b1060184478 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerd=20M=C3=B6llmann?= Date: Thu, 17 Oct 2024 20:02:57 +0200 Subject: [PATCH] Check for tty-child-frames feature in show-paren * lisp/paren.el (show-paren-function): Don't rely on display-graphic-p, also check tty-child-frames feature. (cherry picked from commit 5445062fabc765b316ecedc26bbb395c75d44405) --- lisp/paren.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/paren.el b/lisp/paren.el index cb29b8311a5..6e1111779fa 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -524,7 +524,8 @@ It is the default value of `show-paren-data-function'." (cond ((and (eq show-paren-context-when-offscreen 'child-frame) - (display-graphic-p)) + (or (display-graphic-p) + (featurep 'tty-child-frames))) (show-paren--show-context-in-child-frame context)) ((eq show-paren-context-when-offscreen 'overlay) (show-paren--show-context-in-overlay context)) -- 2.39.5