]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow using wdired in all dired-derived modes
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 13 Jul 2019 02:58:27 +0000 (04:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 13 Jul 2019 02:58:27 +0000 (04:58 +0200)
* lisp/wdired.el (wdired-change-to-wdired-mode): Allow using in
dired derived modes (bug#32392).  Suggested by James Nguyen.

lisp/wdired.el

index b52da777533308da22c0082ede259f61cc4200ca..0ccaaaca74bf44d43f7c1e16e70486a6a95d044f 100644 (file)
@@ -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)))