Subject: Re: bug#51578: 29.0.50; error on display-bindings when invoked from a tty
From: Eli Zaretskii <[email-masked]>
To: Bird <[email-masked]>
Cc: [email-masked]
Date: Wed, 03 Nov 2021 20:15:17 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Bird <[email-masked]>
> Cc: [email-masked]
> Date: Wed, 03 Nov 2021 18:05:30 +0000
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> >> When emacs -Q is ran in a tty(C-M-F2 on gnu/linux) and invokes
> >> describe-bindings, an error occurs. the debug information is:
> [snip]
> > Thanks.  Does the patch below help?
> >
> > diff --git a/lisp/outline.el b/lisp/outline.el
> > index 2a6f475..5b20a42 100644
> > --- a/lisp/outline.el
> > +++ b/lisp/outline.el
> > @@ -961,7 +961,8 @@ outline--make-button
> >                            " " (buffer-substring (point) (1+ (point))))))
> >  
> >  (defun outline--valid-emoji-p (string)
> > -  (when-let ((font (car (internal-char-font nil ?😀))))
> > +  (when-let ((font (and (display-multi-font-p)
> > +                        (car (internal-char-font nil ?😀)))))
> >      (font-has-char-p font (aref string 0))))
> >  
> >  (defun outline--valid-char-p (string)
> Thanks! the above patch does work in a tty.

Thanks, I've now installed it on the master branch.

> Is it possible to always use that triange thingy (which is used in a
> tty) instead of the emoji in describe-bindings? i much prefer those
> compared to emojis ;)

Yes, customize the option outline-minor-mode-buttons.

And with that, I'm closing this bug report.