aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2008-09-12 03:11:38 +0000
committerGlenn Morris2008-09-12 03:11:38 +0000
commitc8f94403424bc811ab2f7b8998648f936794476d (patch)
treeb68b9af708994c48c1251aec850a476f057131b5 /src
parent835963480419fcb737b6eb0f7ed0bda1f317159e (diff)
downloademacs-c8f94403424bc811ab2f7b8998648f936794476d.tar.gz
emacs-c8f94403424bc811ab2f7b8998648f936794476d.zip
(init_charset): Warn if etc/charsets not found. (Bug#909)
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/charset.c19
2 files changed, 18 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e16899d101a..bef4d029e93 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-09-12 Glenn Morris <rgm@gnu.org>
2
3 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
4
12008-09-11 Glenn Morris <rgm@gnu.org> 52008-09-11 Glenn Morris <rgm@gnu.org>
2 6
3 * charset.c (charset-map-path): Doc fix. 7 * charset.c (charset-map-path): Doc fix.
diff --git a/src/charset.c b/src/charset.c
index 217f51b15fb..43155d2cc65 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1,6 +1,6 @@
1/* Basic character set support. 1/* Basic character set support.
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3 2006, 2007, 2008 Free Software Foundation, Inc. 3 2008 Free Software Foundation, Inc.
4 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
5 2005, 2006, 2007, 2008 5 2005, 2006, 2007, 2008
6 National Institute of Advanced Industrial Science and Technology (AIST) 6 National Institute of Advanced Industrial Science and Technology (AIST)
@@ -2044,9 +2044,18 @@ Return charset identification number of CHARSET. */)
2044void 2044void
2045init_charset () 2045init_charset ()
2046{ 2046{
2047 Vcharset_map_path 2047 Lisp_Object tempdir;
2048 = Fcons (Fexpand_file_name (build_string ("charsets"), Vdata_directory), 2048 tempdir = Fexpand_file_name (build_string ("charsets"), Vdata_directory);
2049 Qnil); 2049 if (access (SDATA (tempdir), 0) < 0)
2050 {
2051 dir_warning ("Error: charsets directory (%s) does not exist.\n\
2052Emacs will not function correctly without the character map files.\n\
2053Please check your installation!\n",
2054 tempdir);
2055 /* TODO should this be a fatal error? (Bug#909) */
2056 }
2057
2058 Vcharset_map_path = Fcons (tempdir, Qnil);
2050} 2059}
2051 2060
2052 2061