GNU bug report logs - #52947
29.0.50; Newline in tab-bar-format causes lockup

Previous Next

Package: emacs;

Reported by: Dustin Lacewell <dlacewell <at> gmail.com>

Date: Sun, 2 Jan 2022 10:18:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 28.0.90

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 52947 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 52947 <at> debbugs.gnu.org, dlacewell <at> gmail.com
Subject: Re: bug#52947: 29.0.50; Newline in tab-bar-format causes lockup
Date: Sun, 02 Jan 2022 20:25:08 +0200
> From: Juri Linkov <juri <at> linkov.net>
> Date: Sun, 02 Jan 2022 19:47:14 +0200
> Cc: 52947 <at> debbugs.gnu.org
> 
> > #+begin_src emacs-lisp
> >   (defun broken-tab-bar-format ()
> >     (let* ((str (format "%s \n %s"
> >                         "foo" "bar")))
> >       `((global menu-item ,(s-trim str) ignore))))
> 
> This also can be reproduced without s-trim, with just:
> 
>        `((global menu-item ,str ignore))))
> 
> >   (progn
> >     (setq tab-bar-format '(tab-bar-format-align-right
> > broken-tab-bar-format))
> >     (tab-bar-mode 1))
> > #+end_src
> >
> > Emacs will lockup and spin the core it's on.
> 
> If the display engine doesn't support newlines in the
> menu-bar/tool-bar/tab-bar, then we could simply remove newlines
> before feeding the tab-bar items to the display engine.

Do we want to support newlines there? what would be the purpose of
having newlines in the tabs?

Also, you say "display engine", so does it mean you've found where we
infloop with these recipes?  If so, can you tell the details?

Thanks.




This bug report was last modified 3 years and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.