From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Feature request: dired-open-marked-files Date: Sat, 14 Mar 2009 23:39:57 -0700 Message-ID: <003801c9a538$dc4a2c90$0200a8c0@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237099227 19719 80.91.229.12 (15 Mar 2009 06:40:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Mar 2009 06:40:27 +0000 (UTC) To: "'Vivek Dasmohapatra'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 15 07:41:43 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lik2Y-0001pX-B3 for ged-emacs-devel@m.gmane.org; Sun, 15 Mar 2009 07:41:43 +0100 Original-Received: from localhost ([127.0.0.1]:43656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lik1B-0000w3-UL for ged-emacs-devel@m.gmane.org; Sun, 15 Mar 2009 02:40:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lik0t-0000qI-Cb for emacs-devel@gnu.org; Sun, 15 Mar 2009 02:39:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lik0o-0000oC-6W for emacs-devel@gnu.org; Sun, 15 Mar 2009 02:39:58 -0400 Original-Received: from [199.232.76.173] (port=35591 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lik0n-0000o5-PP for emacs-devel@gnu.org; Sun, 15 Mar 2009 02:39:53 -0400 Original-Received: from rcsinet13.oracle.com ([148.87.113.125]:41822 helo=rgminet13.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lik0n-0007d2-42 for emacs-devel@gnu.org; Sun, 15 Mar 2009 02:39:53 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n2F6eskj007436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 15 Mar 2009 06:40:55 GMT Original-Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n2F6dgIO024812; Sun, 15 Mar 2009 06:39:43 GMT Original-Received: from dradamslap1 (/24.4.133.20) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 15 Mar 2009 06:39:37 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcmlDUxM0rxwA1MXTTGdyqN30Jg4wQAK3ONg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt700.oracle.com [141.146.40.70] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010208.49BCA2AB.00E0:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109630 Archived-At: > This request came up recently in #emacs and I'm told it has > come up before: There didn't seem to be a canned way to do > this, so I came up with: > > (defun dired-open-marked-files () > (interactive) > (let ((distinguish-one-marked nil)) > (mapc 'find-file > (dired-map-over-marks (dired-get-file-for-visit) > current-prefix-arg)))) > > I haven't looked into this in any great detail, so there may > be a better > or more obvious way to do it, but I thought the functionality at least > would make a handy addition to dired. See `dired-x.el', command `dired-do-find-marked-files', bound to `F' in Dired.