aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/Makefile.in3
-rw-r--r--lisp/dired-aux.el2
-rw-r--r--lisp/dired-x.el2
-rw-r--r--lisp/dired.el556
-rw-r--r--test/lisp/dired-tests.el35
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.
99BYTE_COMPILE_FLAGS = \ 100BYTE_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" "\
3910Compare file at point with file FILE using `diff'.
3911If called interactively, prompt for FILE. If the file at point
3912has a backup file, use that as the default. If the file at point
3913is a backup file, use its original. If the mark is active
3914in 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
3918FILE is the first file given to `diff'. The file at point
3919is the second file given to `diff'.
3920
3921With prefix arg, prompt for second argument SWITCHES, which is
3922the 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" "\
3927Diff this file with its backup file or vice versa.
3928Uses the latest backup, if there are several numerical backups.
3929If this file is a backup, diff it with its original.
3930The backup file is the first file given to `diff'.
3931With 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" "\
3936Mark files with different file attributes in two dired buffers.
3937Compare file attributes of files in the current directory
3938with file attributes in directory DIR2 using PREDICATE on pairs of files
3939with the same name. Mark files for which PREDICATE returns non-nil.
3940Mark files with different names if PREDICATE is nil (or interactively
3941with empty input at the predicate prompt).
3942
3943PREDICATE 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
3953Examples 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" "\
3964Change the mode of the marked (or next ARG) files.
3965Symbolic modes like `g+w' are allowed.
3966Type M-n to pull the file attributes of the file at point
3967into the minibuffer.
3968
3969\(fn &optional ARG)" t nil)
3970
3971(autoload 'dired-do-chgrp "dired-aux" "\
3972Change the group of the marked (or next ARG) files.
3973Type M-n to pull the file attributes of the file at point
3974into the minibuffer.
3975
3976\(fn &optional ARG)" t nil)
3977
3978(autoload 'dired-do-chown "dired-aux" "\
3979Change the owner of the marked (or next ARG) files.
3980Type M-n to pull the file attributes of the file at point
3981into the minibuffer.
3982
3983\(fn &optional ARG)" t nil)
3984
3985(autoload 'dired-do-touch "dired-aux" "\
3986Change the timestamp of the marked (or next ARG) files.
3987This calls touch.
3988Type M-n to pull the file attributes of the file at point
3989into the minibuffer.
3990
3991\(fn &optional ARG)" t nil)
3992
3993(autoload 'dired-do-print "dired-aux" "\
3994Print the marked (or next ARG) files.
3995Uses 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" "\
4001Flag numerical backups for deletion.
4002Spares `dired-kept-versions' latest versions, and `kept-old-versions' oldest.
4003Positive prefix arg KEEP overrides `dired-kept-versions';
4004Negative prefix arg KEEP overrides `kept-old-versions' with KEEP made positive.
4005
4006To clear the flags on these files, you can use \\[dired-flag-backup-files]
4007with a prefix argument.
4008
4009\(fn KEEP)" t nil)
4010
4011(autoload 'dired-do-async-shell-command "dired-aux" "\
4012Run a shell command COMMAND on the marked files asynchronously.
4013
4014Like `dired-do-shell-command', but adds `&' at the end of COMMAND
4015to execute it asynchronously.
4016
4017When operating on multiple files, asynchronous commands
4018are executed in the background on each file in parallel.
4019In shell syntax this means separating the individual commands
4020with `&'. However, when COMMAND ends in `;' or `;&' then commands
4021are executed in the background on each file sequentially waiting
4022for each command to terminate before running the next command.
4023In shell syntax this means separating the individual commands with `;'.
4024
4025The 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" "\
4030Run a shell command COMMAND on the marked files.
4031If no files are marked or a numeric prefix arg is given,
4032the next ARG files are used. Just \\[universal-argument] means the current file.
4033The prompt mentions the file(s) or the marker, as appropriate.
4034
4035If there is a `*' in COMMAND, surrounded by whitespace, this runs
4036COMMAND just once with the entire file list substituted there.
4037
4038If there is no `*', but there is a `?' in COMMAND, surrounded by
4039whitespace, this runs COMMAND on each file individually with the
4040file name substituted for `?'.
4041
4042Otherwise, this runs COMMAND on each file individually with the
4043file name added at the end of COMMAND (separated by a space).
4044
4045`*' and `?' when not surrounded by whitespace have no special
4046significance for `dired-do-shell-command', and are passed through
4047normally to the shell, but you must confirm first.
4048
4049If you want to use `*' as a shell wildcard with whitespace around
4050it, write `*\"\"' in place of just `*'. This is equivalent to just
4051`*' in the shell, but avoids Dired's special handling.
4052
4053If COMMAND ends in `&', `;', or `;&', it is executed in the
4054background asynchronously, and the output appears in the buffer
4055`*Async Shell Command*'. When operating on multiple files and COMMAND
4056ends in `&', the shell command is executed on each file in parallel.
4057However, when COMMAND ends in `;' or `;&' then commands are executed
4058in the background on each file sequentially waiting for each command
4059to terminate before running the next command. You can also use
4060`dired-do-async-shell-command' that automatically adds `&'.
4061
4062Otherwise, COMMAND is executed synchronously, and the output
4063appears in the buffer `*Shell Command Output*'.
4064
4065This feature does not try to redisplay Dired buffers afterward, as
4066there's no telling what files COMMAND may have changed.
4067Type \\[dired-do-redisplay] to redisplay the marked files.
4068
4069When COMMAND runs, its working directory is the top-level directory
4070of the Dired buffer, so output files usually are created there
4071instead of in a subdir.
4072
4073In a noninteractive call (from Lisp code), you must specify
4074the list of file names explicitly with the FILE-LIST argument, which
4075can 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" "\
4085Kill all marked lines (not the files).
4086With a prefix argument, kill that many lines starting with the current line.
4087\(A negative argument kills backward.)
4088If you use this command with a prefix argument to kill the line
4089for a file that is a directory, which you have inserted in the
4090Dired buffer as a subdirectory, then it deletes that subdirectory
4091from the buffer as well.
4092To kill an entire subdirectory (without killing its line in the
4093parent directory), go to its directory header line and use this
4094command 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" "\
4099Compress selected files and directories to an archive.
4100You are prompted for the archive name.
4101The 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" "\
4107Compress or uncompress FILE.
4108Return the name of the compressed or uncompressed file.
4109Return nil if no change in files.
4110
4111\(fn FILE)" nil nil)
4112
4113(autoload 'dired-query "dired-aux" "\
4114Format PROMPT with ARGS, query user, and store the result in SYM.
4115The return value is either nil or t.
4116
4117The 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
4119this and subsequent queries.
4120
4121If SYM is already bound to a non-nil value, this function may
4122return automatically without querying the user. If SYM is !,
4123return 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" "\
4128Compress or uncompress marked (or next ARG) files.
4129
4130\(fn &optional ARG)" t nil)
4131
4132(autoload 'dired-do-byte-compile "dired-aux" "\
4133Byte compile marked (or next ARG) Emacs Lisp files.
4134
4135\(fn &optional ARG)" t nil)
4136
4137(autoload 'dired-do-load "dired-aux" "\
4138Load the marked (or next ARG) Emacs Lisp files.
4139
4140\(fn &optional ARG)" t nil)
4141
4142(autoload 'dired-do-redisplay "dired-aux" "\
4143Redisplay all marked (or next ARG) files.
4144If on a subdir line, redisplay that subdirectory. In that case,
4145a prefix arg lets you edit the `ls' switches used for the new listing.
4146
4147Dired remembers switches specified with a prefix arg, so that reverting
4148the buffer will not reset them. However, using `dired-undo' to re-insert
4149or delete subdirectories can bypass this machinery. Hence, you sometimes
4150may have to reset some subdirectory switches after a `dired-undo'.
4151You can reset all subdirectory switches to the default using
4152\\<dired-mode-map>\\[dired-reset-subdir-switches].
4153See 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" "\
4168Create 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" "\
4183Create a directory called DIRECTORY.
4184If DIRECTORY already exists, signal an error.
4185
4186\(fn DIRECTORY)" t nil)
4187
4188(autoload 'dired-do-copy "dired-aux" "\
4189Copy all marked (or next ARG) files, or copy the current file.
4190When operating on just the current file, prompt for the new name.
4191
4192When operating on multiple or marked files, prompt for a target
4193directory, and make the new copies in that directory, with the
4194same names as the original files. The initial suggestion for the
4195target directory is the Dired buffer's current directory (or, if
4196`dired-dwim-target' is non-nil, the current directory of a
4197neighboring Dired window).
4198
4199If `dired-copy-preserve-time' is non-nil, this command preserves
4200the modification time of each old file in the copy, similar to
4201the \"-p\" option for the \"cp\" shell command.
4202
4203This command copies symbolic links by creating new ones, similar
4204to the \"-d\" option for the \"cp\" shell command.
4205
4206\(fn &optional ARG)" t nil)
4207
4208(autoload 'dired-do-symlink "dired-aux" "\
4209Make symbolic links to current file or all marked (or next ARG) files.
4210When operating on just the current file, you specify the new name.
4211When operating on multiple or marked files, you specify a directory
4212and new symbolic links are made in that directory
4213with the same names that the files currently have. The default
4214suggested for the target directory depends on the value of
4215`dired-dwim-target', which see.
4216
4217For relative symlinks, use \\[dired-do-relsymlink].
4218
4219\(fn &optional ARG)" t nil)
4220
4221(autoload 'dired-do-hardlink "dired-aux" "\
4222Add names (hard links) current file or all marked (or next ARG) files.
4223When operating on just the current file, you specify the new name.
4224When operating on multiple or marked files, you specify a directory
4225and new hard links are made in that directory
4226with the same names that the files currently have. The default
4227suggested 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" "\
4233Rename current file or all marked (or next ARG) files.
4234When renaming just the current file, you specify the new name.
4235When renaming multiple or marked files, you specify a directory.
4236This command also renames any buffers that are visiting the files.
4237The default suggested for the target directory depends on the value
4238of `dired-dwim-target', which see.
4239
4240\(fn &optional ARG)" t nil)
4241
4242(autoload 'dired-do-rename-regexp "dired-aux" "\
4243Rename selected files whose names match REGEXP to NEWNAME.
4244
4245With non-zero prefix argument ARG, the command operates on the next ARG
4246files. Otherwise, it operates on all the marked files, or the current
4247file if none are marked.
4248
4249As 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.
4251NEWNAME may contain \\=\\<n> or \\& as in `query-replace-regexp'.
4252REGEXP defaults to the last regexp used.
4253
4254With a zero prefix arg, renaming by regexp affects the absolute file name.
4255Normally, 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" "\
4260Copy selected files whose names match REGEXP to NEWNAME.
4261See 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" "\
4266Hardlink selected files whose names match REGEXP to NEWNAME.
4267See 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" "\
4272Symlink selected files whose names match REGEXP to NEWNAME.
4273See 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" "\
4278Rename all marked (or next ARG) files to upper case.
4279
4280\(fn &optional ARG)" t nil)
4281
4282(autoload 'dired-downcase "dired-aux" "\
4283Rename 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" "\
4288Insert this subdirectory into the same dired buffer.
4289If 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).
4291With 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.
4294This function takes some pains to conform to `ls -lR' output.
4295
4296Dired remembers switches specified with a prefix arg, so that reverting
4297the buffer will not reset them. However, using `dired-undo' to re-insert
4298or delete subdirectories can bypass this machinery. Hence, you sometimes
4299may have to reset some subdirectory switches after a `dired-undo'.
4300You can reset all subdirectory switches to the default using
4301\\<dired-mode-map>\\[dired-reset-subdir-switches].
4302See 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" "\
4307Insert this subdirectory into the same Dired buffer.
4308If it is already present, overwrite the previous entry;
4309 otherwise, insert it at its natural place (as `ls -lR' would
4310 have done).
4311With 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.
4314This 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" "\
4319Go to previous subdirectory, regardless of level.
4320When 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" "\
4325Go to end of header line of DIR in this dired buffer.
4326Return value of point on success, otherwise return nil.
4327The 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" "\
4332Mark all files except `.' and `..' in current subdirectory.
4333If the Dired buffer shows multiple directories, this command
4334marks the files listed in the subdirectory that point is in.
4335
4336\(fn)" t nil)
4337
4338(autoload 'dired-kill-subdir "dired-aux" "\
4339Remove all lines of current subdirectory.
4340Lower levels are unaffected.
4341
4342\(fn &optional REMEMBER-MARKS)" t nil)
4343
4344(autoload 'dired-tree-up "dired-aux" "\
4345Go up ARG levels in the dired tree.
4346
4347\(fn ARG)" t nil)
4348
4349(autoload 'dired-tree-down "dired-aux" "\
4350Go down in the dired tree.
4351
4352\(fn)" t nil)
4353
4354(autoload 'dired-hide-subdir "dired-aux" "\
4355Hide or unhide the current subdirectory and move to next directory.
4356Optional prefix arg is a repeat factor.
4357Use \\[dired-hide-all] to (un)hide all directories.
4358
4359\(fn ARG)" t nil)
4360
4361(autoload 'dired-hide-all "dired-aux" "\
4362Hide all subdirectories, leaving only their header lines.
4363If there is already something hidden, make everything visible again.
4364Use \\[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" "\
4369Set up isearch to search in Dired file names.
4370Intended to be added to `isearch-mode-hook'.
4371
4372\(fn)" nil nil)
4373
4374(autoload 'dired-isearch-filenames "dired-aux" "\
4375Search 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" "\
4380Search 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" "\
4385Search for a string through all marked files using Isearch.
4386
4387\(fn)" t nil)
4388
4389(autoload 'dired-do-isearch-regexp "dired-aux" "\
4390Search for a regexp through all marked files using Isearch.
4391
4392\(fn)" t nil)
4393
4394(autoload 'dired-do-search "dired-aux" "\
4395Search through all marked files for a match for REGEXP.
4396Stops when a match is found.
4397To 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" "\
4402Do `query-replace-regexp' of FROM with TO, on all marked files.
4403Third arg DELIMITED (prefix arg) means replace only word-delimited matches.
4404If you exit (\\[keyboard-quit], RET or q), you can resume the query replace
4405with the command \\[tags-loop-continue].
4406
4407\(fn FROM TO &optional DELIMITED)" t nil)
4408
4409(autoload 'dired-show-file-type "dired-aux" "\
4410Print the type of FILE, according to the `file' command.
4411If you give a prefix to this command, and FILE is a symbolic
4412link, then the type of the file linked to by FILE is printed
4413instead.
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" "\
4423Jump to Dired buffer corresponding to current buffer.
4424If in a file, Dired the current directory and move to file's line.
4425If in Dired already, pop up a level and goto old directory's line.
4426In case the proper Dired file line cannot be found, refresh the dired
4427buffer and try again.
4428When OTHER-WINDOW is non-nil, jump to Dired buffer in other window.
4429Interactively with prefix argument, read FILE-NAME and
4430move to its line in dired.
4431
4432\(fn &optional OTHER-WINDOW FILE-NAME)" t nil)
4433
4434(autoload 'dired-jump-other-window "dired-x" "\
4435Like \\[dired-jump] (`dired-jump') but in other window.
4436
4437\(fn &optional FILE-NAME)" t nil)
4438
4439(autoload 'dired-do-relsymlink "dired-x" "\
4440Relative symlink all marked (or next ARG) files into a directory.
4441Otherwise make a relative symbolic link to the current file.
4442This creates relative symbolic links like
4443
4444 foo -> ../bar/foo
4445
4446not absolute ones like
4447
4448 foo -> /ugly/file/name/that/may/change/any/day/bar/foo
4449
4450For 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