Giter VIP home page Giter VIP logo

Comments (6)

dvzubarev avatar dvzubarev commented on May 27, 2024 1

I'm confused as to why you would bother with specifying the + register at all when select-enable-clipboard is t?

p/P gets buggy sometimes and does not paste from clipboard. I don't know how to reproduce it and even whether it has something to do with evil. C-r + works every time. It's kind of muscle memory for me.

Doesn't that essentially make + the default register?

not sure what letter is associated with default register, but from quick testing it seems I can use C-r 1 instead of C-r +.

from evil.

eeshugerman avatar eeshugerman commented on May 27, 2024

I'm confused, do you hit this bug on Emacs 29? Or Only 30? I can't reproduce it on 29, FWIW.

from evil.

dvzubarev avatar dvzubarev commented on May 27, 2024

I can reproduce this on:

  1. Emacs 30.0.50 on Ubuntu 22.04, Emacs was built from sources, with native compilation
  2. Emacs 29.1 on ArchLinux, installed via pacman (package emacs-nativecomp)

from evil.

dvzubarev avatar dvzubarev commented on May 27, 2024

What are your values of variables:

  • window-system
  • select-enable-clipboard

Mine is:

  • x
  • t
    If your window-system is not in '(x haiku) or the second variable is nil, then that's why it is working for you.

from evil.

dvzubarev avatar dvzubarev commented on May 27, 2024

A comment from gui-last-cut-in-clipboard

;; The doc string of `interprogram-paste-function' says to return
  ;; nil if no other program has provided text to paste.

I think it means that if you copied text to clipboard from Emacs then this function should return nil.
unless statement that I pasted in the first message checks exactly this.
It may be useful for something, but evil uses this function to get the last value from the clipboard.
So I think that it is pretty safe to override gui-last-cut-in-clipboard locally, before invocation of this function.

(let ((gui-last-cut-in-clipboard nil))
        (gui--selection-value-internal what))

unless statement will always succeed in this case.

from evil.

eeshugerman avatar eeshugerman commented on May 27, 2024
os emacs version window-system select-enable-clipboard
MacOS 13.4 29.1 ns nil
NixOS 23.05 29.1 x nil

Also, up until a couple months ago I ran Emacs 29 on Arch Linux with window-system == pgtk, never noticed the issue you describe.

I can reproduce the "Register '+' is empty" error by setting select-enable-clipboard to t on my NixOS system (but not on MacOS).

I'm confused as to why you would bother with specifying the + register at all when select-enable-clipboard is t? Doesn't that essentially make + the default register? My intention in asking is not to dismiss this bug report entirely -- the "register is empty" error is clearly not the correct behavior -- just trying to understand the severity/impact of the problem.

from evil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.