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


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Dustin Lacewell <dlacewell <at> gmail.com>
Cc: 52947 <at> debbugs.gnu.org
Subject: bug#52947: 29.0.50; Newline in tab-bar-format causes lockup
Date: Sun, 02 Jan 2022 19:47:14 +0200
> Execute the following elisp:

Thanks for the bug report.

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




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.