TobiasZawada / md-outline-list

0 stars 0 forks source link

invalid regular expression #1

Open wuqui opened 1 year ago

wuqui commented 1 year ago

I get the following error in markdown files if I activate your package:

(jit-lock--run-functions 1 507) [UNPR HOST 2023-01-20.md]: Invalid regexp: "Invalid regular expression"

Any idea what might be causing this and how to fix it?

TobiasZawada commented 1 year ago

The only two regexps md-outline-list-mode relies on are markdown-regex-header and markdown-regex-list.
Wrong setting of one of those would cause a jit-lock error.

If this does not help to find the cause of the error I need a minimal example.

The minimal example should start with emacs -Q, loading markdown-mode and md-outline-list and opening a small example Markdown file causing the jit-lock error.

I also need the version numbers of Emacs and markdown-mode.

ericliou commented 11 months ago

I encountered the same error

Error during redisplay: (jit-lock-function 1) signaled (invalid-regexp "Invalid regular expression")

Minimal init.el used

(add-to-list 'load-path "/tmp/packages")
(require 'md-outline-list)

minimal markdown file used:

# this is a header

* this is a bullet
    * child bullet

Emacs version 28.2.50, started with emacs -Q --load init.el. Pulled both packages, markdown-mode and md-outline-list, from HEAD.

TobiasZawada commented 7 months ago

@ericliou Sorry for the late answer. I will look at it as soon as I have some spare time.

TobiasZawada commented 6 months ago

I just tried @ericliou 's example with

@wuqui & @ericliou: I could not reproduce the error. Could you give me your Emacs and markdown-mode version?