unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrea Greselin <greselin.andrea@gmail.com>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 36147@debbugs.gnu.org
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	[thread overview]
Message-ID: <CAJ_oJbZT6k4ZK_58iPAMcMbSFXKixSN1rFwhA3+6Uq80aEyS7g@mail.gmail.com> (raw)
In-Reply-To: <877e9u1u77.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]

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.
>
>

[-- Attachment #2: Type: text/html, Size: 2079 bytes --]

  reply	other threads:[~2019-06-10  6:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-09 14:17 bug#36147: 26.2; recentf-open-files doesn't display tree widgets when called from an emacsclient instance Andrea Greselin
2019-06-09 14:30 ` Noam Postavsky
2019-06-09 16:26   ` Andrea Greselin
2019-06-09 18:37     ` Noam Postavsky
2019-06-10  6:27       ` Andrea Greselin [this message]
2019-06-15 21:46         ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ_oJbZT6k4ZK_58iPAMcMbSFXKixSN1rFwhA3+6Uq80aEyS7g@mail.gmail.com \
    --to=greselin.andrea@gmail.com \
    --cc=36147@debbugs.gnu.org \
    --cc=npostavs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).