From: Eli Zaretskii <eliz@gnu.org>
To: Bird <birdsite@airmail.cc>
Cc: 51578-done@debbugs.gnu.org
Subject: bug#51578: 29.0.50; error on display-bindings when invoked from a tty
Date: Wed, 03 Nov 2021 20:15:17 +0200 [thread overview]
Message-ID: <83k0hpgl6y.fsf@gnu.org> (raw)
In-Reply-To: <85ee7xru6t.fsf@airmail.cc> (message from Bird on Wed, 03 Nov 2021 18:05:30 +0000)
> From: Bird <birdsite@airmail.cc>
> Cc: 51578@debbugs.gnu.org
> Date: Wed, 03 Nov 2021 18:05:30 +0000
>
> Eli Zaretskii <eliz@gnu.org> 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.
prev parent reply other threads:[~2021-11-03 18:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-03 3:00 bug#51578: 29.0.50; error on display-bindings when invoked from a tty Bird
2021-11-03 14:27 ` Eli Zaretskii
2021-11-03 18:05 ` Bird
2021-11-03 18:15 ` Eli Zaretskii [this message]
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=83k0hpgl6y.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=51578-done@debbugs.gnu.org \
--cc=birdsite@airmail.cc \
/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).