I see, Jordan has already answered a similar issue here - http://emacs.stackexchange.com/questions/13194/how-can-i-clear-the-contents-of-the-clipboard-before-calling-clipboard-kill-regi. It works with emacs gui but not with emacs in terminal...
– MadhavanJul 31 '15 at 13:58
`kill-new` works fine for me for copying stuff to system clipboard with `x-select-enable-clipboard` and `x-select-enable-primary` set to `t` on RHEL 5.10. What is your OS? Also can you update your question as this is not specific to copying buffer file names?
– Kaushal ModiJul 31 '15 at 14:51
`package-install xclip` and `(xclip-mode 1)` made it.. you guys are making my life beautiful.... on ubuntu 14.04
– MadhavanJul 31 '15 at 14:54