all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Copy variable to system clipboard (as simpleclip)
Date: Tue, 08 Aug 2017 20:09:54 +0200	[thread overview]
Message-ID: <86wp6erkwd.fsf@zoho.com> (raw)
In-Reply-To: 20170808011507.GC3447@mail.akwebsoft.com

Tim Johnson wrote:

> Update: Seems to work. I owe you a beer. :)

Owe me a beer? Have you never heard of free
software, with "free" as in free beer?

Anyway I went thru the code today after all
these years, and found a couple of small things
to change:

    http://user.it.uu.se/~embe8573/emacs-init/xsel.el

I also added this:

    (defun x-copy-symbol (sym)
      "Copy the value of SYM to the X clipboard."
      (interactive "S Symbol: ")
      (let*((val (symbol-value sym))
            (str (format "%s" val)) )
        (set-X-clipboard-to-string str) ))
    ;; Test:
    ;; (progn (x-copy-symbol 'fill-column)         (insert-X-clipboard))
    ;; (progn (call-interactively #'x-copy-symbol) (insert-X-clipboard))

Keep it up :)

-- 
underground experts united
http://user.it.uu.se/~embe8573




  reply	other threads:[~2017-08-08 18:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-07 23:11 Copy variable to system clipboard (as simpleclip) Tim Johnson
2017-08-08  0:23 ` Emanuel Berg
2017-08-08  0:58   ` Tim Johnson
2017-08-08  1:15     ` Tim Johnson
2017-08-08 18:09       ` Emanuel Berg [this message]
2017-08-08 23:49         ` Tim Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86wp6erkwd.fsf@zoho.com \
    --to=moasen@zoho.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.