kazu-yamamoto / Mew

Messaging in the Emacs World
http://www.mew.org/
Other
190 stars 51 forks source link

Prevent void function mew-match-string #181

Closed tats closed 1 year ago

tats commented 1 year ago

Fix https://github.com/kazu-yamamoto/Mew/issues/180

kazu-yamamoto commented 1 year ago

I don't understand why this fixes the issue. mew-match-string is used in other places of mew-func.el. Why don't they harm?

tats commented 1 year ago

In other places of mew-func.el, mew-match-string is used in the functions. So, loading mew-func.el and then mew-env.el succeeded.

The problem is caused when mew-match-string is used at top-level of mew-func.el.

Adding (require 'mew-env) to mew-func.el causes an infinite loop. I didn't fight against the dependency hell, just avoided the problem.

kazu-yamamoto commented 1 year ago

I understand. Merged. Thanks.