changeset 19156:2bd381f7e297

(standard-display-cyrillic-translit): Set standard-display-table here, not when loading the file. Read argument properly with `interactive'.
author Richard M. Stallman <rms@gnu.org>
date Tue, 05 Aug 1997 05:00:55 +0000
parents 20fda18753c2
children 5dada86a0c63
files lisp/language/cyril-util.el
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/cyril-util.el	Tue Aug 05 04:44:55 1997 +0000
+++ b/lisp/language/cyril-util.el	Tue Aug 05 05:00:55 1997 +0000
@@ -41,8 +41,6 @@
 	    '("Russian")  '("Ukrainian"))
       "*List of known cyrillic languages")
 
-(setq standard-display-table (make-display-table))
-
 ;;;###autoload
 (defun standard-display-cyrillic-translit (&optional cyrillic-language)
   "Display a cyrillic buffer using a transliteration.
@@ -54,13 +52,15 @@
 Possible values are listed in 'cyrillic-language-alist'.
 If the argument is t, we use the default cyrillic transliteration.
 If the argument is nil, we return the display table to its standard state."
-  (interactive)
-  (if (interactive-p)
-      (let* ((completion-ignore-case t))
-	(setq cyrillic-language 
-	      (completing-read
-	       "Cyrillic language (default nil): "
-	       cyrillic-language-alist nil t nil nil nil))))
+  (interactive
+   (list
+    (let* ((completion-ignore-case t))
+      (completing-read
+       "Cyrillic language (default nil): "
+       cyrillic-language-alist nil t nil nil nil))))
+
+  (or standard-display-table
+      (setq standard-display-table (make-display-table)))
 
   (if (equal cyrillic-language "")
       (setq cyrillic-language nil))