summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/select.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/select.el b/lisp/select.el
index 935ad10cbf3..59bcf7da664 100644
--- a/lisp/select.el
+++ b/lisp/select.el
@@ -485,7 +485,7 @@ two markers or an overlay. Otherwise, it is nil."
;; are eight-bit and ensure they are converted to their
;; single-byte representation.
(or (null (multibyte-string-p str))
- (setq str (encode-coding-string 'raw-text-unix str))))
+ (setq str (encode-coding-string str 'raw-text-unix))))
(t
(error "Unknown selection type: %S" type)))))