]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-current-coding-system):
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 27 May 2008 20:09:51 +0000 (20:09 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 27 May 2008 20:09:51 +0000 (20:09 +0000)
Don't assume selection-coding-system is always defined.

lisp/ChangeLog
lisp/international/mule-diag.el

index 05308ac0cd4ea1ab885b27069363891592d8dfe6..afcee6d44eb3eed4c296f10f6247f383cfd56502 100644 (file)
@@ -1,5 +1,8 @@
 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * international/mule-diag.el (describe-current-coding-system):
+       Don't assume selection-coding-system is always defined.
+
        * tar-mode.el: Use defstruct and markers.
        (tar-setf): Remove.
        (tar-header): Use defstruct.  Add `data-start' field.
index 5b58af5fcd9cf943264b62cdc8dca7949852e848..91c7ef782077eef7d597e44fef21a2e3f1f9b05a 100644 (file)
@@ -599,8 +599,9 @@ docstring, and print only the first line of the docstring."
       (print-coding-system-briefly (keyboard-coding-system))
       (princ "Coding system for terminal output:\n  ")
       (print-coding-system-briefly (terminal-coding-system))
-      (princ "Coding system for inter-client cut and paste:\n  ")
-      (print-coding-system-briefly selection-coding-system)
+      (when (boundp 'selection-coding-system)
+          (princ "Coding system for inter-client cut and paste:\n  ")
+          (print-coding-system-briefly selection-coding-system))
       (when (get-buffer-process (current-buffer))
        (princ "Coding systems for process I/O:\n")
        (princ "  encoding input to the process: ")