aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/charset.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/charset.c b/src/charset.c
index 151ae006607..8f044f1e1ad 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -110,7 +110,7 @@ struct charset *emacs_mule_charset[256];
110 CHARS, and FINAL-CHAR) to Emacs' charset. */ 110 CHARS, and FINAL-CHAR) to Emacs' charset. */
111int iso_charset_table[ISO_MAX_DIMENSION][ISO_MAX_CHARS][ISO_MAX_FINAL]; 111int iso_charset_table[ISO_MAX_DIMENSION][ISO_MAX_CHARS][ISO_MAX_FINAL];
112 112
113Lisp_Object Vcharset_map_directory; 113Lisp_Object Vcharset_map_path;
114 114
115Lisp_Object Vchar_unified_charset_table; 115Lisp_Object Vchar_unified_charset_table;
116 116
@@ -406,8 +406,7 @@ load_charset_map_from_file (charset, mapfile, control_flag)
406 suffixes = Fcons (build_string (".map"), 406 suffixes = Fcons (build_string (".map"),
407 Fcons (build_string (".TXT"), Qnil)); 407 Fcons (build_string (".TXT"), Qnil));
408 408
409 fd = openp (Fcons (Vcharset_map_directory, Qnil), mapfile, suffixes, 409 fd = openp (Vcharset_map_path, mapfile, suffixes, NULL, Qnil);
410 NULL, Qnil);
411 if (fd < 0 410 if (fd < 0
412 || ! (fp = fdopen (fd, "r"))) 411 || ! (fp = fdopen (fd, "r")))
413 { 412 {
@@ -2039,7 +2038,9 @@ Return charset identification number of CHARSET. */)
2039void 2038void
2040init_charset () 2039init_charset ()
2041{ 2040{
2042 2041 Vcharset_map_path
2042 = Fcons (Fexpand_file_name (build_string ("charsets"), Vdata_directory),
2043 Qnil);
2043} 2044}
2044 2045
2045 2046
@@ -2131,11 +2132,9 @@ syms_of_charset ()
2131 defsubr (&Sset_charset_priority); 2132 defsubr (&Sset_charset_priority);
2132 defsubr (&Scharset_id_internal); 2133 defsubr (&Scharset_id_internal);
2133 2134
2134 DEFVAR_LISP ("charset-map-directory", &Vcharset_map_directory, 2135 DEFVAR_LISP ("charset-map-path", &Vcharset_map_path,
2135 doc: /* Directory of charset map files that come with GNU Emacs. 2136 doc: /* *Lisp of directories to search for charset map files. */);
2136The default value is sub-directory "charsets" of `data-directory'. */); 2137 Vcharset_map_path = Qnil;
2137 Vcharset_map_directory = Fexpand_file_name (build_string ("charsets"),
2138 Vdata_directory);
2139 2138
2140 DEFVAR_LISP ("charset-list", &Vcharset_list, 2139 DEFVAR_LISP ("charset-list", &Vcharset_list,
2141 doc: /* List of all charsets ever defined. */); 2140 doc: /* List of all charsets ever defined. */);