;;; files-x.el --- extended file handling commands
-;; Copyright (C) 2009 Free Software Foundation, Inc.
+;; Copyright (C) 2009, 2010 Free Software Foundation, Inc.
;; Author: Juri Linkov <juri@jurta.org>
;; Maintainer: FSF
;; Keywords: files
+;; Package: emacs
;; This file is part of GNU Emacs.
(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))))
nil 'set-variable-value-history
(format "%S"
(cond ((eq variable 'unibyte) t)
- (t (symbol-value variable))))))))))
+ ((boundp variable)
+ (symbol-value variable))))))))))
(defun read-file-local-variable-mode ()
"Read per-directory file-local variable's mode using completion.