summaryrefslogtreecommitdiff
path: root/src/emacs-module.c
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2017-07-02 18:14:21 +0200
committerPhilipp Stephani <phst@google.com>2017-07-09 21:55:31 +0200
commitbb2ea81bc569bdc51e1c9af1c503a22fb95e4384 (patch)
tree6daac769532574d017f24fe386d23f136072bd56 /src/emacs-module.c
parent633db417fc3e905b28b017facdf596b36914b44d (diff)
downloademacs-bb2ea81bc569bdc51e1c9af1c503a22fb95e4384.tar.gz
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.
Diffstat (limited to 'src/emacs-module.c')
0 files changed, 0 insertions, 0 deletions