]> git.eshelyaron.com Git - emacs.git/commitdiff
Always try to display tree-widget with images (Bug#36147)
authorNoam Postavsky <npostavs@gmail.com>
Wed, 12 Jun 2019 11:31:23 +0000 (07:31 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 15 Jun 2019 21:06:31 +0000 (17:06 -0400)
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.

lisp/tree-widget.el

index e4da23a387a9452de015727482e6de02010c8f48..b28448654c1493a816c076780974466d0babd15a 100644 (file)
   :version "22.1"
   :group 'widgets)
 
-(defcustom tree-widget-image-enable (if (fboundp 'display-images-p)
-                                        (display-images-p))
+(defcustom tree-widget-image-enable t
   "Non-nil means that tree-widget will try to use images."
   :type  'boolean
-  :group 'tree-widget)
+  :group 'tree-widget
+  :version "27.1")
 
 (defvar tree-widget-themes-load-path
   '(load-path