Back in 2012 I used an EOS M for a while, with the great 22mm pancake lens. That little camera had at the time a great touch screen interface, and was actually very nice for travel. Plus, it was built like a tank. Today, several cameras don't yet have a touch screen, or if they have, the implementation is poor.
Slowly, as it is typical from Canon, the series seems to be evolving; the other day I handled the EOS M3, ergonomics have improved relative to the M, and the thing is still built like a tank. Feels like a small brick, in a good way, feels reliable. In between the M and the M3, a few lenses have been introduced. Canon always marketed this little system as a backup to their DSLRs, they never tried to compete against Sony or Fuji in MILC segment.
It is only logical that the new M5 adds EVF to the M3-body, plus the improved AF system seen on the EOS 80D. For those that want a small APSC MILC system for travelling or general hobbyist photography, the EOS M system is actually quite good.