]> git.eshelyaron.com Git - emacs.git/commitdiff
Check for tty-child-frames feature in show-paren
authorGerd Möllmann <gerd@gnu.org>
Thu, 17 Oct 2024 18:02:57 +0000 (20:02 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 14:50:03 +0000 (15:50 +0100)
* 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

index cb29b8311a5c8a61b956fda09131327f3e26faa8..6e1111779faa4925ae366f256b947dce64a092da 100644 (file)
@@ -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))