From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorge <1gato0a@gmail.com> Newsgroups: gmane.emacs.help Subject: Re: Use Emacs to compose emails for Gmail web interface Date: Wed, 18 Sep 2013 21:16:08 -0300 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1379549780 31229 80.91.229.3 (19 Sep 2013 00:16:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Sep 2013 00:16:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jorge <1gato0a@gmail.com> Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 19 02:16:24 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VMRux-000491-Ir for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Sep 2013 02:16:23 +0200 Original-Received: from localhost ([::1]:49119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMRuw-0006PK-NP for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Sep 2013 20:16:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMRuk-0006P4-6C for help-gnu-emacs@gnu.org; Wed, 18 Sep 2013 20:16:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMRui-00076N-N1 for help-gnu-emacs@gnu.org; Wed, 18 Sep 2013 20:16:10 -0400 Original-Received: from mail-qc0-x236.google.com ([2607:f8b0:400d:c01::236]:59326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMRui-00076I-I6 for help-gnu-emacs@gnu.org; Wed, 18 Sep 2013 20:16:08 -0400 Original-Received: by mail-qc0-f182.google.com with SMTP id n4so4941297qcx.41 for ; Wed, 18 Sep 2013 17:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=+z1s/6JyfLCgArsBDr2Mqo7zqn5NffPKwvSuW9teiBc=; b=zGgffP+4EdxhOSLFEnge1EXpKK1LohDi2lpre7vYA8yJXc7YkUQG9gyDnYm4HhBaU5 eVqGI6gk4/7G+pNnJWYVwhyEhdQjzQ9I06xTZ5ZcN3JFOlIwvaWC/EZSZMYp/TZqh+Q4 BraT6mx3vBeZ3M1IxqT1xplEOoOGZVWMu6GmMKV1bkEmLknkDz3eO+p+jl+MSatiegmz kEXz1u+M19QvkQPeVXljMonQMaQXNpZkLCphp3Akx4bixQonN4efFMtU1vi+HfPyxUQF okD1pZ/E1c3fS/oStZRyz9vy8riJLzW7s+UZyhNk9aVbPa/y0BC6rjrOAb8Y/uLkJvyF +wdA== X-Received: by 10.49.121.134 with SMTP id lk6mr67928655qeb.23.1379549768138; Wed, 18 Sep 2013 17:16:08 -0700 (PDT) Original-Received: by 10.49.82.11 with HTTP; Wed, 18 Sep 2013 17:16:08 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: eGsztjxg_Q3ESKejvJy109x5lEo X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::236 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93453 Archived-At: On Wed, Sep 18, 2013 at 9:03 PM, Jorge <1gato0a@gmail.com> wrote: > I have eased the problem with some Emacs Lisp. The following is in my .emacs: I've made it more general: (global-set-key "\C-xg" 'clipboard-get) (global-set-key "\C-xp" 'clipboard-put) (setq clipboard-temp-file (make-temp-file "clipboard_for_emacs")) (defun clipboard-get () "Visit clipboard-temp-file, delete all text in it, yank the X clipboard, delete trailing whitespace, go to beginning of buffer." (interactive) (find-file clipboard-temp-file) (delete-region (point-min) (point-max)) (clipboard-yank) (delete-trailing-whitespace) (goto-char (point-min))) (defun clipboard-put () "Copy the whole buffer to the X clipboard, kill it." (interactive) (clipboard-kill-ring-save (point-min) (point-max)) (save-buffer) (kill-buffer)) Did I do anything wrong? Regards