]> git.eshelyaron.com Git - emacs.git/commitdiff
(top-level): Require cl when compiling.
authorGlenn Morris <rgm@gnu.org>
Thu, 10 Sep 2009 06:20:25 +0000 (06:20 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 10 Sep 2009 06:20:25 +0000 (06:20 +0000)
(view-hello-file): Use default-value rather than
default-enable-multibyte-characters.

lisp/international/mule-cmds.el

index 96c17ed463404d23c3172515dea55eba2932c841..ec7a351abda7dc80c0435a30292875dc7790e9b5 100644 (file)
@@ -31,6 +31,8 @@
 
 ;;; Code:
 
+(eval-when-compile (require 'cl))      ; letf
+
 (defvar dos-codepage)
 (autoload 'widget-value "wid-edit")
 
@@ -281,9 +283,9 @@ wrong, use this command again to toggle back to the right mode."
   "Display the HELLO file, which lists many languages and characters."
   (interactive)
   ;; We have to decode the file in any environment.
-  (let ((default-enable-multibyte-characters t)
-       (coding-system-for-read 'iso-2022-7bit))
-    (view-file (expand-file-name "HELLO" data-directory))))
+  (letf (((default-value 'enable-multibyte-characters) t)
+        (coding-system-for-read 'iso-2022-7bit))
+       (view-file (expand-file-name "HELLO" data-directory))))
 
 (defun universal-coding-system-argument (coding-system)
   "Execute an I/O command using the specified coding system."