X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/3b77302a4da5576bb4bf746527a135a4dd132e19..04420943de5a7a92f94c7642b76990c77ca751f8:/lisp/dired.el diff --git a/lisp/dired.el b/lisp/dired.el index 6154292715..58c29a152b 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -50,7 +50,7 @@ ;;;###autoload -(defcustom dired-listing-switches "-al" +(defcustom dired-listing-switches (purecopy "-al") "Switches passed to `ls' for Dired. MUST contain the `l' option. May contain all other options that don't contradict `-l'; may contain even `F', `b', `i' and `s'. See also the variable @@ -71,11 +71,12 @@ If nil, `dired-listing-switches' is used.") ;;;###autoload (defvar dired-chown-program + (purecopy (if (memq system-type '(hpux usg-unix-v irix linux gnu/linux cygwin)) "chown" (if (file-exists-p "/usr/sbin/chown") "/usr/sbin/chown" - "/etc/chown")) + "/etc/chown"))) "Name of chown command (usually `chown' or `/etc/chown').") (defvar dired-use-ls-dired (not (not (string-match "gnu" system-configuration))) @@ -87,7 +88,6 @@ If nil, `dired-listing-switches' is used.") (defvar dired-touch-program "touch" "Name of touch command (usually `touch').") -;;;###autoload (defcustom dired-ls-F-marks-symlinks nil "Informs Dired about how `ls -lF' marks symbolic links. Set this to t if `ls' (or whatever program is specified by @@ -114,7 +114,6 @@ A value of t means move to first file." regexp) :group 'dired) -;;;###autoload (defcustom dired-keep-marker-rename t ;; Use t as default so that moved files "take their markers with them". "Controls marking of renamed files. @@ -125,7 +124,6 @@ are afterward marked with that character." (character :tag "Mark")) :group 'dired-mark) -;;;###autoload (defcustom dired-keep-marker-copy ?C "Controls marking of copied files. If t, copied files are marked if and as the corresponding original files were. @@ -134,7 +132,6 @@ If a character, copied files are unconditionally marked with that character." (character :tag "Mark")) :group 'dired-mark) -;;;###autoload (defcustom dired-keep-marker-hardlink ?H "Controls marking of newly made hard links. If t, they are marked if and as the files linked to were marked. @@ -143,7 +140,6 @@ If a character, new links are unconditionally marked with that character." (character :tag "Mark")) :group 'dired-mark) -;;;###autoload (defcustom dired-keep-marker-symlink ?Y "Controls marking of newly made symbolic links. If t, they are marked if and as the files linked to were marked. @@ -152,7 +148,6 @@ If a character, new links are unconditionally marked with that character." (character :tag "Mark")) :group 'dired-mark) -;;;###autoload (defcustom dired-dwim-target nil "If non-nil, Dired tries to guess a default target directory. This means: if there is a dired buffer displayed in the next window, @@ -162,7 +157,6 @@ The target is used in the prompt for file copy, rename etc." :type 'boolean :group 'dired) -;;;###autoload (defcustom dired-copy-preserve-time t "If non-nil, Dired preserves the last-modified time in a file copy. \(This works on only some systems.)" @@ -1395,8 +1389,9 @@ Do so according to the former subdir alist OLD-SUBDIR-ALIST." :help "Move to previous directory-file line")) (define-key map [menu-bar subdir insert] '(menu-item "Insert This Subdir" dired-maybe-insert-subdir - :help "Insert contents of subdirectory")) - + :help "Insert contents of subdirectory" + :enable (let ((f (dired-get-filename nil t))) + (and f (file-directory-p f))))) (define-key map [menu-bar immediate] (cons "Immediate" (make-sparse-keymap "Immediate"))) @@ -3317,7 +3312,7 @@ Anything else means ask for each directory." (message-box "Dired recursive copies are currently disabled.\nSee the variable `dired-recursive-copies'.")) -(declare-function x-popup-menu "xmenu.c" (position menu)) +(declare-function x-popup-menu "menu.c" (position menu)) (defun dired-dnd-do-ask-action (uri) ;; No need to get actions and descriptions from the source, @@ -3461,7 +3456,7 @@ Ask means pop up a menu for the user to select one of copy, move or link." ;;;;;; dired-run-shell-command dired-do-shell-command dired-do-async-shell-command ;;;;;; dired-clean-directory dired-do-print dired-do-touch dired-do-chown ;;;;;; dired-do-chgrp dired-do-chmod dired-compare-directories dired-backup-diff -;;;;;; dired-diff) "dired-aux" "dired-aux.el" "6c7ccd455c2cd50d48164ebd5c52e216") +;;;;;; dired-diff) "dired-aux" "dired-aux.el" "e207e02ac395d10ee4a09e208081a0ce") ;;; Generated autoloads from dired-aux.el (autoload 'dired-diff "dired-aux" "\