From: Tino Calancha <f92capac@gmail.com>
To: 23017@debbugs.gnu.org
Subject: bug#23017: 25.0.92; Dired: prevent to kill top level directory
Date: Tue, 15 Mar 2016 13:04:49 +0900 (JST) [thread overview]
Message-ID: <alpine.LRH.2.20.1603151300050.6722@calancha-ilc.kek.jp> (raw)
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
Good (or morning afternoon evening night)
;; Following code kills the top level directory:
emacs -Q ~
M-x dired-kill-subdir
In GNU Emacs 25.0.92.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.29)
of 2016-03-15 built on calancha-pc
Repository revision: dbfbedd3d0f3afcfb811eae0e1a7b1c33fb27735
[-- Attachment #2: Type: text/plain, Size: 515 bytes --]
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index d29abf3..ac0b1a3 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -2486,7 +2486,7 @@ dired-kill-subdir
(cur-dir (dired-current-directory))
(cons (assoc-string cur-dir dired-switches-alist))
buffer-read-only)
- (if (equal cur-dir default-directory)
+ (if (equal cur-dir (expand-file-name default-directory))
(error "Attempt to kill top level directory"))
(prog1
(if remember-marks (dired-remember-marks beg end))
next reply other threads:[~2016-03-15 4:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-15 4:04 Tino Calancha [this message]
2016-04-24 15:06 ` bug#23017: 25.0.92; Dired: prevent to kill top level directory Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LRH.2.20.1603151300050.6722@calancha-ilc.kek.jp \
--to=f92capac@gmail.com \
--cc=23017@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.