Clean up code-at-point functions
commit8cc6e00f9df400b40c3945189e4b44fcce7caae2
authorJason Blevins <jrblevin@sdf.org>
Thu, 11 May 2017 01:56:17 +0000 (10 21:56 -0400)
committerJason Blevins <jrblevin@sdf.org>
Thu, 11 May 2017 01:56:17 +0000 (10 21:56 -0400)
treec358e295cce3beb630c9d7f3017e1d97dbdc857e
parent7d8f78bc1fe51aa3085fb89088d0148dd0cc95d6
Clean up code-at-point functions

- Predicate functions shouldn't modify match data, so use
  `save-match-data`. Update tests to check that match-data is not
  modified.
- Renamed `markdown-code-at-point-p` to
  `markdown-inline-code-at-point-p` for clarity. Marked
  `markdown-code-at-point-p` as obsolete.
- markdown-inline-code-at-point should not be interactive.
markdown-mode.el
tests/markdown-test.el