In standard LaTeX (i.e., with, say, cmr fonts etc) a "---" is replaced by an emdash. I believe this is treated as a ligature. Is it possible to make a "---", in effect, generate the contents of the following macro?
\def\mdash{\unskip\kern.16667em\textemdash\penalty\exhyphenpenalty\hskip.16667em\relax}
(See comment on Dashes: - vs. – vs. —).
Update:
I'd like to clarify what I'm trying to achieve. Suppose I have several document that are sharing a "company style file" (or a company class file). This allows documents that use semantic markup to be made to look consistent. For example the meaning of \emph can be made to mean italics or (shudder) underlining. What if I wanted to consistently make emdashes (entered as ---) look like \mdash (i.e., adhere to that spacing). Aside from editing all the files and replacing --- with \mdash is there a .sty-based solution?

-active and then make two--and three---expand to required macros (fairly easy) and then make everything else not break lengths, (\hspace{-3pt}), math$1-2$, hyphenationhypenation{foo-bar}this is as hard as you want to make it, depending on how many packages you want to keep working – David Carlisle Oct 17 '16 at 21:13—(U+2014), it's easier to make it into a command that does what you need. – egreg Oct 17 '16 at 21:28