aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-04 23:24:46 +0000
committerRichard M. Stallman1994-07-04 23:24:46 +0000
commit64f62b4508e4b990df65a21709ceb01d31eb20b0 (patch)
tree35555704293c316a44d4bb396dcd50ab9bc4c430
parent3e1c918b551ab61bcade45665e7dcd7be8c7027d (diff)
downloademacs-64f62b4508e4b990df65a21709ceb01d31eb20b0.tar.gz
emacs-64f62b4508e4b990df65a21709ceb01d31eb20b0.zip
(iso-8859-1-locale-regexp): New variable.
(command-line): Use it.
-rw-r--r--lisp/startup.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 1f36da823e8..4fece7dda51 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -201,6 +201,9 @@ this variable, if non-nil; 2. `~/.emacs'; 3. `default.el'.")
201 (x-popup-menu nil (cdr (cdr (car submap))))) 201 (x-popup-menu nil (cdr (cdr (car submap)))))
202 (setq submap (cdr submap)))))) 202 (setq submap (cdr submap))))))
203 203
204(defconst iso-8859-1-locale-regexp "iso[-_]?8859[-_]1"
205 "Use ISO 8859-1 character set by default if this regexp matches LC_CTYPE.")
206
204(defun command-line () 207(defun command-line ()
205 (setq command-line-default-directory default-directory) 208 (setq command-line-default-directory default-directory)
206 209
@@ -217,8 +220,7 @@ this variable, if non-nil; 2. `~/.emacs'; 3. `default.el'.")
217 (string= vc "simple")) 220 (string= vc "simple"))
218 (setq version-control 'never)))) 221 (setq version-control 'never))))
219 222
220 (if (or (string-equal (getenv "LC_CTYPE") "iso_8859_1") 223 (if (string-match iso-8859-1-locale-regexp (getenv "LC_CTYPE"))
221 (string-equal (getenv "LC_CTYPE") "iso-8859-1"))
222 (progn 224 (progn
223 (standard-display-european t) 225 (standard-display-european t)
224 (require 'iso-syntax))) 226 (require 'iso-syntax)))