[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dired question
From: |
Stefan Monnier |
Subject: |
Re: dired question |
Date: |
Mon, 18 Oct 2004 18:58:38 GMT |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
> (setq srd-mark-list
> (adjoin (dired-get-filename)
> srd-mark-list
> :test #'equal))))
Aka (add-to-list 'srd-mark-list (dired-get-filename))
> (defun srd-do-shell-command (command)
> (interactive "scommand: ")
> (dired-do-shell-command command
> nil
> (reverse srd-mark-list)))
I suspect this will break in cases where you do:
- mark A, B, C
- C-k on B
- !
because B will not be among the marked files any more but will still be in
srd-mark-list.
Stefan
Re: dired question, Brad Collins, 2004/10/18