From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: dired question Date: Mon, 18 Oct 2004 18:58:38 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098125883 29602 80.91.229.6 (18 Oct 2004 18:58:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Oct 2004 18:58:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 18 20:57:46 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CJchW-0005EI-00 for ; Mon, 18 Oct 2004 20:57:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJcoo-0002W1-VD for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Oct 2004 15:05:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:bxK/uniS13MZOmR1pZ3xi87icjA= Original-Lines: 23 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1098125918 132.204.24.84 (Mon, 18 Oct 2004 14:58:38 EDT) Original-NNTP-Posting-Date: Mon, 18 Oct 2004 14:58:38 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:125933 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21304 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21304 > (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