emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/multiple-cursors bc8af45 186/434: Use derived-mode-p to ch


From: ELPA Syncer
Subject: [nongnu] elpa/multiple-cursors bc8af45 186/434: Use derived-mode-p to check for sgml-mode-ishness.
Date: Sat, 7 Aug 2021 09:20:22 -0400 (EDT)

branch: elpa/multiple-cursors
commit bc8af45bfec3128a857933f454e94ed9bd0c3ef5
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]