bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20806: 25.0.50; `string-match' is confused???


From: Michael Heerdegen
Subject: bug#20806: 25.0.50; `string-match' is confused???
Date: Sun, 14 Jun 2015 00:58:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com> writes:

> Debugger entered--Lisp error: (error "Regexp cannot match an empty
> string")
>   signal(error ("Regexp cannot match an empty string"))
>   error("Regexp cannot match an empty string")
>  [...]
>   command-execute(highlight-regexp)

AFAICT, you got this error because you entered an regexp to the
`highlight-regexp' prompt that the empty string is matched by.  Such a
regexp is rejected by hi-lock.  With other words, the error is raised by
intent in hi-lock.el.

I guess, theoretically this rejected case could be made working, but the
code would get a bit uglier and less effective then, and is easy to
avoid.

What's your use case?


Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]