branch: elpa/multiple-cursors
commit bc8af45bfec3128a857933f454e94ed9bd0c3ef5
Author: Magnar Sveen <[email protected]>
Commit: Magnar Sveen <[email protected]>

    Use derived-mode-p to check for sgml-mode-ishness.
---
 mc-mark-more.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mc-mark-more.el b/mc-mark-more.el
index 44b7d80..6dffeb5 100644
--- a/mc-mark-more.el
+++ b/mc-mark-more.el
@@ -335,7 +335,7 @@ With prefix, it behaves the same as original 
`mc/mark-all-like-this'"
 
 (defun mc--no-region-and-in-sgmlish-mode ()
   (and (not (use-region-p))
-       (memq major-mode '(sgml-mode html-mode))))
+       (derived-mode-p 'sgml-mode)))
 
 (defun mc--in-defun ()
   (bounds-of-thing-at-point 'defun))

Reply via email to