summaryrefslogtreecommitdiff
path: root/lisp/files-x.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2009-10-13 22:35:44 +0000
committerJuri Linkov <juri@jurta.org>2009-10-13 22:35:44 +0000
commit04e0f59b54648b0319b3a6c00502a3cb3c21f841 (patch)
tree92c3eb0076a34831ea5ac4c4a6292d2d30745efa /lisp/files-x.el
parentc5959062a2190a09d0559e050c0335a22a866422 (diff)
downloademacs-04e0f59b54648b0319b3a6c00502a3cb3c21f841.tar.gz
emacs-04e0f59b54648b0319b3a6c00502a3cb3c21f841.tar.bz2
emacs-04e0f59b54648b0319b3a6c00502a3cb3c21f841.zip
(read-file-local-variable-value): Don't filter out
minor modes from mode name completion (bug#4664).
Diffstat (limited to 'lisp/files-x.el')
-rw-r--r--lisp/files-x.el3
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))))