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: Andrea Greselin
Subject: bug#36147: 26.2; recentf-open-files doesn't display tree widgets when called from an emacsclient instance
Date: Mon, 10 Jun 2019 08:27:19 +0200

Yes, setting tree-widget-image-enable to t makes recentf-open-file work correctly in my system, too.

On Sun, 9 Jun 2019 at 20:37, Noam Postavsky <npostavs@gmail.com> wrote:
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]