diff options
| author | Karl Heuer | 1998-02-27 21:44:39 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-02-27 21:44:39 +0000 |
| commit | 45844080cea4f6981b8951e3da59fa6e69c2fa22 (patch) | |
| tree | f78b1f2b4b9893ec1c33eefe65dfe307244f725a | |
| parent | f4c7209704af7397e61ed44b3054a54a212f2739 (diff) | |
| download | emacs-45844080cea4f6981b8951e3da59fa6e69c2fa22.tar.gz emacs-45844080cea4f6981b8951e3da59fa6e69c2fa22.zip | |
(dired-do-toggle): Function moved to dired.el.
| -rw-r--r-- | lisp/dired-x.el | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index bc6cbacfb53..7c67642872c 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -254,8 +254,6 @@ to nil: a pipe using `zcat' or `gunzip -c' will be used." | |||
| 254 | (define-key dired-mode-map "*(" 'dired-mark-sexp) | 254 | (define-key dired-mode-map "*(" 'dired-mark-sexp) |
| 255 | (define-key dired-mode-map "*." 'dired-mark-extension) | 255 | (define-key dired-mode-map "*." 'dired-mark-extension) |
| 256 | (define-key dired-mode-map "\M-!" 'dired-smart-shell-command) | 256 | (define-key dired-mode-map "\M-!" 'dired-smart-shell-command) |
| 257 | (define-key dired-mode-map "T" 'dired-do-toggle) | ||
| 258 | (define-key dired-mode-map "*t" 'dired-do-toggle) | ||
| 259 | (define-key dired-mode-map "w" 'dired-copy-filename-as-kill) | 257 | (define-key dired-mode-map "w" 'dired-copy-filename-as-kill) |
| 260 | (define-key dired-mode-map "\M-g" 'dired-goto-file) | 258 | (define-key dired-mode-map "\M-g" 'dired-goto-file) |
| 261 | (define-key dired-mode-map "\M-G" 'dired-goto-subdir) | 259 | (define-key dired-mode-map "\M-G" 'dired-goto-subdir) |
| @@ -291,7 +289,6 @@ to nil: a pipe using `zcat' or `gunzip -c' will be used." | |||
| 291 | \\[dired-man]\t-- run man on file | 289 | \\[dired-man]\t-- run man on file |
| 292 | \\[dired-do-find-marked-files]\t-- visit all marked files simultaneously | 290 | \\[dired-do-find-marked-files]\t-- visit all marked files simultaneously |
| 293 | \\[dired-omit-toggle]\t-- toggle omitting of files | 291 | \\[dired-omit-toggle]\t-- toggle omitting of files |
| 294 | \\[dired-do-toggle]\t-- toggle marks | ||
| 295 | \\[dired-mark-sexp]\t-- mark by lisp expression | 292 | \\[dired-mark-sexp]\t-- mark by lisp expression |
| 296 | \\[dired-copy-filename-as-kill]\t-- copy the file or subdir names into the kill ring. | 293 | \\[dired-copy-filename-as-kill]\t-- copy the file or subdir names into the kill ring. |
| 297 | \t You can feed it to other commands using \\[yank]. | 294 | \t You can feed it to other commands using \\[yank]. |
| @@ -485,33 +482,6 @@ buffer and try again." | |||
| 485 | (interactive) | 482 | (interactive) |
| 486 | (dired-jump t)) | 483 | (dired-jump t)) |
| 487 | 484 | ||
| 488 | ;;; TOGGLE. | ||
| 489 | ;;; Toggle marked files with unmarked files. | ||
| 490 | |||
| 491 | (defun dired-do-toggle () | ||
| 492 | "Toggle marks. | ||
| 493 | That is, currently marked files become unmarked and vice versa. | ||
| 494 | Files marked with other flags (such as `D') are not affected. | ||
| 495 | `.' and `..' are never toggled. | ||
| 496 | As always, hidden subdirs are not affected." | ||
| 497 | (interactive) | ||
| 498 | (save-excursion | ||
| 499 | (goto-char (point-min)) | ||
| 500 | (let (buffer-read-only) | ||
| 501 | (while (not (eobp)) | ||
| 502 | (or (dired-between-files) | ||
| 503 | (looking-at dired-re-dot) | ||
| 504 | ;; use subst instead of insdel because it does not move | ||
| 505 | ;; the gap and thus should be faster and because | ||
| 506 | ;; other characters are left alone automatically | ||
| 507 | (apply 'subst-char-in-region | ||
| 508 | (point) (1+ (point)) | ||
| 509 | (if (eq ?\040 (following-char)) ; SPC | ||
| 510 | (list ?\040 dired-marker-char) | ||
| 511 | (list dired-marker-char ?\040)))) | ||
| 512 | (forward-line 1))))) | ||
| 513 | |||
| 514 | |||
| 515 | ;;; COPY NAMES OF MARKED FILES INTO KILL-RING. | 485 | ;;; COPY NAMES OF MARKED FILES INTO KILL-RING. |
| 516 | 486 | ||
| 517 | (defun dired-copy-filename-as-kill (&optional arg) | 487 | (defun dired-copy-filename-as-kill (&optional arg) |