Skip to content
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

Opening a file from *spacemacs* with the mouse pastes primary clipboard #10380

Closed
iGEL opened this issue Feb 22, 2018 · 2 comments
Closed

Opening a file from *spacemacs* with the mouse pastes primary clipboard #10380

iGEL opened this issue Feb 22, 2018 · 2 comments

Comments

@iGEL
Copy link

iGEL commented Feb 22, 2018

Description :octocat:

Clicking with the mouse on a file in *spacemacs* buffer causes to paste the content of the primary linux clipboard into the opened file.

Reproduction guide 🪲

  • Select some text in some program, so it populates the primary clipboard
  • Start Emacs
  • Left click on a file in the recent file list

Observed behaviour: 👀 💔

The content of the primary buffer is pasted at some location in the newly opened file. This does not happen when using the keyboard to open the file nor does it when clicking the file name in Dired.

Expected behaviour: ❤️ 😄

Just open the file without pasting anything 😉

System Info 💻

  • OS: gnu/linux
  • Emacs: 25.2.2
  • Spacemacs: 0.200.13
  • Spacemacs branch: master (rev. 582f9aa)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(clojure csv emacs-lisp
         (elm :variables elm-format-on-save t)
         git haskell helm html javascript markdown nginx python ruby spell-checking sql syntax-checking terraform yaml
         (version-control :variables version-control-diff-side 'left))
  • System configuration features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11

You can find my .spacemacs here

The only part missing is this

'(safe-local-variable-values
   (quote
    ((flycheck-ruby-rubocop-executable . "/home/xxx/dev/webapp/bin/drubocop"))))
@duianto
Copy link
Contributor

duianto commented Feb 22, 2018

This sounds like duplicate of:
Auto paste into the files opened by mouse-click the item below Recent Files in Spacemacs buffer #5435

The solution there seems to be to add:

(add-hook 'spacemacs-buffer-mode-hook (lambda ()
(set (make-local-variable 'mouse-1-click-follows-link) nil)))

to the dotspacemacs/user-config section of your .spacemacs.
source: #5435 (comment)

@iGEL
Copy link
Author

iGEL commented Feb 22, 2018

Right, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants