From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: create links for all marked files in dired Date: Tue, 27 Nov 2007 14:47:37 +0000 Message-ID: <87r6ib4ueu.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ix1j0-0002FW-R6 for emacs-orgmode@gnu.org; Tue, 27 Nov 2007 09:47:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ix1iy-0002FJ-9n for emacs-orgmode@gnu.org; Tue, 27 Nov 2007 09:47:46 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ix1iy-0002FG-7a for emacs-orgmode@gnu.org; Tue, 27 Nov 2007 09:47:44 -0500 Received: from nf-out-0910.google.com ([64.233.182.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ix1ix-0000zv-KA for emacs-orgmode@gnu.org; Tue, 27 Nov 2007 09:47:43 -0500 Received: by nf-out-0910.google.com with SMTP id f5so933081nfh for ; Tue, 27 Nov 2007 06:47:41 -0800 (PST) In-Reply-To: (Fabian Braennstroem's message of "Sun, 25 Nov 2007 14:51:47 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Fabian Braennstroem Hi Fabian, Fabian Braennstroem writes: > is there a chance to create links from the marked files in a > dired buffer using org-mode internal functions? I already suggested something for this here: http://article.gmane.org/gmane.emacs.orgmode/4440 If you want to create a list of links from dired and copy this list to the kill-ring, maybe you can use something like this as well: (defun my-copy-dired-files-in-kill-ring () "Copy files names in the kill ring." (interactive) (let ((files (dired-map-over-marks (dired-get-filename) nil))) (kill-new (mapconcat (lambda (f) (concat "[[file:" f "][" (file-name-nondirectory f) "]]")) files "\n")) (message "%d Org links copied to the kill-ring" (length files)))) Does that help? -- Bastien