From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#909: not finding etc/charsets/ should give some error/warning Date: Wed, 10 Sep 2008 23:37:23 -0700 Message-ID: <200809110637.m8B6bNm1023329@sallyv1.ics.uci.edu> References: <200809071119.m87BJSoB026156@sallyv1.ics.uci.edu> Reply-To: Dan Nicolaescu , 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 1221116872 6180 80.91.229.12 (11 Sep 2008 07:07:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 07:07:52 +0000 (UTC) Cc: 909@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 09:08:48 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 1KdgIG-0002tM-G4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 09:08:45 +0200 Original-Received: from localhost ([127.0.0.1]:45623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdgHF-0007nm-Tw for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 03:07:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdgHA-0007nL-QR for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 03:07:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdgHA-0007n8-3M for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 03:07:36 -0400 Original-Received: from [199.232.76.173] (port=48789 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdgH9-0007n2-Sq for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 03:07:35 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:39404) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdgH9-0000Fs-2z for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 03:07:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdgH8-0001zI-ES for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 03:07:34 -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 m8B77XwO006605; Thu, 11 Sep 2008 00:07:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8B6o4or031898; Wed, 10 Sep 2008 23:50:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Dan Nicolaescu Original-Sender: dann@ics.uci.edu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 11 Sep 2008 06:50: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.122111521029008 (code B ref 909); Thu, 11 Sep 2008 06:50:04 +0000 Original-Received: (at 909) by emacsbugs.donarmstrong.com; 11 Sep 2008 06:40:10 +0000 Original-Received: from sallyv1.ics.uci.edu (sallyv1.ics.uci.edu [128.195.1.109]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8B6e7E8028422 for <909@emacsbugs.donarmstrong.com>; Wed, 10 Sep 2008 23:40:08 -0700 X-ICS-MailScanner-Watermark: 1221719844.30919@+BXzcBSKDStj6cFRO/dDUA Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m8B6bNm1023329; Wed, 10 Sep 2008 23:37:23 -0700 (PDT) In-Reply-To: (Glenn Morris's message of "Wed, 10 Sep 2008 16:59:59 -0400") Original-Lines: 35 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Resent-Date: Thu, 11 Sep 2008 03:07:36 -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:20464 Archived-At: Glenn Morris writes: > 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); Thanks. How about saying something like "Emacs will not function correctly in this condition", or something of the sort, to emphasize that the situation is quite bad?