rnkn / fountain-mode

Emacs major mode for screenwriting in Fountain plain-text markup
https://fountain-mode.org
GNU General Public License v3.0
391 stars 16 forks source link

Script notes breaking imenu lists #108

Closed SimonGZ closed 4 years ago

SimonGZ commented 4 years ago

After a recent update, imenu/imenu-list stopped working for me with the following message:

imenu-list: couldn’t create index because of error: (wrong-type-argument integer-or-marker-p nil)

I started fiddling with various projects and finally nailed down that the problem is script notes. Basically any script note (text between "[[" and "]]") breaks imenu. I presume this has something to do with a change to the regex or something else.

Thanks again for the continued awesome work and updates on fountain-mode.

rnkn commented 4 years ago

Thanks for this. Yep it was just a regexp group change.

SimonGZ commented 4 years ago

That fixed it! Thanks.