diff options
| -rw-r--r-- | lisp/Makefile.in | 3 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 2 | ||||
| -rw-r--r-- | lisp/dired-x.el | 2 | ||||
| -rw-r--r-- | lisp/dired.el | 556 | ||||
| -rw-r--r-- | test/lisp/dired-tests.el | 35 |
5 files changed, 40 insertions, 558 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 3ac68cfd825..164df255585 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -93,7 +93,8 @@ AUTOGENEL = loaddefs.el \ | |||
| 93 | mail/rmail-loaddefs.el \ | 93 | mail/rmail-loaddefs.el \ |
| 94 | ibuffer-loaddefs.el \ | 94 | ibuffer-loaddefs.el \ |
| 95 | htmlfontify-loaddefs \ | 95 | htmlfontify-loaddefs \ |
| 96 | emacs-lisp/eieio-loaddefs.el | 96 | emacs-lisp/eieio-loaddefs.el \ |
| 97 | dired-loaddefs.el | ||
| 97 | 98 | ||
| 98 | # Set load-prefer-newer for the benefit of the non-bootstrappers. | 99 | # Set load-prefer-newer for the benefit of the non-bootstrappers. |
| 99 | BYTE_COMPILE_FLAGS = \ | 100 | BYTE_COMPILE_FLAGS = \ |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 9f115140527..c0d1a908ba2 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -2736,7 +2736,7 @@ instead." | |||
| 2736 | 2736 | ||
| 2737 | ;; Local Variables: | 2737 | ;; Local Variables: |
| 2738 | ;; byte-compile-dynamic: t | 2738 | ;; byte-compile-dynamic: t |
| 2739 | ;; generated-autoload-file: "dired.el" | 2739 | ;; generated-autoload-file: "dired-loaddefs.el" |
| 2740 | ;; End: | 2740 | ;; End: |
| 2741 | 2741 | ||
| 2742 | ;;; dired-aux.el ends here | 2742 | ;;; dired-aux.el ends here |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index b6704bb34fd..750e89d0ffc 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -1669,7 +1669,7 @@ If `current-prefix-arg' is non-nil, uses name at point as guess." | |||
| 1669 | 1669 | ||
| 1670 | ;; Local Variables: | 1670 | ;; Local Variables: |
| 1671 | ;; byte-compile-dynamic: t | 1671 | ;; byte-compile-dynamic: t |
| 1672 | ;; generated-autoload-file: "dired.el" | 1672 | ;; generated-autoload-file: "dired-loaddefs.el" |
| 1673 | ;; End: | 1673 | ;; End: |
| 1674 | 1674 | ||
| 1675 | ;;; dired-x.el ends here | 1675 | ;;; dired-x.el ends here |
diff --git a/lisp/dired.el b/lisp/dired.el index 9ec39af21ae..a821df18d71 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -33,6 +33,7 @@ | |||
| 33 | ;; Finished up by rms in 1992. | 33 | ;; Finished up by rms in 1992. |
| 34 | 34 | ||
| 35 | ;;; Code: | 35 | ;;; Code: |
| 36 | (require 'dired-loaddefs) | ||
| 36 | 37 | ||
| 37 | (declare-function dired-buffer-more-recently-used-p | 38 | (declare-function dired-buffer-more-recently-used-p |
| 38 | "dired-x" (buffer1 buffer2)) | 39 | "dired-x" (buffer1 buffer2)) |
| @@ -3900,561 +3901,6 @@ Ask means pop up a menu for the user to select one of copy, move or link." | |||
| 3900 | (add-to-list 'desktop-buffer-mode-handlers | 3901 | (add-to-list 'desktop-buffer-mode-handlers |
| 3901 | '(dired-mode . dired-restore-desktop-buffer)) | 3902 | '(dired-mode . dired-restore-desktop-buffer)) |
| 3902 | 3903 | ||
| 3903 | |||
| 3904 | ;;; Start of automatically extracted autoloads. | ||
| 3905 | |||
| 3906 | ;;;### (autoloads nil "dired-aux" "dired-aux.el" "29842a53d6651f8f535ec8e02d20d7cc") | ||
| 3907 | ;;; Generated autoloads from dired-aux.el | ||
| 3908 | |||
| 3909 | (autoload 'dired-diff "dired-aux" "\ | ||
| 3910 | Compare file at point with file FILE using `diff'. | ||
| 3911 | If called interactively, prompt for FILE. If the file at point | ||
| 3912 | has a backup file, use that as the default. If the file at point | ||
| 3913 | is a backup file, use its original. If the mark is active | ||
| 3914 | in Transient Mark mode, use the file at the mark as the default. | ||
| 3915 | \(That's the mark set by \\[set-mark-command], not by Dired's | ||
| 3916 | \\[dired-mark] command.) | ||
| 3917 | |||
| 3918 | FILE is the first file given to `diff'. The file at point | ||
| 3919 | is the second file given to `diff'. | ||
| 3920 | |||
| 3921 | With prefix arg, prompt for second argument SWITCHES, which is | ||
| 3922 | the string of command switches for the third argument of `diff'. | ||
| 3923 | |||
| 3924 | \(fn FILE &optional SWITCHES)" t nil) | ||
| 3925 | |||
| 3926 | (autoload 'dired-backup-diff "dired-aux" "\ | ||
| 3927 | Diff this file with its backup file or vice versa. | ||
| 3928 | Uses the latest backup, if there are several numerical backups. | ||
| 3929 | If this file is a backup, diff it with its original. | ||
| 3930 | The backup file is the first file given to `diff'. | ||
| 3931 | With prefix arg, prompt for argument SWITCHES which is options for `diff'. | ||
| 3932 | |||
| 3933 | \(fn &optional SWITCHES)" t nil) | ||
| 3934 | |||
| 3935 | (autoload 'dired-compare-directories "dired-aux" "\ | ||
| 3936 | Mark files with different file attributes in two dired buffers. | ||
| 3937 | Compare file attributes of files in the current directory | ||
| 3938 | with file attributes in directory DIR2 using PREDICATE on pairs of files | ||
| 3939 | with the same name. Mark files for which PREDICATE returns non-nil. | ||
| 3940 | Mark files with different names if PREDICATE is nil (or interactively | ||
| 3941 | with empty input at the predicate prompt). | ||
| 3942 | |||
| 3943 | PREDICATE is a Lisp expression that can refer to the following variables: | ||
| 3944 | |||
| 3945 | size1, size2 - file size in bytes | ||
| 3946 | mtime1, mtime2 - last modification time in seconds, as a float | ||
| 3947 | fa1, fa2 - list of file attributes | ||
| 3948 | returned by function `file-attributes' | ||
| 3949 | |||
| 3950 | where 1 refers to attribute of file in the current dired buffer | ||
| 3951 | and 2 to attribute of file in second dired buffer. | ||
| 3952 | |||
| 3953 | Examples of PREDICATE: | ||
| 3954 | |||
| 3955 | (> mtime1 mtime2) - mark newer files | ||
| 3956 | (not (= size1 size2)) - mark files with different sizes | ||
| 3957 | (not (string= (nth 8 fa1) (nth 8 fa2))) - mark files with different modes | ||
| 3958 | (not (and (= (nth 2 fa1) (nth 2 fa2)) - mark files with different UID | ||
| 3959 | (= (nth 3 fa1) (nth 3 fa2)))) and GID. | ||
| 3960 | |||
| 3961 | \(fn DIR2 PREDICATE)" t nil) | ||
| 3962 | |||
| 3963 | (autoload 'dired-do-chmod "dired-aux" "\ | ||
| 3964 | Change the mode of the marked (or next ARG) files. | ||
| 3965 | Symbolic modes like `g+w' are allowed. | ||
| 3966 | Type M-n to pull the file attributes of the file at point | ||
| 3967 | into the minibuffer. | ||
| 3968 | |||
| 3969 | \(fn &optional ARG)" t nil) | ||
| 3970 | |||
| 3971 | (autoload 'dired-do-chgrp "dired-aux" "\ | ||
| 3972 | Change the group of the marked (or next ARG) files. | ||
| 3973 | Type M-n to pull the file attributes of the file at point | ||
| 3974 | into the minibuffer. | ||
| 3975 | |||
| 3976 | \(fn &optional ARG)" t nil) | ||
| 3977 | |||
| 3978 | (autoload 'dired-do-chown "dired-aux" "\ | ||
| 3979 | Change the owner of the marked (or next ARG) files. | ||
| 3980 | Type M-n to pull the file attributes of the file at point | ||
| 3981 | into the minibuffer. | ||
| 3982 | |||
| 3983 | \(fn &optional ARG)" t nil) | ||
| 3984 | |||
| 3985 | (autoload 'dired-do-touch "dired-aux" "\ | ||
| 3986 | Change the timestamp of the marked (or next ARG) files. | ||
| 3987 | This calls touch. | ||
| 3988 | Type M-n to pull the file attributes of the file at point | ||
| 3989 | into the minibuffer. | ||
| 3990 | |||
| 3991 | \(fn &optional ARG)" t nil) | ||
| 3992 | |||
| 3993 | (autoload 'dired-do-print "dired-aux" "\ | ||
| 3994 | Print the marked (or next ARG) files. | ||
| 3995 | Uses the shell command coming from variables `lpr-command' and | ||
| 3996 | `lpr-switches' as default. | ||
| 3997 | |||
| 3998 | \(fn &optional ARG)" t nil) | ||
| 3999 | |||
| 4000 | (autoload 'dired-clean-directory "dired-aux" "\ | ||
| 4001 | Flag numerical backups for deletion. | ||
| 4002 | Spares `dired-kept-versions' latest versions, and `kept-old-versions' oldest. | ||
| 4003 | Positive prefix arg KEEP overrides `dired-kept-versions'; | ||
| 4004 | Negative prefix arg KEEP overrides `kept-old-versions' with KEEP made positive. | ||
| 4005 | |||
| 4006 | To clear the flags on these files, you can use \\[dired-flag-backup-files] | ||
| 4007 | with a prefix argument. | ||
| 4008 | |||
| 4009 | \(fn KEEP)" t nil) | ||
| 4010 | |||
| 4011 | (autoload 'dired-do-async-shell-command "dired-aux" "\ | ||
| 4012 | Run a shell command COMMAND on the marked files asynchronously. | ||
| 4013 | |||
| 4014 | Like `dired-do-shell-command', but adds `&' at the end of COMMAND | ||
| 4015 | to execute it asynchronously. | ||
| 4016 | |||
| 4017 | When operating on multiple files, asynchronous commands | ||
| 4018 | are executed in the background on each file in parallel. | ||
| 4019 | In shell syntax this means separating the individual commands | ||
| 4020 | with `&'. However, when COMMAND ends in `;' or `;&' then commands | ||
| 4021 | are executed in the background on each file sequentially waiting | ||
| 4022 | for each command to terminate before running the next command. | ||
| 4023 | In shell syntax this means separating the individual commands with `;'. | ||
| 4024 | |||
| 4025 | The output appears in the buffer `*Async Shell Command*'. | ||
| 4026 | |||
| 4027 | \(fn COMMAND &optional ARG FILE-LIST)" t nil) | ||
| 4028 | |||
| 4029 | (autoload 'dired-do-shell-command "dired-aux" "\ | ||
| 4030 | Run a shell command COMMAND on the marked files. | ||
| 4031 | If no files are marked or a numeric prefix arg is given, | ||
| 4032 | the next ARG files are used. Just \\[universal-argument] means the current file. | ||
| 4033 | The prompt mentions the file(s) or the marker, as appropriate. | ||
| 4034 | |||
| 4035 | If there is a `*' in COMMAND, surrounded by whitespace, this runs | ||
| 4036 | COMMAND just once with the entire file list substituted there. | ||
| 4037 | |||
| 4038 | If there is no `*', but there is a `?' in COMMAND, surrounded by | ||
| 4039 | whitespace, this runs COMMAND on each file individually with the | ||
| 4040 | file name substituted for `?'. | ||
| 4041 | |||
| 4042 | Otherwise, this runs COMMAND on each file individually with the | ||
| 4043 | file name added at the end of COMMAND (separated by a space). | ||
| 4044 | |||
| 4045 | `*' and `?' when not surrounded by whitespace have no special | ||
| 4046 | significance for `dired-do-shell-command', and are passed through | ||
| 4047 | normally to the shell, but you must confirm first. | ||
| 4048 | |||
| 4049 | If you want to use `*' as a shell wildcard with whitespace around | ||
| 4050 | it, write `*\"\"' in place of just `*'. This is equivalent to just | ||
| 4051 | `*' in the shell, but avoids Dired's special handling. | ||
| 4052 | |||
| 4053 | If COMMAND ends in `&', `;', or `;&', it is executed in the | ||
| 4054 | background asynchronously, and the output appears in the buffer | ||
| 4055 | `*Async Shell Command*'. When operating on multiple files and COMMAND | ||
| 4056 | ends in `&', the shell command is executed on each file in parallel. | ||
| 4057 | However, when COMMAND ends in `;' or `;&' then commands are executed | ||
| 4058 | in the background on each file sequentially waiting for each command | ||
| 4059 | to terminate before running the next command. You can also use | ||
| 4060 | `dired-do-async-shell-command' that automatically adds `&'. | ||
| 4061 | |||
| 4062 | Otherwise, COMMAND is executed synchronously, and the output | ||
| 4063 | appears in the buffer `*Shell Command Output*'. | ||
| 4064 | |||
| 4065 | This feature does not try to redisplay Dired buffers afterward, as | ||
| 4066 | there's no telling what files COMMAND may have changed. | ||
| 4067 | Type \\[dired-do-redisplay] to redisplay the marked files. | ||
| 4068 | |||
| 4069 | When COMMAND runs, its working directory is the top-level directory | ||
| 4070 | of the Dired buffer, so output files usually are created there | ||
| 4071 | instead of in a subdir. | ||
| 4072 | |||
| 4073 | In a noninteractive call (from Lisp code), you must specify | ||
| 4074 | the list of file names explicitly with the FILE-LIST argument, which | ||
| 4075 | can be produced by `dired-get-marked-files', for example. | ||
| 4076 | |||
| 4077 | \(fn COMMAND &optional ARG FILE-LIST)" t nil) | ||
| 4078 | |||
| 4079 | (autoload 'dired-run-shell-command "dired-aux" "\ | ||
| 4080 | |||
| 4081 | |||
| 4082 | \(fn COMMAND)" nil nil) | ||
| 4083 | |||
| 4084 | (autoload 'dired-do-kill-lines "dired-aux" "\ | ||
| 4085 | Kill all marked lines (not the files). | ||
| 4086 | With a prefix argument, kill that many lines starting with the current line. | ||
| 4087 | \(A negative argument kills backward.) | ||
| 4088 | If you use this command with a prefix argument to kill the line | ||
| 4089 | for a file that is a directory, which you have inserted in the | ||
| 4090 | Dired buffer as a subdirectory, then it deletes that subdirectory | ||
| 4091 | from the buffer as well. | ||
| 4092 | To kill an entire subdirectory (without killing its line in the | ||
| 4093 | parent directory), go to its directory header line and use this | ||
| 4094 | command with a prefix argument (the value does not matter). | ||
| 4095 | |||
| 4096 | \(fn &optional ARG FMT)" t nil) | ||
| 4097 | |||
| 4098 | (autoload 'dired-do-compress-to "dired-aux" "\ | ||
| 4099 | Compress selected files and directories to an archive. | ||
| 4100 | You are prompted for the archive name. | ||
| 4101 | The archiving command is chosen based on the archive name extension and | ||
| 4102 | `dired-compress-files-alist'. | ||
| 4103 | |||
| 4104 | \(fn)" t nil) | ||
| 4105 | |||
| 4106 | (autoload 'dired-compress-file "dired-aux" "\ | ||
| 4107 | Compress or uncompress FILE. | ||
| 4108 | Return the name of the compressed or uncompressed file. | ||
| 4109 | Return nil if no change in files. | ||
| 4110 | |||
| 4111 | \(fn FILE)" nil nil) | ||
| 4112 | |||
| 4113 | (autoload 'dired-query "dired-aux" "\ | ||
| 4114 | Format PROMPT with ARGS, query user, and store the result in SYM. | ||
| 4115 | The return value is either nil or t. | ||
| 4116 | |||
| 4117 | The user may type y or SPC to accept once; n or DEL to skip once; | ||
| 4118 | ! to accept this and subsequent queries; or q or ESC to decline | ||
| 4119 | this and subsequent queries. | ||
| 4120 | |||
| 4121 | If SYM is already bound to a non-nil value, this function may | ||
| 4122 | return automatically without querying the user. If SYM is !, | ||
| 4123 | return t; if SYM is q or ESC, return nil. | ||
| 4124 | |||
| 4125 | \(fn SYM PROMPT &rest ARGS)" nil nil) | ||
| 4126 | |||
| 4127 | (autoload 'dired-do-compress "dired-aux" "\ | ||
| 4128 | Compress or uncompress marked (or next ARG) files. | ||
| 4129 | |||
| 4130 | \(fn &optional ARG)" t nil) | ||
| 4131 | |||
| 4132 | (autoload 'dired-do-byte-compile "dired-aux" "\ | ||
| 4133 | Byte compile marked (or next ARG) Emacs Lisp files. | ||
| 4134 | |||
| 4135 | \(fn &optional ARG)" t nil) | ||
| 4136 | |||
| 4137 | (autoload 'dired-do-load "dired-aux" "\ | ||
| 4138 | Load the marked (or next ARG) Emacs Lisp files. | ||
| 4139 | |||
| 4140 | \(fn &optional ARG)" t nil) | ||
| 4141 | |||
| 4142 | (autoload 'dired-do-redisplay "dired-aux" "\ | ||
| 4143 | Redisplay all marked (or next ARG) files. | ||
| 4144 | If on a subdir line, redisplay that subdirectory. In that case, | ||
| 4145 | a prefix arg lets you edit the `ls' switches used for the new listing. | ||
| 4146 | |||
| 4147 | Dired remembers switches specified with a prefix arg, so that reverting | ||
| 4148 | the buffer will not reset them. However, using `dired-undo' to re-insert | ||
| 4149 | or delete subdirectories can bypass this machinery. Hence, you sometimes | ||
| 4150 | may have to reset some subdirectory switches after a `dired-undo'. | ||
| 4151 | You can reset all subdirectory switches to the default using | ||
| 4152 | \\<dired-mode-map>\\[dired-reset-subdir-switches]. | ||
| 4153 | See Info node `(emacs)Subdir switches' for more details. | ||
| 4154 | |||
| 4155 | \(fn &optional ARG TEST-FOR-SUBDIR)" t nil) | ||
| 4156 | |||
| 4157 | (autoload 'dired-add-file "dired-aux" "\ | ||
| 4158 | |||
| 4159 | |||
| 4160 | \(fn FILENAME &optional MARKER-CHAR)" nil nil) | ||
| 4161 | |||
| 4162 | (autoload 'dired-remove-file "dired-aux" "\ | ||
| 4163 | |||
| 4164 | |||
| 4165 | \(fn FILE)" nil nil) | ||
| 4166 | |||
| 4167 | (autoload 'dired-relist-file "dired-aux" "\ | ||
| 4168 | Create or update the line for FILE in all Dired buffers it would belong in. | ||
| 4169 | |||
| 4170 | \(fn FILE)" nil nil) | ||
| 4171 | |||
| 4172 | (autoload 'dired-copy-file "dired-aux" "\ | ||
| 4173 | |||
| 4174 | |||
| 4175 | \(fn FROM TO OK-FLAG)" nil nil) | ||
| 4176 | |||
| 4177 | (autoload 'dired-rename-file "dired-aux" "\ | ||
| 4178 | |||
| 4179 | |||
| 4180 | \(fn FILE NEWNAME OK-IF-ALREADY-EXISTS)" nil nil) | ||
| 4181 | |||
| 4182 | (autoload 'dired-create-directory "dired-aux" "\ | ||
| 4183 | Create a directory called DIRECTORY. | ||
| 4184 | If DIRECTORY already exists, signal an error. | ||
| 4185 | |||
| 4186 | \(fn DIRECTORY)" t nil) | ||
| 4187 | |||
| 4188 | (autoload 'dired-do-copy "dired-aux" "\ | ||
| 4189 | Copy all marked (or next ARG) files, or copy the current file. | ||
| 4190 | When operating on just the current file, prompt for the new name. | ||
| 4191 | |||
| 4192 | When operating on multiple or marked files, prompt for a target | ||
| 4193 | directory, and make the new copies in that directory, with the | ||
| 4194 | same names as the original files. The initial suggestion for the | ||
| 4195 | target directory is the Dired buffer's current directory (or, if | ||
| 4196 | `dired-dwim-target' is non-nil, the current directory of a | ||
| 4197 | neighboring Dired window). | ||
| 4198 | |||
| 4199 | If `dired-copy-preserve-time' is non-nil, this command preserves | ||
| 4200 | the modification time of each old file in the copy, similar to | ||
| 4201 | the \"-p\" option for the \"cp\" shell command. | ||
| 4202 | |||
| 4203 | This command copies symbolic links by creating new ones, similar | ||
| 4204 | to the \"-d\" option for the \"cp\" shell command. | ||
| 4205 | |||
| 4206 | \(fn &optional ARG)" t nil) | ||
| 4207 | |||
| 4208 | (autoload 'dired-do-symlink "dired-aux" "\ | ||
| 4209 | Make symbolic links to current file or all marked (or next ARG) files. | ||
| 4210 | When operating on just the current file, you specify the new name. | ||
| 4211 | When operating on multiple or marked files, you specify a directory | ||
| 4212 | and new symbolic links are made in that directory | ||
| 4213 | with the same names that the files currently have. The default | ||
| 4214 | suggested for the target directory depends on the value of | ||
| 4215 | `dired-dwim-target', which see. | ||
| 4216 | |||
| 4217 | For relative symlinks, use \\[dired-do-relsymlink]. | ||
| 4218 | |||
| 4219 | \(fn &optional ARG)" t nil) | ||
| 4220 | |||
| 4221 | (autoload 'dired-do-hardlink "dired-aux" "\ | ||
| 4222 | Add names (hard links) current file or all marked (or next ARG) files. | ||
| 4223 | When operating on just the current file, you specify the new name. | ||
| 4224 | When operating on multiple or marked files, you specify a directory | ||
| 4225 | and new hard links are made in that directory | ||
| 4226 | with the same names that the files currently have. The default | ||
| 4227 | suggested for the target directory depends on the value of | ||
| 4228 | `dired-dwim-target', which see. | ||
| 4229 | |||
| 4230 | \(fn &optional ARG)" t nil) | ||
| 4231 | |||
| 4232 | (autoload 'dired-do-rename "dired-aux" "\ | ||
| 4233 | Rename current file or all marked (or next ARG) files. | ||
| 4234 | When renaming just the current file, you specify the new name. | ||
| 4235 | When renaming multiple or marked files, you specify a directory. | ||
| 4236 | This command also renames any buffers that are visiting the files. | ||
| 4237 | The default suggested for the target directory depends on the value | ||
| 4238 | of `dired-dwim-target', which see. | ||
| 4239 | |||
| 4240 | \(fn &optional ARG)" t nil) | ||
| 4241 | |||
| 4242 | (autoload 'dired-do-rename-regexp "dired-aux" "\ | ||
| 4243 | Rename selected files whose names match REGEXP to NEWNAME. | ||
| 4244 | |||
| 4245 | With non-zero prefix argument ARG, the command operates on the next ARG | ||
| 4246 | files. Otherwise, it operates on all the marked files, or the current | ||
| 4247 | file if none are marked. | ||
| 4248 | |||
| 4249 | As each match is found, the user must type a character saying | ||
| 4250 | what to do with it. For directions, type \\[help-command] at that time. | ||
| 4251 | NEWNAME may contain \\=\\<n> or \\& as in `query-replace-regexp'. | ||
| 4252 | REGEXP defaults to the last regexp used. | ||
| 4253 | |||
| 4254 | With a zero prefix arg, renaming by regexp affects the absolute file name. | ||
| 4255 | Normally, only the non-directory part of the file name is used and changed. | ||
| 4256 | |||
| 4257 | \(fn REGEXP NEWNAME &optional ARG WHOLE-NAME)" t nil) | ||
| 4258 | |||
| 4259 | (autoload 'dired-do-copy-regexp "dired-aux" "\ | ||
| 4260 | Copy selected files whose names match REGEXP to NEWNAME. | ||
| 4261 | See function `dired-do-rename-regexp' for more info. | ||
| 4262 | |||
| 4263 | \(fn REGEXP NEWNAME &optional ARG WHOLE-NAME)" t nil) | ||
| 4264 | |||
| 4265 | (autoload 'dired-do-hardlink-regexp "dired-aux" "\ | ||
| 4266 | Hardlink selected files whose names match REGEXP to NEWNAME. | ||
| 4267 | See function `dired-do-rename-regexp' for more info. | ||
| 4268 | |||
| 4269 | \(fn REGEXP NEWNAME &optional ARG WHOLE-NAME)" t nil) | ||
| 4270 | |||
| 4271 | (autoload 'dired-do-symlink-regexp "dired-aux" "\ | ||
| 4272 | Symlink selected files whose names match REGEXP to NEWNAME. | ||
| 4273 | See function `dired-do-rename-regexp' for more info. | ||
| 4274 | |||
| 4275 | \(fn REGEXP NEWNAME &optional ARG WHOLE-NAME)" t nil) | ||
| 4276 | |||
| 4277 | (autoload 'dired-upcase "dired-aux" "\ | ||
| 4278 | Rename all marked (or next ARG) files to upper case. | ||
| 4279 | |||
| 4280 | \(fn &optional ARG)" t nil) | ||
| 4281 | |||
| 4282 | (autoload 'dired-downcase "dired-aux" "\ | ||
| 4283 | Rename all marked (or next ARG) files to lower case. | ||
| 4284 | |||
| 4285 | \(fn &optional ARG)" t nil) | ||
| 4286 | |||
| 4287 | (autoload 'dired-maybe-insert-subdir "dired-aux" "\ | ||
| 4288 | Insert this subdirectory into the same dired buffer. | ||
| 4289 | If it is already present, just move to it (type \\[dired-do-redisplay] to refresh), | ||
| 4290 | else inserts it at its natural place (as `ls -lR' would have done). | ||
| 4291 | With a prefix arg, you may edit the ls switches used for this listing. | ||
| 4292 | You can add `R' to the switches to expand the whole tree starting at | ||
| 4293 | this subdirectory. | ||
| 4294 | This function takes some pains to conform to `ls -lR' output. | ||
| 4295 | |||
| 4296 | Dired remembers switches specified with a prefix arg, so that reverting | ||
| 4297 | the buffer will not reset them. However, using `dired-undo' to re-insert | ||
| 4298 | or delete subdirectories can bypass this machinery. Hence, you sometimes | ||
| 4299 | may have to reset some subdirectory switches after a `dired-undo'. | ||
| 4300 | You can reset all subdirectory switches to the default using | ||
| 4301 | \\<dired-mode-map>\\[dired-reset-subdir-switches]. | ||
| 4302 | See Info node `(emacs)Subdir switches' for more details. | ||
| 4303 | |||
| 4304 | \(fn DIRNAME &optional SWITCHES NO-ERROR-IF-NOT-DIR-P)" t nil) | ||
| 4305 | |||
| 4306 | (autoload 'dired-insert-subdir "dired-aux" "\ | ||
| 4307 | Insert this subdirectory into the same Dired buffer. | ||
| 4308 | If it is already present, overwrite the previous entry; | ||
| 4309 | otherwise, insert it at its natural place (as `ls -lR' would | ||
| 4310 | have done). | ||
| 4311 | With a prefix arg, you may edit the `ls' switches used for this listing. | ||
| 4312 | You can add `R' to the switches to expand the whole tree starting at | ||
| 4313 | this subdirectory. | ||
| 4314 | This function takes some pains to conform to `ls -lR' output. | ||
| 4315 | |||
| 4316 | \(fn DIRNAME &optional SWITCHES NO-ERROR-IF-NOT-DIR-P)" t nil) | ||
| 4317 | |||
| 4318 | (autoload 'dired-prev-subdir "dired-aux" "\ | ||
| 4319 | Go to previous subdirectory, regardless of level. | ||
| 4320 | When called interactively and not on a subdir line, go to this subdir's line. | ||
| 4321 | |||
| 4322 | \(fn ARG &optional NO-ERROR-IF-NOT-FOUND NO-SKIP)" t nil) | ||
| 4323 | |||
| 4324 | (autoload 'dired-goto-subdir "dired-aux" "\ | ||
| 4325 | Go to end of header line of DIR in this dired buffer. | ||
| 4326 | Return value of point on success, otherwise return nil. | ||
| 4327 | The next char is either \\n, or \\r if DIR is hidden. | ||
| 4328 | |||
| 4329 | \(fn DIR)" t nil) | ||
| 4330 | |||
| 4331 | (autoload 'dired-mark-subdir-files "dired-aux" "\ | ||
| 4332 | Mark all files except `.' and `..' in current subdirectory. | ||
| 4333 | If the Dired buffer shows multiple directories, this command | ||
| 4334 | marks the files listed in the subdirectory that point is in. | ||
| 4335 | |||
| 4336 | \(fn)" t nil) | ||
| 4337 | |||
| 4338 | (autoload 'dired-kill-subdir "dired-aux" "\ | ||
| 4339 | Remove all lines of current subdirectory. | ||
| 4340 | Lower levels are unaffected. | ||
| 4341 | |||
| 4342 | \(fn &optional REMEMBER-MARKS)" t nil) | ||
| 4343 | |||
| 4344 | (autoload 'dired-tree-up "dired-aux" "\ | ||
| 4345 | Go up ARG levels in the dired tree. | ||
| 4346 | |||
| 4347 | \(fn ARG)" t nil) | ||
| 4348 | |||
| 4349 | (autoload 'dired-tree-down "dired-aux" "\ | ||
| 4350 | Go down in the dired tree. | ||
| 4351 | |||
| 4352 | \(fn)" t nil) | ||
| 4353 | |||
| 4354 | (autoload 'dired-hide-subdir "dired-aux" "\ | ||
| 4355 | Hide or unhide the current subdirectory and move to next directory. | ||
| 4356 | Optional prefix arg is a repeat factor. | ||
| 4357 | Use \\[dired-hide-all] to (un)hide all directories. | ||
| 4358 | |||
| 4359 | \(fn ARG)" t nil) | ||
| 4360 | |||
| 4361 | (autoload 'dired-hide-all "dired-aux" "\ | ||
| 4362 | Hide all subdirectories, leaving only their header lines. | ||
| 4363 | If there is already something hidden, make everything visible again. | ||
| 4364 | Use \\[dired-hide-subdir] to (un)hide a particular subdirectory. | ||
| 4365 | |||
| 4366 | \(fn &optional IGNORED)" t nil) | ||
| 4367 | |||
| 4368 | (autoload 'dired-isearch-filenames-setup "dired-aux" "\ | ||
| 4369 | Set up isearch to search in Dired file names. | ||
| 4370 | Intended to be added to `isearch-mode-hook'. | ||
| 4371 | |||
| 4372 | \(fn)" nil nil) | ||
| 4373 | |||
| 4374 | (autoload 'dired-isearch-filenames "dired-aux" "\ | ||
| 4375 | Search for a string using Isearch only in file names in the Dired buffer. | ||
| 4376 | |||
| 4377 | \(fn)" t nil) | ||
| 4378 | |||
| 4379 | (autoload 'dired-isearch-filenames-regexp "dired-aux" "\ | ||
| 4380 | Search for a regexp using Isearch only in file names in the Dired buffer. | ||
| 4381 | |||
| 4382 | \(fn)" t nil) | ||
| 4383 | |||
| 4384 | (autoload 'dired-do-isearch "dired-aux" "\ | ||
| 4385 | Search for a string through all marked files using Isearch. | ||
| 4386 | |||
| 4387 | \(fn)" t nil) | ||
| 4388 | |||
| 4389 | (autoload 'dired-do-isearch-regexp "dired-aux" "\ | ||
| 4390 | Search for a regexp through all marked files using Isearch. | ||
| 4391 | |||
| 4392 | \(fn)" t nil) | ||
| 4393 | |||
| 4394 | (autoload 'dired-do-search "dired-aux" "\ | ||
| 4395 | Search through all marked files for a match for REGEXP. | ||
| 4396 | Stops when a match is found. | ||
| 4397 | To continue searching for next match, use command \\[tags-loop-continue]. | ||
| 4398 | |||
| 4399 | \(fn REGEXP)" t nil) | ||
| 4400 | |||
| 4401 | (autoload 'dired-do-query-replace-regexp "dired-aux" "\ | ||
| 4402 | Do `query-replace-regexp' of FROM with TO, on all marked files. | ||
| 4403 | Third arg DELIMITED (prefix arg) means replace only word-delimited matches. | ||
| 4404 | If you exit (\\[keyboard-quit], RET or q), you can resume the query replace | ||
| 4405 | with the command \\[tags-loop-continue]. | ||
| 4406 | |||
| 4407 | \(fn FROM TO &optional DELIMITED)" t nil) | ||
| 4408 | |||
| 4409 | (autoload 'dired-show-file-type "dired-aux" "\ | ||
| 4410 | Print the type of FILE, according to the `file' command. | ||
| 4411 | If you give a prefix to this command, and FILE is a symbolic | ||
| 4412 | link, then the type of the file linked to by FILE is printed | ||
| 4413 | instead. | ||
| 4414 | |||
| 4415 | \(fn FILE &optional DEREF-SYMLINKS)" t nil) | ||
| 4416 | |||
| 4417 | ;;;*** | ||
| 4418 | |||
| 4419 | ;;;### (autoloads nil "dired-x" "dired-x.el" "06f532e2e812fa1cb10ade31249e9700") | ||
| 4420 | ;;; Generated autoloads from dired-x.el | ||
| 4421 | |||
| 4422 | (autoload 'dired-jump "dired-x" "\ | ||
| 4423 | Jump to Dired buffer corresponding to current buffer. | ||
| 4424 | If in a file, Dired the current directory and move to file's line. | ||
| 4425 | If in Dired already, pop up a level and goto old directory's line. | ||
| 4426 | In case the proper Dired file line cannot be found, refresh the dired | ||
| 4427 | buffer and try again. | ||
| 4428 | When OTHER-WINDOW is non-nil, jump to Dired buffer in other window. | ||
| 4429 | Interactively with prefix argument, read FILE-NAME and | ||
| 4430 | move to its line in dired. | ||
| 4431 | |||
| 4432 | \(fn &optional OTHER-WINDOW FILE-NAME)" t nil) | ||
| 4433 | |||
| 4434 | (autoload 'dired-jump-other-window "dired-x" "\ | ||
| 4435 | Like \\[dired-jump] (`dired-jump') but in other window. | ||
| 4436 | |||
| 4437 | \(fn &optional FILE-NAME)" t nil) | ||
| 4438 | |||
| 4439 | (autoload 'dired-do-relsymlink "dired-x" "\ | ||
| 4440 | Relative symlink all marked (or next ARG) files into a directory. | ||
| 4441 | Otherwise make a relative symbolic link to the current file. | ||
| 4442 | This creates relative symbolic links like | ||
| 4443 | |||
| 4444 | foo -> ../bar/foo | ||
| 4445 | |||
| 4446 | not absolute ones like | ||
| 4447 | |||
| 4448 | foo -> /ugly/file/name/that/may/change/any/day/bar/foo | ||
| 4449 | |||
| 4450 | For absolute symlinks, use \\[dired-do-symlink]. | ||
| 4451 | |||
| 4452 | \(fn &optional ARG)" t nil) | ||
| 4453 | |||
| 4454 | ;;;*** | ||
| 4455 | |||
| 4456 | ;;; End of automatically extracted autoloads. | ||
| 4457 | |||
| 4458 | (provide 'dired) | 3904 | (provide 'dired) |
| 4459 | 3905 | ||
| 4460 | (run-hooks 'dired-load-hook) ; for your customizations | 3906 | (run-hooks 'dired-load-hook) ; for your customizations |
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el new file mode 100644 index 00000000000..ff6c88f80e7 --- /dev/null +++ b/test/lisp/dired-tests.el | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | ;;; dired-tests.el --- Test suite. -*- lexical-binding: t -*- | ||
| 2 | |||
| 3 | ;; Copyright (C) 2015 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | ;; This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | ;; GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | ;; it under the terms of the GNU General Public License as published by | ||
| 9 | ;; the Free Software Foundation, either version 3 of the License, or | ||
| 10 | ;; (at your option) any later version. | ||
| 11 | |||
| 12 | ;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | ;; GNU General Public License for more details. | ||
| 16 | |||
| 17 | ;; You should have received a copy of the GNU General Public License | ||
| 18 | ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | |||
| 20 | ;;; Code: | ||
| 21 | (require 'ert) | ||
| 22 | (require 'dired) | ||
| 23 | |||
| 24 | |||
| 25 | (ert-deftest dired-autoload () | ||
| 26 | "Tests to see whether dired-x has been autoloaded" | ||
| 27 | (should | ||
| 28 | (fboundp 'dired-jump)) | ||
| 29 | (should | ||
| 30 | (autoloadp | ||
| 31 | (symbol-function | ||
| 32 | 'dired-jump)))) | ||
| 33 | |||
| 34 | (provide 'dired-tests) | ||
| 35 | ;; dired-tests.el ends here | ||