0

When I open a file in Emacs, it somehow copies the file path into my clipboard. It's not a desired behavior. How to turn it off?

I'm using GNU Emacs 24.3.1, build with Cocoa.

katspaugh
  • 17,449
  • 11
  • 66
  • 103

1 Answers1

1

First step would be to know "who" is copying that into the clipboard.

Is the window system clipboard we are talking about?

If so, you can do

(setq debug-on-error t)
(fset 'x-set-selection nil)

and then open a file. Hopefully the stack trace should give you a clue of what package is doing that.

elemakil
  • 3,681
  • 28
  • 53
juanleon
  • 9,220
  • 30
  • 41
  • Figured it out. It was me being silly expecting `M-backspace` shouldn't put them pathnames into the kill ring. Thanks for confirming it wasn't something specific of `find-file`. – katspaugh Aug 09 '13 at 14:23