[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first copy & paste not working

From: Peter Dyballa
Subject: Re: first copy & paste not working
Date: Fri, 2 May 2008 23:44:56 +0200

Am 02.05.2008 um 19:31 schrieb Mike Treseler:

However, after starting emacs, the first cut/copy from within emacs is not recognized. In other words, the first time I do a yank, it pastes whatever I last copied outside emacs, even if I just did a cut/copy within emacs. I can only yank my emacs text if I repeat the emacs cut/copy, othewise it just keeps yanking the external text.
Can anyone help?

I don't have this problem, but every once in a while,
I will have the opposite problem where my center
mouse button will paste an old emacs kill instead
of the text I just marked in some other X-app.

The same seems to be true for GNU Emacsen 22.0.50, 22.2, 23.0.50, and 23.0.60, could be also 23.0.0. I often thought this could be a problem with the Mac OS X pasteboard (Apple's X11 window manager mediates between the two worlds) ...

(mouse-sel-mode 1)
(setq x-select-enable-clipboard t)
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)

I don't set these, but happen to have
t, nil, nil
as values right now.

I have in 23.0.60 t, nil, x-cut-buffer-or-selection-value,
and in 22.2 I have t, t, x-cut-buffer-or-selection-value.
There seem to be reasonable default values, only for 22.2 I've chosen to set x-select-enable-clipboard to t hoping to avoid the problem I mentioned before.

I select words in this or that Emacs and copy it to the Mac OS X pasteboard when X11 won't work. I also "refresh" the pasteboard by selecting and copying words from Mac OS X applications. This failure seems to happen up to once per week.



We also sponsor National Invisible Chronic Illness Awareness Week annually in September.
Join the millions

reply via email to

[Prev in Thread] Current Thread [Next in Thread]