emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 253929f 1/2: * lisp/dired-x.el (dired-omit-here-a


From: Glenn Morris
Subject: [Emacs-diffs] emacs-25 253929f 1/2: * lisp/dired-x.el (dired-omit-here-always): Replace undefined function
Date: Wed, 16 Mar 2016 21:38:57 +0000

branch: emacs-25
commit 253929fee3c990703f26fc76ccb9ea8b56881772
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    * lisp/dired-x.el (dired-omit-here-always): Replace undefined function
    removed 2016-01-30.
    
    ; Do not merge to master.
---
 lisp/dired-x.el |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index dccaa9e..84de13d 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]