On M3 to early M4-Ps (recessed windows) the framelines are adjusted to 1m min. focus.
On later M4-Ps, M6, and forward, framelines are adjusted to .7m min. focus. The longer the lens, the more change in frame coverage there is, when going from close focus to infinity. There is an additional frame "buffer" for shooting slides.
I had and used several 40s. I also had my share of over-cropped 40 pictures. I stopped using 40mm due to frameline in-accuracy. The M 35mm lines are actually surprisingly accurate, given their definition (see above). I would pick a 35/2.5 Color Skopar over 40mm Rokkor or Summicron any-time for that reason. IQ-wise a better lens, anyways, both wrt resolution and bokeh.
Roland.