Hi, Nicolas,
> The new regexps still don't look right, as they can match an additional
> dash:
>
> (string-match "---\\([^-]?\\)" "----") => 0
>
> I'm not sure about the intent of this regexp, that is whether
> consecutive mdashes or ndashes are allowed or not.
>
> A correct version could be either:
>
> ("---" . "—")
>
> or
>
> ("\\([^-]\\|^\\)---\\([^-]\\|$\\)" . "\\1—\\2")
>
> I think the former is on par with LaTeX behaviour.
Good point, and I don't see any problem with your first version,
though I don't understand the intent behind the original regexp,
either. I had assumed the point was to avoid matching horizontal
separator lines in tables, but that doesn't seem to be an issue.
Thanks,
Thomas