emacs-pretest-bug
[Top][All Lists]
Advanced

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

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


From: YAMAMOTO Mitsuharu
Subject: Re: OSX: Interprogram cut/paste issues /// "No overlay corresponding to CLIPBOARD selection"
Date: Fri, 29 Apr 2005 10:55:41 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Thu, 28 Apr 2005 20:47:46 +0100, David Reitter <address@hidden> 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 used?

> My settings are appended below - the interprogram-X-function stuff
> is necessary so it won't copy the region to the clipboard, but the
> bug is reproducible either way.

It seems that mouse-sel is primarily designed to use PRIMARY and
SECONDARY selections, which are used only internally (i.e., no
interapplication communication) on Carbon Emacs.  So some adjustment
maybe needed.  How about the following one?

(setq mouse-sel-default-bindings 'interprogram-cut-paste)
(mouse-sel-mode 1)
(setq mouse-sel-set-selection-function
    (lambda (selection value)   
      (if (eq selection 'PRIMARY)
          (x-select-text value)
        (x-set-selection selection value))))
(defalias 'x-cut-buffer-or-selection-value 'x-get-selection-value)

> Furthermore, I often get a "mouse-sel-selection-overlay: No overlay
> corresponding to CLIPBOARD selection" error when I try close a frame
> with the mouse (the window closer). The frame stays up.  Not sure
> where that is coming from.  The message appears in a different
> window (than the one displayed in the frame to be closed), and it
> seems to only occur with some frames and is not tied to their mode /
> buffer / dedicated-ness.

Does the following patch solve the above problem?

                                     YAMAMOTO Mitsuharu
                                address@hidden

Index: src/macselect.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/macselect.c,v
retrieving revision 1.2
diff -c -r1.2 macselect.c
*** src/macselect.c     25 Apr 2005 01:46:56 -0000      1.2
--- src/macselect.c     29 Apr 2005 01:50:33 -0000
***************
*** 622,628 ****
        hooks = Vx_lost_selection_functions;
        selection_symbol = Fcar (Fcar (Vselection_alist));
  
!       if (!EQ (hooks, Qunbound))
        {
          for (; CONSP (hooks); hooks = Fcdr (hooks))
            call1 (Fcar (hooks), selection_symbol);
--- 622,629 ----
        hooks = Vx_lost_selection_functions;
        selection_symbol = Fcar (Fcar (Vselection_alist));
  
!       if (!EQ (hooks, Qunbound)
!         && !NILP (Fx_selection_owner_p (selection_symbol)))
        {
          for (; CONSP (hooks); hooks = Fcdr (hooks))
            call1 (Fcar (hooks), selection_symbol);
***************
*** 646,652 ****
        hooks = Vx_lost_selection_functions;
        selection_symbol = Fcar (Fcar (XCDR (rest)));
  
!       if (!EQ (hooks, Qunbound))
          {
            for (; CONSP (hooks); hooks = Fcdr (hooks))
              call1 (Fcar (hooks), selection_symbol);
--- 647,654 ----
        hooks = Vx_lost_selection_functions;
        selection_symbol = Fcar (Fcar (XCDR (rest)));
  
!       if (!EQ (hooks, Qunbound)
!         && !NILP (Fx_selection_owner_p (selection_symbol)))
          {
            for (; CONSP (hooks); hooks = Fcdr (hooks))
              call1 (Fcar (hooks), selection_symbol);




reply via email to

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