Loading ...
Sorry, an error occurred while loading the content.

5893Re: clipboard support

Expand Messages
  • mick
    Dec 14, 2007
    • 0 Attachment
      I tried adding usleep(500000);
      but to no avail. Saying
      mvim file1
      still results in no ability to cut and paste between MacVim
      and other apps.

      By the way, thank you for taking so much time on this!
      I really appreciate it even though the problem has not
      yet been resolved.


      On Dec 14, 4:21 am, Nico Weber <nicolaswe...@...> wrote:
      > > After replacing clp_mch_request_selection(..) with your code, I still
      > > see
      >
      > > requesting selecion
      > > 0x0
      > > 0x0
      > > done requesting selecion
      >
      > That means that [NSPasteboard generalPasteboard] returns nil. Very
      > strange.
      >
      > > Going back and looking at the earlier console.log, I see that before
      > > this latest stuff (that is when I just added two printf statements
      > > after
      > > applying the patch) this appeared in the console.log, and it appears
      > > to differ from what appeared in the terminal window:
      >
      > > 12/13/07 2:50:45 PM [0x0-0x230230].org.vim.MacVim[25459] requesting
      > > selecion
      > > 12/13/07 2:50:45 PM [0x0-0x230230].org.vim.MacVim[25459] 0x219460
      > > 12/13/07 2:50:45 PM [0x0-0x230230].org.vim.MacVim[25459] 0xa0850844
      > > 12/13/07 2:50:45 PM [0x0-0x230230].org.vim.MacVim[25459] got pbType
      > > 12/13/07 2:50:45 PM [0x0-0x230230].org.vim.MacVim[25459] done
      >
      > This is how it should look like when everything is fine. I guess you
      > ran MacVim by starting it from the Finder in the meantime and pasted
      > text there.
      >
      > Here's something else you could try: Put the line
      >
      > usleep(500000);
      >
      > _above_ the lines
      >
      > if (!connection) {
      > NSLog(@"WARNING: Timed-out waiting for GUI to launch.");
      > return NO;
      > }
      >
      > in src/MacVim/MMBackend.m . After that, recompile both vim and MacVim.
      > If you now launch MacVim, startup will be slower (500 milliseconds
      > slower). Does the clipboard work with this modification? (If so, this
      > is further evidence that this is a race condition. Won't be fun to
      > fix :-\)
      >
      > Nico
      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Show all 42 messages in this topic