fix M-. on "function FOO"

Emacs passes "function " as the locative. Trim it.
fix autolinking vs newlines

In some cases, when the locative or the symbol appeared as the first
or last word on a line like this:

    See compiler-macro
    FOO

or

    See FOO
    compiler-macro
fix comment
change link target to work around github markdown issue

Github chokes on #\:,#\. and #\_ in reference link targets. Use #\-
instead to make links work.

Also for the sake of github use `name` instead of `id` in the anchor.