Carbon Emacs does not paste Microsoft Word's copied contents

前提是你 提交于 2019-12-12 20:14:22

问题


Not Sure if Stackoverflow is right site.

I'm using carbon emacs 22.0.971 on mac ox 10.6.7. And MS word 12.2.8. I have some text in MS word which i want to copy and paste into emacs. I do the normal procedure cmd C in word, C-y in emacs, but the text does not get copied in emacs, instead it looks a bitmap of the copied text is passed. One big image which can be deleted with one C-d. I can get around it: paste the text in mac ox' text editor. But for me it is new emacs behavior. Is there a way to force emacs to paste the clipboard as plain text?

regards, Jeroen.


回答1:


That's because yank does not not paste from the clipboard, but from the kill ring. Try M-x clipboard-yank instead.

If you do not want to type that command every time, bind it to some keyboard shortcut, e.g. C-x y, by putting the following line into your .emacs file:

(global-set-key [(control x) (y)] 'clipboard-yank)



回答2:


I had the same problem and the above answer did not help. After looking at the 'yank' helptext, I added this to my .emacs, which seems to work:

;; clipboard yank is pasting graphics from MS instead of text.  
;; Strip all properties
(setq-default yank-excluded-properties 't)


来源:https://stackoverflow.com/questions/6211915/carbon-emacs-does-not-paste-microsoft-words-copied-contents

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!