From: Lars Ingebrigtsen Date: Sat, 13 Jul 2019 02:58:27 +0000 (+0200) Subject: Allow using wdired in all dired-derived modes X-Git-Tag: emacs-27.0.90~1973 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=66620c46f022c65751f3808a8e486f508328daf3;p=emacs.git Allow using wdired in all dired-derived modes * lisp/wdired.el (wdired-change-to-wdired-mode): Allow using in dired derived modes (bug#32392). Suggested by James Nguyen. --- diff --git a/lisp/wdired.el b/lisp/wdired.el index b52da777533..0ccaaaca74b 100644 --- a/lisp/wdired.el +++ b/lisp/wdired.el @@ -240,7 +240,7 @@ directories to reflect your edits. See `wdired-mode'." (interactive) - (unless (eq major-mode 'dired-mode) + (unless (derived-mode-p 'dired-mode) (error "Not a Dired buffer")) (set (make-local-variable 'wdired-old-content) (buffer-substring (point-min) (point-max)))