From: Gerd Möllmann Date: Thu, 17 Oct 2024 18:02:57 +0000 (+0200) Subject: Check for tty-child-frames feature in show-paren X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fd19831949df99fd4d31f4de9fed5b1060184478;p=emacs.git 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) --- 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))