]> code.delx.au - gnu-emacs/commitdiff
* lisp/dired-x.el (dired-omit-here-always): Replace undefined function
authorGlenn Morris <rgm@gnu.org>
Wed, 16 Mar 2016 21:36:57 +0000 (17:36 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 16 Mar 2016 21:36:57 +0000 (17:36 -0400)
removed 2016-01-30.

; Do not merge to master.

lisp/dired-x.el

index dccaa9e96ca0d6ceea92bcd1df3b3540a77f4e86..84de13d7ef9ba7328e11c46fa544c27fc7cc11e8 100644 (file)
@@ -819,9 +819,8 @@ If in a Dired buffer, reverts it."
 replace it with a dir-locals-file `./%s.el'"
              dired-local-variables-file
              dir-locals-file))
-  (if (dir-locals--all-files default-directory)
-      (message "File `./%s' already exists."
-               (car (dir-locals--all-files default-directory)))
+  (if (file-exists-p dir-locals-file)
+      (message "File `./%s' already exists." dir-locals-file)
     (add-dir-local-variable 'dired-mode 'subdirs nil)
     (add-dir-local-variable 'dired-mode 'dired-omit-mode t)
     ;; Run extra-hooks and revert directory.