Subject: Re: bug#20891: emacs: Back off if .doc is not an Office document

From: Eli Zaretskii <[email-masked]>
Date: Thu, 14 Nov 2019 18:19:43 +0200

> From: Robert Pluim <[email-masked]>
> Cc: Lars Ingebrigtsen <[email-masked]>,  [email-masked],
>   [email-masked],  [email-masked]
> Date: Thu, 14 Nov 2019 16:06:36 +0100
> 
> Today we go: ".doc extension -> show an image of the contents of the
> file"

Where do we have the code or data which does that?

> which is manifestly the wrong thing to do for a non-doc file. If
> we do the signature recognition, those files which are not recognized
> end up in (probably) fundamental-mode

That's OK, but I'm still missing the code which makes this happen.
E.g., I just did "C-x C-f foo.doc RET" and got a buffer in Fundamental
mode.