From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Russo Subject: How to attach data in clipboard directly? Date: Fri, 24 Jun 2011 11:21:58 +0100 Message-ID: <98495103-9583-4D34-A516-85B15DAD785F@gmail.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa3WX-0005Jq-U1 for emacs-orgmode@gnu.org; Fri, 24 Jun 2011 06:22:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qa3WW-000222-24 for emacs-orgmode@gnu.org; Fri, 24 Jun 2011 06:22:05 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:57582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa3WV-00021m-Oe for emacs-orgmode@gnu.org; Fri, 24 Jun 2011 06:22:03 -0400 Received: by wyg36 with SMTP id 36so2251137wyg.0 for ; Fri, 24 Jun 2011 03:22:01 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, I often need to paste fragments of pictures/images to my org file. Typically, I manually paste the fragment to a file, and then use C-c C-a = m to attach that file to my org-file. This is rather tedious, because there are a few steps and extra programs = involved, and I guess there must be a better way to do this. What I want is that emacs/orgmode understands the contents of the = clipboard and creates that file for me. For instance, if it detects that the contents of the clipboard is an = image or some sort of non-text format, emacs would dump the clipboard = data to a file, auto-generate a filename, guessing the data type, and = attach that file to my org-file via org-attach-attach. I'm thinking of a org-attach-clipboard sort of command, accessible via = the C-c C-a (org-attach) menu. Perhaps I'm demanding too much from emacs and org-mode, but hey, = couldn't it be done? It would be a cool feature... More important, _hasn't_ this been done already? Regards, Carlos=