aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoam Postavsky2019-06-12 07:31:23 -0400
committerNoam Postavsky2019-06-15 17:06:31 -0400
commitcaff1e2abea8476741e0ad07cb46a62536c0194c (patch)
tree45038abb13142a8bac5fa448d1a20947d90e2e72
parenta1b230b58a4176a574bcb37573c82d1ccc71633c (diff)
downloademacs-caff1e2abea8476741e0ad07cb46a62536c0194c.tar.gz
emacs-caff1e2abea8476741e0ad07cb46a62536c0194c.zip
Always try to display tree-widget with images (Bug#36147)
Checking the result of display-images-p doesn't make sense if the display capabilities when loading the file are different from the display used to actually look at the widget (which is easily possible now that Emacs supports both tty and graphic frames in the same instance). * lisp/tree-widget.el (tree-widget-image-enable): Default to t, always. This still shows text on displays that can't show images.
-rw-r--r--lisp/tree-widget.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/tree-widget.el b/lisp/tree-widget.el
index e4da23a387a..b28448654c1 100644
--- a/lisp/tree-widget.el
+++ b/lisp/tree-widget.el
@@ -123,11 +123,11 @@
123 :version "22.1" 123 :version "22.1"
124 :group 'widgets) 124 :group 'widgets)
125 125
126(defcustom tree-widget-image-enable (if (fboundp 'display-images-p) 126(defcustom tree-widget-image-enable t
127 (display-images-p))
128 "Non-nil means that tree-widget will try to use images." 127 "Non-nil means that tree-widget will try to use images."
129 :type 'boolean 128 :type 'boolean
130 :group 'tree-widget) 129 :group 'tree-widget
130 :version "27.1")
131 131
132(defvar tree-widget-themes-load-path 132(defvar tree-widget-themes-load-path
133 '(load-path 133 '(load-path