GNU bug report logs - #26586
25.1; header-line-format spins cpu

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Fri, 21 Apr 2017 06:18:02 UTC

Severity: normal

Found in version 25.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 26586-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 26586-done <at> debbugs.gnu.org
Subject: Re: bug#26586: 25.1; header-line-format spins cpu
Date: Fri, 21 Apr 2017 11:15:24 +0300
> From: Aaron Jensen <aaronjensen <at> gmail.com>
> Date: Thu, 20 Apr 2017 23:17:22 -0700
> 
> With emacs -Q, executing:
> 
> (setq header-line-format '(#("*
> [[elisp:(org-projectile:open-project%20\"foobar\")][xxxxxxxxxx]]" 0 1
> [...]
> Spins the CPU 100% until I kill emacs.

You are shooting yourself in the foot by having that "%20" in the
header-line-format.  Percent sign is special in mode-line and
header-line formats: it indicates a %-construct, see the node
"%-Constructs" in the ELisp manual.

I fixed the code to avoid the infloop in this case, but you should fix
your code, because the result will not be what you probably expect.

Thanks.




This bug report was last modified 8 years and 87 days ago.

Previous Next


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