X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/d96a4f88299679f64c49f44d94fd61d0548b351e..3726946669effb8c66c37fb5f9996178c9adfc80:/lisp/dired.el diff --git a/lisp/dired.el b/lisp/dired.el index 77fe9cb761..7428087ca8 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -670,31 +670,31 @@ Don't use that together with FILTER." ;; (dolist (ext completion-ignored-extensions) ;; (if (eq ?/ (aref ext (1- (length ext)))) (push ext cie))) ;; (setq cie (concat (regexp-opt cie "\\(?:") "\\'")) -;; (lexical-let* ((default (and buffer-file-name -;; (abbreviate-file-name buffer-file-name))) -;; (cie cie) -;; (completion-table -;; ;; We need a mix of read-file-name and -;; ;; read-directory-name so that completion to directories -;; ;; is preferred, but if the user wants to enter a global -;; ;; pattern, he can still use completion on filenames to -;; ;; help him write the pattern. -;; ;; Essentially, we want to use -;; ;; (completion-table-with-predicate -;; ;; 'read-file-name-internal 'file-directory-p nil) -;; ;; but that doesn't work because read-file-name-internal -;; ;; does not obey its `predicate' argument. -;; (completion-table-in-turn -;; (lambda (str pred action) -;; (let ((read-file-name-predicate -;; (lambda (f) -;; (and (not (member f '("./" "../"))) -;; ;; Hack! Faster than file-directory-p! -;; (eq (aref f (1- (length f))) ?/) -;; (not (string-match cie f)))))) -;; (complete-with-action -;; action 'read-file-name-internal str nil))) -;; 'read-file-name-internal))) +;; (let* ((default (and buffer-file-name +;; (abbreviate-file-name buffer-file-name))) +;; (cie cie) +;; (completion-table +;; ;; We need a mix of read-file-name and +;; ;; read-directory-name so that completion to directories +;; ;; is preferred, but if the user wants to enter a global +;; ;; pattern, he can still use completion on filenames to +;; ;; help him write the pattern. +;; ;; Essentially, we want to use +;; ;; (completion-table-with-predicate +;; ;; 'read-file-name-internal 'file-directory-p nil) +;; ;; but that doesn't work because read-file-name-internal +;; ;; does not obey its `predicate' argument. +;; (completion-table-in-turn +;; (lambda (str pred action) +;; (let ((read-file-name-predicate +;; (lambda (f) +;; (and (not (member f '("./" "../"))) +;; ;; Hack! Faster than file-directory-p! +;; (eq (aref f (1- (length f))) ?/) +;; (not (string-match cie f)))))) +;; (complete-with-action +;; action 'read-file-name-internal str nil))) +;; 'read-file-name-internal))) ;; (minibuffer-with-setup-hook ;; (lambda () ;; (setq minibuffer-default default) @@ -3460,9 +3460,9 @@ format, use `\\[universal-argument] \\[dired]'.") "Non-nil means the Dired sort command is disabled. The idea is to set this buffer-locally in special dired buffers.") -(defun dired-sort-set-modeline () - ;; Set modeline display according to dired-actual-switches. - ;; Modeline display of "by name" or "by date" guarantees the user a +(defun dired-sort-set-mode-line () + ;; Set mode line display according to dired-actual-switches. + ;; Mode line display of "by name" or "by date" guarantees the user a ;; match with the corresponding regexps. Non-matching switches are ;; shown literally. (when (eq major-mode 'dired-mode) @@ -3478,6 +3478,9 @@ The idea is to set this buffer-locally in special dired buffers.") (concat "Dired " dired-actual-switches))))) (force-mode-line-update))) +(define-obsolete-function-alias 'dired-sort-set-modeline + 'dired-sort-set-mode-line "24.2") + (defun dired-sort-toggle-or-edit (&optional arg) "Toggle sorting by date, and refresh the Dired buffer. With a prefix argument, edit the current listing switches instead." @@ -3509,7 +3512,7 @@ With a prefix argument, edit the current listing switches instead." ;; Now, if we weren't sorting by date before, add the -t switch. (unless sorting-by-date (setq dired-actual-switches (concat dired-actual-switches " -t")))) - (dired-sort-set-modeline) + (dired-sort-set-mode-line) (revert-buffer)) ;; Some user code loads dired especially for this. @@ -3532,7 +3535,7 @@ set the minor mode accordingly, others appear literally in the mode line. With optional second arg NO-REVERT, don't refresh the listing afterwards." (dired-sort-R-check switches) (setq dired-actual-switches switches) - (dired-sort-set-modeline) + (dired-sort-set-mode-line) (or no-revert (revert-buffer))) (defvar dired-subdir-alist-pre-R nil @@ -4200,7 +4203,7 @@ instead. ;;;*** ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) -;;;;;; "dired-x" "dired-x.el" "2a39a8306a5541c304bc4ab602876f92") +;;;;;; "dired-x" "dired-x.el" "d2461aa6efb8c1d7de8f245728ab448e") ;;; Generated autoloads from dired-x.el (autoload 'dired-jump "dired-x" "\