rougier / nano-modeline

GNU Emacs / N Λ N O Modeline
GNU General Public License v3.0
170 stars 29 forks source link

nano-modeline-mu4e-message-mode blocking opening mu4e message #75

Closed rytswd closed 5 months ago

rytswd commented 6 months ago

It seems message cannot be opened up correctly when missing :name in the TO or FROM field.

error in process filter: nano-modeline-mu4e-message-to: Wrong type argument: char-or-string-p, nil
error in process filter: Wrong type argument: char-or-string-p, nil

I tried to add some safety check for capitalize and downcase function, namely for:

And with that, I could see the modeline correctly handled, and opening up the message. It may also be worth making it safe for when (mu4e-personal-addresses) returns nil.

rougier commented 5 months ago

Thanks for the report. I've just pushed a commit that might solve the problem.

rytswd commented 5 months ago

Thank you for the quick fix @rougier, I could confirm it's working correctly for me now!