* Auto-copy to clipboard
@ 2007-12-05 16:08 Tim Johnson
2007-12-05 16:53 ` Lennart Borgman (gmail)
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Tim Johnson @ 2007-12-05 16:08 UTC (permalink / raw)
To: help-gnu-emacs
Using GNU Emacs 22.1.1, kubuntu 7.1 with KDE 3.5.8
I'd like to able to
1)compose a string of text (that's easy)
2)Send that string directly to the clipboard,
just as if I had inserted that text into
the buffer, selected it and done kill-ring-save
or kill-region.
Is there a function to do that?
If not, suggestions are welcome and pointers to docs
encouraged.
thanks
Tim
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Auto-copy to clipboard
2007-12-05 16:08 Auto-copy to clipboard Tim Johnson
@ 2007-12-05 16:53 ` Lennart Borgman (gmail)
2007-12-05 18:42 ` Tim Johnson
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Lennart Borgman (gmail) @ 2007-12-05 16:53 UTC (permalink / raw)
To: Tim Johnson; +Cc: help-gnu-emacs
Tim Johnson wrote:
> Using GNU Emacs 22.1.1, kubuntu 7.1 with KDE 3.5.8
>
> I'd like to able to
> 1)compose a string of text (that's easy)
> 2)Send that string directly to the clipboard,
> just as if I had inserted that text into
> the buffer, selected it and done kill-ring-save
> or kill-region.
>
> Is there a function to do that?
> If not, suggestions are welcome and pointers to docs
> encouraged.
> thanks
> Tim
To find out you may use
C-h k
and then enter the yank command. You then get the help text from where
you can go directly to the source code.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Auto-copy to clipboard
2007-12-05 16:08 Auto-copy to clipboard Tim Johnson
2007-12-05 16:53 ` Lennart Borgman (gmail)
@ 2007-12-05 18:42 ` Tim Johnson
2007-12-05 18:46 ` Tim Johnson
2007-12-05 20:25 ` Peter Dyballa
[not found] ` <mailman.4598.1196886308.18990.help-gnu-emacs@gnu.org>
3 siblings, 1 reply; 6+ messages in thread
From: Tim Johnson @ 2007-12-05 18:42 UTC (permalink / raw)
To: help-gnu-emacs
Tim Johnson wrote:
> Using GNU Emacs 22.1.1, kubuntu 7.1 with KDE 3.5.8
>
> I'd like to able to
> 1)compose a string of text (that's easy)
> 2)Send that string directly to the clipboard,
> just as if I had inserted that text into
> the buffer, selected it and done kill-ring-save
> or kill-region.
>
> Is there a function to do that?
> If not, suggestions are welcome and pointers to docs
> encouraged.
> thanks
> Tim
After following the code for 'kill-ring-save, I find
that 'kill-ring-new is the likely candidate.
Any other ideas would be welcome, but it looks promising....
tj
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Auto-copy to clipboard
2007-12-05 18:42 ` Tim Johnson
@ 2007-12-05 18:46 ` Tim Johnson
0 siblings, 0 replies; 6+ messages in thread
From: Tim Johnson @ 2007-12-05 18:46 UTC (permalink / raw)
To: help-gnu-emacs
Tim Johnson wrote:
> After following the code for 'kill-ring-save, I find
> that 'kill-ring-new is the likely candidate.
> Any other ideas would be welcome, but it looks promising....
My apologies: should have been 'kill-new.
A simple test is M-: (kill-new "hello from emacs")<Cr>
and there it is in the clipboard
tim
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Auto-copy to clipboard
2007-12-05 16:08 Auto-copy to clipboard Tim Johnson
2007-12-05 16:53 ` Lennart Borgman (gmail)
2007-12-05 18:42 ` Tim Johnson
@ 2007-12-05 20:25 ` Peter Dyballa
[not found] ` <mailman.4598.1196886308.18990.help-gnu-emacs@gnu.org>
3 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2007-12-05 20:25 UTC (permalink / raw)
To: Tim Johnson; +Cc: help-gnu-emacs
Am 05.12.2007 um 17:08 schrieb Tim Johnson:
> 2)Send that string directly to the clipboard,
> just as if I had inserted that text into
> the buffer, selected it and done kill-ring-save
> or kill-region.
What about clipboard-kill-ring-save?
--
Greetings
Pete
"Evolution" o __o _o _
°\___o /0~ -\<, ^\___ /=\\_/-%
oo~_______ /\ /\______/ \_________O/ O_______________o===>-->O--o____
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Auto-copy to clipboard
[not found] ` <mailman.4598.1196886308.18990.help-gnu-emacs@gnu.org>
@ 2007-12-05 22:35 ` Tim Johnson
0 siblings, 0 replies; 6+ messages in thread
From: Tim Johnson @ 2007-12-05 22:35 UTC (permalink / raw)
To: help-gnu-emacs
Peter Dyballa wrote:
>
> Am 05.12.2007 um 17:08 schrieb Tim Johnson:
>
>> 2)Send that string directly to the clipboard,
>> just as if I had inserted that text into
>> the buffer, selected it and done kill-ring-save
>> or kill-region.
>
>
> What about clipboard-kill-ring-save?
The argument list is for a region, whereas kill-new
takes a string, which would be programmatically composed.
I was looking for this functionality as an alternative
to sending the string to 'shell-command should the composed
string launch a large process that might be distracting
to the editing environment.
cheers
tim
>
> "Evolution" o __o _o _
> °\___o /0~ -\<, ^\___ /=\\_/-%
> oo~_______ /\ /\______/ \_________O/ O_______________o===>-->O--o____
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-12-05 22:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-05 16:08 Auto-copy to clipboard Tim Johnson
2007-12-05 16:53 ` Lennart Borgman (gmail)
2007-12-05 18:42 ` Tim Johnson
2007-12-05 18:46 ` Tim Johnson
2007-12-05 20:25 ` Peter Dyballa
[not found] ` <mailman.4598.1196886308.18990.help-gnu-emacs@gnu.org>
2007-12-05 22:35 ` Tim Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).