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

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

bug#56325: closed ([REGRESSION] (clipboard-yank) always pastes from kill


From: GNU bug Tracking System
Subject: bug#56325: closed ([REGRESSION] (clipboard-yank) always pastes from kill-ring after text copy)
Date: Fri, 01 Jul 2022 08:28:01 +0000

Your message dated Fri, 01 Jul 2022 16:27:16 +0800
with message-id <87k08xdyqj.fsf@yahoo.com>
and subject line Re: bug#56325: [REGRESSION] (clipboard-yank) always pastes 
from kill-ring after text copy
has caused the debbugs.gnu.org bug report #56325,
regarding [REGRESSION] (clipboard-yank) always pastes from kill-ring after text 
copy
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
56325: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56325
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [REGRESSION] (clipboard-yank) always pastes from kill-ring after text copy Date: Thu, 30 Jun 2022 16:48:19 +0300 User-agent: Evolution 3.44.2
After upgrade to latest development version at:

      fb0d95984b: Put the obsoletion earlier in the *Help* buffer

I found out that using (clipboard-yank) and (x-clipboard-yank) when
`select-enable-clipboard` is set to t, after copying a text to
clipboard once, results in them pasting from kill-ring instead of
clipboard.

# Steps to reproduce

1. Create /tmp/.emacs file with the following content:

    (setq select-enable-clipboard nil
          inhibit-startup-screen t)

    (defun clipboard-yank-test ()
      (interactive)
      (let ((select-enable-clipboard t))
        (clipboard-yank)))
    (global-set-key "\C-y" 'clipboard-yank-test)

    (defun clipboard-copy-fixed ()
      (interactive)
      (let ((select-enable-clipboard t))
        (clipboard-kill-ring-save (region-beginning)(region-end))))
    (global-set-key "\M-w" 'clipboard-copy-fixed)

2. Launch `HOME=/tmp/ emacs`
3. [you're in a *scratch* buffer] Move caret till word "create" on the
2nd line, select it by pressing M-f, then copy to the system clipboard
by pressing M-w
4. Move caret to another word, e.g. "file"
5. Delete the word "file" by pressing M-d
5. Press C-y to paste the current clipboard content

## Expected

A word "create" will be inserted as it is in the system clipboard.

Note: (clipboard-yank-test) pastes from the system clipboard not the
kill-ring due to `select-enable-clipboard` being set locally to t.

## Actual

The word you deleted in *scratch* buffer will be inserted instead of
"create".



--- End Message ---
--- Begin Message --- Subject: Re: bug#56325: [REGRESSION] (clipboard-yank) always pastes from kill-ring after text copy Date: Fri, 01 Jul 2022 16:27:16 +0800 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)
Konstantin Kharlamov <hi-angel@yandex.ru> writes:

> Thank you, I confirm the problem is no longer reproducible with latest
> master at efc2a878de

I'm closing this bug then.  Thanks for testing.


--- End Message ---

reply via email to

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