bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36147: 26.2; recentf-open-files doesn't display tree widgets when ca


From: Noam Postavsky
Subject: bug#36147: 26.2; recentf-open-files doesn't display tree widgets when called from an emacsclient instance
Date: Sun, 09 Jun 2019 14:37:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Andrea Greselin <greselin.andrea@gmail.com> writes:

> Yes it does! Thank you!
>
> On Sun, 9 Jun 2019 at 16:30, Noam Postavsky <npostavs@gmail.com> wrote:
>>
>> I guess the problem is that tree-widget-image-enable is set just once on
>> load, based on the current display (and the daemon has no display so it
>> doesn't support displaying images).  Does it help to explicitly set
>> tree-widget-image-enable to non-nil?

Looks like we could solve this bug just by making
tree-widget-image-enable default to t unconditionally then.  It seems to
do the right thing in that case, e.g., I tried

    ;; from 
https://stackoverflow.com/questions/25104291/change-text-of-tree-widget-node
    (widget-create
     'tree-widget :open t :tag "one"
     :args
     (list (widget-convert
            'tree-widget
            :tag "two"
            :args (mapcar (apply-partially #'widget-convert 'item)
                          '("three" "four")))))

it shows image when looking at it in a graphic frame, and text when
looking at the same buffer in a tty frame.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]