all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#23017: 25.0.92; Dired: prevent to kill top level directory
@ 2016-03-15  4:04 Tino Calancha
  2016-04-24 15:06 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Tino Calancha @ 2016-03-15  4:04 UTC (permalink / raw)
  To: 23017

[-- 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))

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#23017: 25.0.92; Dired: prevent to kill top level directory
  2016-03-15  4:04 bug#23017: 25.0.92; Dired: prevent to kill top level directory Tino Calancha
@ 2016-04-24 15:06 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2016-04-24 15:06 UTC (permalink / raw)
  To: Tino Calancha; +Cc: 23017

Tino Calancha <f92capac@gmail.com> writes:

> Good (or morning afternoon evening night)
>
> ;; Following code kills the top level directory:
> emacs -Q ~
> M-x dired-kill-subdir

Thanks; applied.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-24 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-15  4:04 bug#23017: 25.0.92; Dired: prevent to kill top level directory Tino Calancha
2016-04-24 15:06 ` Lars Magne Ingebrigtsen

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.