]> git.eshelyaron.com Git - emacs.git/commit
Further improve electric quote support for Markdown (Bug#24709)
authorPhilipp Stephani <phst@google.com>
Sun, 2 Jul 2017 16:14:21 +0000 (18:14 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 9 Jul 2017 19:55:31 +0000 (21:55 +0200)
commitbb2ea81bc569bdc51e1c9af1c503a22fb95e4384
tree6daac769532574d017f24fe386d23f136072bd56
parent633db417fc3e905b28b017facdf596b36914b44d
Further improve electric quote support for Markdown (Bug#24709)

Markdown sets both 'comment-start' and 'comment-use-syntax' to non-nil
values.  Therefore 'electric-quote-mode' recognized it as a
programming mode.  Fix this by first checking whether the current
major mode is derived from 'text-mode'.

* lisp/electric.el (electric-quote-post-self-insert-function): Treat
'text-mode' as stronger signal than comment syntax.

* test/lisp/electric-tests.el (electric-quote-markdown-in-text)
(electric-quote-markdown-in-code): Adapt unit tests.
lisp/electric.el
test/lisp/electric-tests.el