]> git.eshelyaron.com Git - emacs.git/commitdiff
Bind M-G unconditionally in Dired
authorStefan Kangas <stefan@marxist.se>
Sat, 9 Jul 2022 08:21:31 +0000 (10:21 +0200)
committerStefan Kangas <stefan@marxist.se>
Sat, 9 Jul 2022 09:47:52 +0000 (11:47 +0200)
* lisp/dired-x.el: Move dired-goto-subdir binding from here...
* lisp/dired.el (dired-mode-map): ...to here.  (Bug#21981)

* doc/misc/dired-x.texi (Miscellaneous Commands): Move
documentation of above command from here...
* doc/emacs/dired.texi (Subdirectory Motion): ...to here.

doc/emacs/dired.texi
doc/misc/dired-x.texi
etc/NEWS
lisp/dired-x.el
lisp/dired.el

index 69450c82d67160b7b64cfb4ba1b65d028b29ae36..292c986c1c65653759c9a5661278fbfddee7255d 100644 (file)
@@ -1333,6 +1333,12 @@ parent directory.
 @kindex > @r{(Dired)}
 @item >
 Move down to the next directory-file line (@code{dired-next-dirline}).
+
+@findex dired-goto-subdir
+@kindex M-G @r{(Dired)}
+@item M-G
+Prompt for a directory and move to its directory-file line
+(@code{dired-goto-subdir}).
 @end table
 
 @node Hiding Subdirectories
index 0e8f969b299b5c79d10f7d702ab5dbd67d629463..50d9914081cdd8abfb07b21f5bee1f9d429fa534 100644 (file)
@@ -882,15 +882,6 @@ normal and a wildcard buffer for the same directory, @kbd{C-x d @key{RET}}
 will toggle between those two.
 @end table
 
-@table @kbd
-@findex dired-goto-subdir
-@kindex M-G
-@item M-G
-(@code{dired-goto-subdir}) Go to the header line of an inserted directory.
-This command reads its argument, with completion derived from the names of the
-inserted subdirectories.
-@end table
-
 @table @code
 
 @item dired-vm
index 8c9a05775f2a77ef1662bec8c596c9af8d907577..ef6e7216e24fa11b3738d3e16e6a689b00f0211a 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1065,6 +1065,11 @@ The corresponding key "Y" is now bound by default in Dired.
 *** 'dired-do-relsymlink-regexp' moved from dired-x to dired.
 The corresponding key "% Y" is now bound by default in Dired.
 
+---
+*** 'M-G' is now bound to 'dired-goto-subdir'.
+Before, that binding was only available if the 'dired-x' package was
+loaded.
+
 +++
 *** 'dired-info' and 'dired-man' moved from dired-x to dired.
 The 'dired-info' and 'dired-man' commands have been moved from the
index 4d66ab6f12800d186b3e49f27caf2e6fac576f75..9edf837481543313fc9495c416443d24f9cab2f0 100644 (file)
@@ -236,7 +236,6 @@ to nil: a pipe using `zcat' or `gunzip -c' will be used."
 (define-key dired-mode-map "\C-x\M-o" 'dired-omit-mode)
 (define-key dired-mode-map "\M-(" 'dired-mark-sexp)
 (define-key dired-mode-map "\M-!" 'dired-smart-shell-command)
-(define-key dired-mode-map "\M-G" 'dired-goto-subdir)
 (define-key dired-mode-map "F" 'dired-do-find-marked-files)
 (define-key dired-mode-map "V" 'dired-do-run-mail)
 
index bdcfc36a0e0f668cc724edfe6c5a4af565da5170..b9ab2a9b1e63af6e22644cf505580615f6febca9 100644 (file)
@@ -2174,6 +2174,7 @@ Do so according to the former subdir alist OLD-SUBDIR-ALIST."
   "S-SPC"   #'dired-previous-line
   "<remap> <next-line>"        #'dired-next-line
   "<remap> <previous-line>"    #'dired-previous-line
+  "M-G"    #'dired-goto-subdir
   ;; hiding
   "$"       #'dired-hide-subdir
   "M-$"     #'dired-hide-all