[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 0cd2e92: Don't kill ~/ if it's the top level dire
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] emacs-25 0cd2e92: Don't kill ~/ if it's the top level directory |
Date: |
Sun, 24 Apr 2016 15:09:23 +0000 |
branch: emacs-25
commit 0cd2e923dba8d8c7128b0c084ce6af22069e8db5
Author: Tino Calancha <address@hidden>
Commit: Lars Magne Ingebrigtsen <address@hidden>
Don't kill ~/ if it's the top level directory
* lisp/dired-aux.el (dired-kill-subdir): Don't kill ~/ if it's
the top level directory (bug#23017).
---
lisp/dired-aux.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index d29abf3..08db187 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -2486,8 +2486,8 @@ Lower levels are unaffected."
(cur-dir (dired-current-directory))
(cons (assoc-string cur-dir dired-switches-alist))
buffer-read-only)
- (if (equal cur-dir default-directory)
- (error "Attempt to kill top level directory"))
+ (when (equal cur-dir (expand-file-name default-directory))
+ (error "Attempt to kill top level directory"))
(prog1
(if remember-marks (dired-remember-marks beg end))
(delete-region beg end)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 0cd2e92: Don't kill ~/ if it's the top level directory,
Lars Ingebrigtsen <=