From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Feature Request: attach link type Date: Thu, 03 Mar 2011 11:18:06 +0100 Message-ID: <87mxlco6ch.fsf@gnu.org> References: <4d5c35ef.0ae9640a.3fc9.0852@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=37720 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv5bx-0005iN-Ec for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 05:18:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pv5bs-0007M7-4J for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 05:18:21 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:34949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv5br-0007Lr-V0 for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 05:18:16 -0500 Received: by wyi11 with SMTP id 11so1033935wyi.0 for ; Thu, 03 Mar 2011 02:18:15 -0800 (PST) In-Reply-To: <4d5c35ef.0ae9640a.3fc9.0852@mx.google.com> (Darlan Cavalcante Moreira's message of "Wed, 16 Feb 2011 17:39:08 -0300") 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: Darlan Cavalcante Moreira Cc: Orgmode Mailing List Hi Darlan, Darlan Cavalcante Moreira writes: > Using the functions already provided by org-attach I could get > #+LINK: attach elisp:(org-open-file (org-attach-expand "%s")) > However, I always have to confirm the execution of the elisp code. You want to set `org-confirm-elisp-link-function' to nil. > Other useful things (just random thoughts) could be: > - Perform some operation when a file is attached, such as replacing > white-spaces in the file-name by underscores IMHO this goes beyond what org-attach.el should do: attach files. Besides, that would require even more confirmation steps. > - When a file is attached a link to it could be stored in the kill ring, > in case the user want to insert it in the current text. Alternatively, > an interactive function to insert a link to an attached file (using the > same completions we already get for opening attached files) would also > be very handy. Yes, good idea. >From latest git, set `org-attach-store-link-p' to `t' if you want a link to be stored in `org-stored-links' when attaching a file. Thanks, -- Bastien -- Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode