diff options
Diffstat (limited to 'lisp/files-x.el')
-rw-r--r-- | lisp/files-x.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/files-x.el b/lisp/files-x.el index 8261df18b51..19d77e9823d 100644 --- a/lisp/files-x.el +++ b/lisp/files-x.el @@ -69,8 +69,7 @@ Intended to be used in the `interactive' spec of (format "Add %s with value: " variable)) obarray (lambda (sym) - (and (string-match-p "-mode\\'" (symbol-name sym)) - (not (string-match-p "-minor-mode\\'" (symbol-name sym))))) + (string-match-p "-mode\\'" (symbol-name sym))) nil nil nil default nil)) (and (stringp value) (intern (replace-regexp-in-string "-mode\\'" "" value)))) |