Skip to content

edit.selected_text() in Emacs on Linux produces Emacs error: "Selection owner couldn't convert: MULTIPLE" #490

Description

@rntz

With this edit.selected_text() implementation:

@ctx.action_class("edit")
class EditActions:
    def selected_text() -> str:
        with clip.capture() as s:
            actions.edit.copy()
        try:
            return s.text()
        except clip.NoChange:
            return ""

And with edit.copy() in emacs implemented as key("alt-w") (the keybinding for copying), running edit.selected_text() yields an empty string and produces an emacs error message, Selection owner couldn't convert: MULTIPLE. I'm not sure what the root cause here is. This used to work just fine, not sure when it broke, probably in the last month or two? My guess is something is going wrong with MIME types?

Ubuntu 21.10, GNU Emacs 27.1, Talon v0.2.0-347-gab2a

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions