]> git.eshelyaron.com Git - emacs.git/commitdiff
(selection-coding-system): Make it a defcustom, and add the properties
authorGlenn Morris <rgm@gnu.org>
Fri, 8 Feb 2008 20:16:52 +0000 (20:16 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 8 Feb 2008 20:16:52 +0000 (20:16 +0000)
from cus-start.el.  Bump :version.

lisp/ChangeLog
lisp/select.el

index 3e1c40b930c1d5be2924c8fe3c0f83b390d3827a..5bb3f728bddd47a9f7ecbdb773257fe627df1991 100644 (file)
 
 2008-02-08  Glenn Morris  <rgm@gnu.org>
 
+       * cus-start.el (selection-coding-system): Remove, since it's now
+       defined in select.el rather than in xselect.c.
+       * select.el (selection-coding-system): Make it a defcustom, and
+       add the properties from cus-start.el.  Bump :version.
+
        * custom.el (custom-theme-set-variables): Sort symbols that are
        dependencies before symbols that depend on them.
        (custom-enabled-themes): Set after custom-theme-directory.
index 47e3699e2818550bdf55490324b1dec72733798e..34f63d7dd1b32d4b720a71b47b6b4b808b3f9fd8 100644 (file)
@@ -28,7 +28,7 @@
 
 ;;; Code:
 
-(defvar selection-coding-system nil
+(defcustom selection-coding-system nil
   "Coding system for communicating with other X clients.
 
 When sending text via selection and clipboard, if the target
@@ -50,7 +50,14 @@ proper coding system is used according to the data-type as above.
 See also the documentation of the variable `x-select-request-type' how
 to control which data-type to request for receiving text.
 
-The default value is nil.")
+The default value is nil."
+  :type 'coding-system
+  :group 'mule
+  ;; Default was compound-text-with-extensions in 22.x (pre-unicode).
+  :version "23.1"
+  :set (lambda (symbol value)
+         (set-selection-coding-system value)
+         (set symbol value)))
 
 (defvar next-selection-coding-system nil
   "Coding system for the next communication with other X clients.