-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking a link in recentf in the startup screen causes contents from the kill-ring from the previous session to be pasted in the opened buffer. #5059
Comments
Can you please update your issue to follow this template? |
DescriptionClicking a recently opened file in Recent Files in the startup screen inserts some text. This does not occur then opening a file via find-file. System Info
|
Interestingly, this also does not happen when clicking the recent file link by pressing space bar. I tried searching any bindings to |
Have you some precise reproduction steps? Because clicking on a link in the recentf list doesn't yank anything on my side. |
I just click a link in the recentf after starting Emacs and it pastes something into the file buffer it switches to. This also occurs, if the file is already loaded in some buffer. |
These are my activated layers:
|
@StreakyCobra I could reproduce it with a blank Spacemacs install:
|
I can't reproduce this, even with a fresh install 😳 |
I have the same problem. The text that is pasted into the emacs buffer seems to come from the selection buffer of X. System Info 💻
(auto-completion emacs-lisp haskell spell-checking syntax-checking themes-megapack)
|
Copying my comment from the duplicate issue #6765: Spacemacs binds I have tried to debug why the clipboard text is inserted to the buffer, but I couldn't find where that happens. Stepping through Removing the I have managed to reproduce the bug outside of the home buffer (but still inside Spacemacs) by evaluating the following code, and then in the scratch buffer calling (defun create-debug-button ()
(interactive)
(widget-create 'push-button
:action (lambda (&rest ignore)
(find-file-existing "~/tmp-file"))
:mouse-face 'highlight
:follow-link "\C-m"
:button-prefix ""
:button-suffix ""
:format "%[%t%]"
(abbreviate-file-name "~/tmp-file")))
(defun set-debug-click ()
(interactive)
(local-set-key [down-mouse-1] 'widget-button-click)) I don't know if I'll have time to debug this further, but the next steps should be:
|
Same problem here with Emacs 25.1.1 DescriptionLeft clicking on a file in the Reproduces every time with Emacs 25 on Gentoo, doesn't reproduce with Emacs 24.5.1 on Ubuntu Yakkety. Workaround from #6765 (comment) makes the problem go away. Reproduction guide 🪲
Observed behaviour: 👀 💔
Expected behaviour: ❤️ 😄 System Info 💻
(emacs-lisp)
Desktop: Xfce 4.12, Distribution: Gentoo Trace 🐾
In
|
I observe the exact same behaviour under Linux, emacs version 25.0.93, spacemacs 0.200.9. Is there any progress on this? |
Same for me on Arch Linux. |
Also experiencing this on Arch Linux, Emacs 25.3.1, latest develop branch. |
Same on Kubuntu 17.10, emacs 25.2.2, spacemacs 0.200.13. I'm happy to find out it's a known issue, and not me being careless with my keystrokes, though. |
Same on Debian Buster testing , Emacs 25.2.2, Spacemacs 0.200.10.
Same here. The solution mentioned on :#10380 (comment) seems to fix the issue for me: (add-hook 'spacemacs-buffer-mode-hook (lambda ()
(set (make-local-variable 'mouse-1-click-follows-link) nil))) |
Can confirm, OS X, 0.200.1@25.3.1, and that @4goodapp's solution works. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
I don't make use of custom settings for persistence like
desktop
, so I suspect this to be an issue regarding a certain persistence package that is configured by Spacemacs. I've also tried removing the.cache
folder, but it still occurs. Which packages could cause this behavior?The text was updated successfully, but these errors were encountered: