From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Extending paste to auto-archive a copied image Date: Mon, 10 Jan 2011 10:38:49 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=47642 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcKsL-0006lO-87 for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 11:45:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcKlf-0002uY-1u for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 11:38:52 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:48113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcKle-0002uN-U1 for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 11:38:51 -0500 Received: by iyj17 with SMTP id 17so20141654iyj.0 for ; Mon, 10 Jan 2011 08:38:50 -0800 (PST) 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: Org Mode Hi list, So, I'm usign an emacs extension that renders links to image as the image itself, it's a minor mode called iimage.el. It works great, but the fact that I need to copy the image somewhere first is a time and flow - killer. Is it possible to hook up to the paste command and, if it's a image in the clipboard, auto-archive somewhere in the filesystem it and then return its URL? Thanks, Marcelo.