Emacs in text-mode puts a \ character (backslash) at the end of a wrapped line.
I would like to not have that displayed, so I can copy-paste from such a window into another one, without getting the \ in the pasted text.
I'm sure there is an easy solution for this, but I couldn't find it (neither online, nor in the emacs manual). The closest seems to be Disable little arrows on far end of line.
Distilled from all the replies and links therein, this is what I ended up using for emacs (22.1.1) included in Mac OS X 10.8.3. It works great. Thanks again for all the help!
;; copy to Mac clipboard (for copying text the wrapped '\' lines
(defun copy-to-mac-clipboard ()
"Copy currently selected region to Mac clipboard (useful for wrapped '\\' lines)"
(interactive)
(if (> (- (region-end) (region-beginning)) 0)
(progn
(shell-command-on-region (region-beginning) (region-end) "pbcopy")
(message "region copied to Mac clipboard (%d chars)" (- (region-end) (region-beginning)))
(if (and transient-mark-mode mark-active)
(deactivate-mark)))
(progn
(message "no region active"))
))
;; put this next to M-w, which is kill-ring-save (copy to emacs clipboard)
(global-set-key "\M-e" 'copy-to-mac-clipboard)