all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Aaron Jensen <aaronjensen@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 26586-done@debbugs.gnu.org
Subject: bug#26586: 25.1; header-line-format spins cpu
Date: Fri, 21 Apr 2017 07:29:00 -0700	[thread overview]
Message-ID: <CAHyO48wQaHQ=zHybvnfgWLaZQuMtULStRAUmDrxqX0ewAOyfcQ@mail.gmail.com> (raw)
In-Reply-To: <83y3uu9nxf.fsf@gnu.org>

Thanks for the quick fix and the info!

The code generating it was org-sticky-header
https://github.com/alphapapa/org-sticky-header/blob/master/org-sticky-header.el

I was investigating and infinite loop reported here:

https://github.com/alphapapa/org-sticky-header/issues/4

The org file that triggers the bug is:

* [[elisp:(org-projectile:open-project%20"foobar")][xxxxxxxxxx]]

which is generated by org-projectile

So, I'm guessing that org-sticky-header needs to escape or remove
elisp links before turning org headlines into a header?


On Fri, Apr 21, 2017 at 1:15 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Aaron Jensen <aaronjensen@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.





  reply	other threads:[~2017-04-21 14:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-21  6:17 bug#26586: 25.1; header-line-format spins cpu Aaron Jensen
2017-04-21  8:07 ` Eli Zaretskii
2017-04-21  8:15 ` Eli Zaretskii
2017-04-21 14:29   ` Aaron Jensen [this message]
2017-04-21 14:51     ` Eli Zaretskii
2017-04-21 15:34       ` Aaron Jensen
2017-04-21 17:31         ` Eli Zaretskii
2017-04-21 18:01           ` Aaron Jensen
2017-04-21 18:32             ` Andreas Schwab
2017-04-22 14:40               ` Aaron Jensen
2017-04-22 14:50                 ` Eli Zaretskii
2017-04-22 15:11                   ` Aaron Jensen
2017-04-21 18:47             ` Eli Zaretskii
2017-04-21 19:04               ` Aaron Jensen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHyO48wQaHQ=zHybvnfgWLaZQuMtULStRAUmDrxqX0ewAOyfcQ@mail.gmail.com' \
    --to=aaronjensen@gmail.com \
    --cc=26586-done@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.