Re: OSX: Interprogram cut/paste issues ///

2005-05-04 Thread Stefan Monnier
> Stuff like mouse-extend mainly. But I noticed that it's enough to just > (require 'mouse-sel), but not activate the mode - so that's what I'm doing > now. That's obviously a workaround, not a fix... If doing nothing more than (require 'mouse-sel) already modifies the behavior of Emacs, it's a bu

Re: OSX: Interprogram cut/paste issues

2005-05-04 Thread Kim F. Storm
David Reitter <[EMAIL PROTECTED]> writes: > Wouldn't it be a better solution to make sure clipboard-kill-ring-save > and clipboard-yank respect cua-mode? Well, cua-mode is optional, so it must try to respect clipboard- commands, not the other way round. Can you try this patch: *** cua-base.el 0

Re: OSX: Interprogram cut/paste issues

2005-05-04 Thread Kim F. Storm
David Reitter <[EMAIL PROTECTED]> writes: > On 29 Apr 2005, at 08:40, YAMAMOTO Mitsuharu wrote: > >> Is (setq x-select-enable-clipboard nil) what you want? I tried to use >> with this setting for a while and noticed that the patch below may be >> needed. > > OK, we're still not completely done -

Re: OSX: Interprogram cut/paste issues

2005-05-04 Thread David Reitter
On 3 May 2005, at 10:24, Kim F. Storm wrote: OK, we're still not completely done - because cua-mode breaks things again. Does this patch give good results? No it doesn't, because clipboard-yank takes no arguments, yet you pass it 'arg'. +((eq this-original-command 'clipboard-yank) +

Re: OSX: Interprogram cut/paste issues ///

2005-05-03 Thread David Reitter
On 3 May 2005, at 02:28, YAMAMOTO Mitsuharu wrote: How about using the definition similar to clipboard-yank? (defun clipboard-cua-paste (arg) (interactive "P") (let ((x-select-enable-clipboard t)) (cua-paste arg))) (define-key cua-global-keymap [remap clipboard-yank] 'clipboard-cua-paste)

Re: OSX: Interprogram cut/paste issues ///

2005-05-03 Thread YAMAMOTO Mitsuharu
> On Fri, 29 Apr 2005 14:55:53 +0100, David Reitter <[EMAIL PROTECTED]> > said: >> Is (setq x-select-enable-clipboard nil) what you want? I tried to >> use with this setting for a while and noticed that the patch below >> may be needed. > OK, obviously yes. I'm a little confused with re

Re: OSX: Interprogram cut/paste issues

2005-05-02 Thread David Reitter
On 29 Apr 2005, at 08:40, YAMAMOTO Mitsuharu wrote: Is (setq x-select-enable-clipboard nil) what you want? I tried to use with this setting for a while and noticed that the patch below may be needed. OK, we're still not completely done - because cua-mode breaks things again. Despite careful varia

Re: OSX: Interprogram cut/paste issues ///

2005-04-29 Thread David Reitter
On 29 Apr 2005, at 08:40, YAMAMOTO Mitsuharu wrote: On Fri, 29 Apr 2005 08:32:19 +0100, David Reitter <[EMAIL PROTECTED]> said: The problems (below) go away if mouse-sel is not used, yet I cannot get it to not copy the region into the clipboard (killring) when some region is selected. Is (setq x-

Re: OSX: Interprogram cut/paste issues /// "No overlay corresponding to CLIPBOARD selection"

2005-04-29 Thread YAMAMOTO Mitsuharu
> On Fri, 29 Apr 2005 08:32:19 +0100, David Reitter <[EMAIL PROTECTED]> > said: > The problems (below) go away if mouse-sel is not used, yet I cannot > get it to not copy the region into the clipboard (killring) when > some region is selected. Is (setq x-select-enable-clipboard nil) what

Re: OSX: Interprogram cut/paste issues /// "No overlay corresponding to CLIPBOARD selection"

2005-04-29 Thread David Reitter
On 29 Apr 2005, at 02:55, YAMAMOTO Mitsuharu wrote: On Thu, 28 Apr 2005 20:47:46 +0100, David Reitter <[EMAIL PROTECTED]> said: Hi, the recent changes to the clipboard handling routines (on OS X) left me struggling to get back to normal behavior. What point is different from "normal behavior" do

Re: OSX: Interprogram cut/paste issues /// "No overlay corresponding to CLIPBOARD selection"

2005-04-28 Thread YAMAMOTO Mitsuharu
> On Thu, 28 Apr 2005 20:47:46 +0100, David Reitter <[EMAIL PROTECTED]> > said: > Hi, the recent changes to the clipboard handling routines (on OS X) > left me struggling to get back to normal behavior. What point is different from "normal behavior" do you think when mouse-sel is not use

OSX: Interprogram cut/paste issues /// "No overlay corresponding to CLIPBOARD selection"

2005-04-28 Thread David Reitter
Hi, the recent changes to the clipboard handling routines (on OS X) left me struggling to get back to normal behavior. There seems to be a bug re copying from other applications: - select / copy text in Mail (or wherever) into the clipboard - switch to emacs, select and deselect some text - try