diff lisp/mule/mule-coding.el @ 80:1ce6082ce73f r20-0b90

Import from CVS: tag r20-0b90
author cvs
date Mon, 13 Aug 2007 09:06:37 +0200
parents 54cc21c15cbb
children 364816949b59
line wrap: on
line diff
--- a/lisp/mule/mule-coding.el	Mon Aug 13 09:05:44 2007 +0200
+++ b/lisp/mule/mule-coding.el	Mon Aug 13 09:06:37 2007 +0200
@@ -42,12 +42,10 @@
 
 (defun what-coding-system (start end &optional arg)
   "Show the encoding of text in the region.
-With prefix arg, show all possible coding systems.
 This function is meant to be called interactively;
 from a Lisp program, use `detect-coding-region' instead."
   (interactive "r\nP")
-  (let ((codings (detect-coding-region start end)))
-    (message "%s" (if (or arg (symbolp codings)) codings (car codings)))))
+  (princ (detect-coding-region start end)))
 
 (defmacro with-string-as-buffer-contents (str &rest body)
   "With the contents of the current buffer being STR, run BODY.