Skip to content

[Bug]: PRIMARY selection unsupported on macOS — evil visual mode timer errors #263

Description

@TheWaWaR

Bug summary

Important context: the regular clipboard works fine in both directions — y in visual mode copies to the system clipboard, and content copied elsewhere pastes with p. The error is only about the PRIMARY selection sync that happens when entering/updating visual mode; it does not affect yank/paste.

Environment

  • Neomacs 0.0.15, commit d4e68268f (v0.0.15-314-gd4e68268f)
  • macOS 15.7.3 (arm64), release build ./target/release/neomacs
  • evil 1.15.0, (require 'evil) (evil-mode 1)

Steps to reproduce

  1. ./target/release/neomacs -Q with evil enabled.
  2. Press v and move the selection.

Expected behavior
No error. GNU Emacs's NS port emulates PRIMARY on macOS via a private pasteboard type, so visual selection never triggers this. Alternatively, the update should be skipped where PRIMARY is unsupported.

Steps to reproduce

No response

Expected behavior

No response

Runtime diagnostics

Extra context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions