;;; 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.
obarray
(lambda (sym)
(or (user-variable-p sym)
+ (get sym 'safe-local-variable)
(memq sym '(mode eval coding unibyte))))
nil nil nil default nil))
(and (stringp variable) (intern variable))))
(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.
this file in the current directory.
If OP is `delete' then delete all existing settings of VARIABLE
-from the the MODE alist ignoring the input argument VALUE."
+from the MODE alist ignoring the input argument VALUE."
(catch 'exit
(unless enable-local-variables
(throw 'exit (message "Directory-local variables are disabled")))
;;;###autoload
(defun copy-dir-locals-to-file-locals-prop-line ()
- "Copy directory-local variables to the the -*- line."
+ "Copy directory-local variables to the -*- line."
(interactive)
(dolist (elt dir-local-variables-alist)
(add-file-local-variable-prop-line (car elt) (cdr elt))))
\f
(provide 'files-x)
+
+;; arch-tag: 949d263c-30a8-4b49-af26-cda97c7c5477
;;; files-x.el ends here