From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Re: Feature Request: attach link type Date: Fri, 04 Mar 2011 22:56:41 +0100 Message-ID: <8062rymtwm.fsf@somewhere.org> References: <4d5c35ef.0ae9640a.3fc9.0852@mx.google.com> <87mxlco6ch.fsf@gnu.org> <4d712b0e.1838640a.4d18.ffffa691@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Darlan and Bastien, Darlan Cavalcante Moreira wrote: >> > 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 >>=20 >> IMHO this goes beyond what org-attach.el should do: attach files. >> Besides, that would require even more confirmation steps. > > My common use scenario for org-attach is to store files associated to a > sub-tree. For instance, when I receive a file by E-mail that I need to re= ad > I create a task for it and attach the file. I usually need to change the > file name, since I don't like spaces and If would be practical if I could > attach the file as it is and know that org-attach would store it the way I > like. Is there a hook I could use to do this myself then? (I'm not a lisp > programmer, but think I can google tips about how to do this). Just to comment on that point: reworking the filename is exactly what Gnus = do with attachment files, once you want to save them. It (optionally) do whate= ver is needed to make them better, such as removing spaces, replacing accents, etc... Best regards, Seb --=20 S=C3=A9bastien Vauban