From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#909: not finding etc/charsets/ should give some error/warning Date: Wed, 10 Sep 2008 16:59:59 -0400 Message-ID: References: <200809071119.m87BJSoB026156@sallyv1.ics.uci.edu> Reply-To: Glenn Morris , 909@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221082068 32329 80.91.229.12 (10 Sep 2008 21:27:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2008 21:27:48 +0000 (UTC) Cc: 909@emacsbugs.donarmstrong.com To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 10 23:28:43 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdXEx-0000DV-4q for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 23:28:43 +0200 Original-Received: from localhost ([127.0.0.1]:42039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdXDw-0005aX-Vr for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 17:27:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdXDs-0005Zn-OI for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 17:27:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdXDr-0005Zb-Bd for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 17:27:35 -0400 Original-Received: from [199.232.76.173] (port=55197 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdXDr-0005ZY-5o for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 17:27:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33272) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdXDq-000663-Tq for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 17:27:35 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8ALRX9F024787; Wed, 10 Sep 2008 14:27:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8ALA4sg018121; Wed, 10 Sep 2008 14:10:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 10 Sep 2008 21:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 909 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 909-submit@emacsbugs.donarmstrong.com id=B909.122108051115032 (code B ref 909); Wed, 10 Sep 2008 21:10:04 +0000 Original-Received: (at 909) by emacsbugs.donarmstrong.com; 10 Sep 2008 21:01:51 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8AL1lY8015026 for <909@emacsbugs.donarmstrong.com>; Wed, 10 Sep 2008 14:01:48 -0700 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KdWn9-0000Su-Dm; Wed, 10 Sep 2008 16:59:59 -0400 X-Spook: Bruxelles industrial intelligence counter terrorism JUWTF X-Ran: SQ\YHcMkh:D_;`ywa`{IKWY?(O_VNQ*us*p6`60\.c;gR2dG_I&mL!XtiSsnV#*sz;|f.' X-Hue: red X-Attribution: GM In-Reply-To: <200809071119.m87BJSoB026156@sallyv1.ics.uci.edu> (Dan Nicolaescu's message of "Sun, 07 Sep 2008 04:19:28 -0700") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 10 Sep 2008 17:27:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20449 Archived-At: Dan Nicolaescu wrote: > It would be great if some warning/error would be shown if > etc/charsets/* is not found. *** charset.c 3 Jun 2008 04:22:55 -0000 1.163 --- charset.c 10 Sep 2008 21:00:06 -0000 *************** *** 2044,2052 **** void init_charset () { ! Vcharset_map_path ! = Fcons (Fexpand_file_name (build_string ("charsets"), Vdata_directory), ! Qnil); } --- 2044,2055 ---- void init_charset () { ! Lisp_Object tempdir; ! tempdir = Fexpand_file_name (build_string ("charsets"), Vdata_directory); ! if (access (SDATA (tempdir), 0) < 0) ! dir_warning ("Warning: charsets directory (%s) does not exist.\n", ! tempdir); ! ! Vcharset_map_path = Fcons (tempdir, Qnil); }