From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58003 Path: main.gmane.org!not-for-mail From: =?utf-8?Q?Arne_J=C3=B8rgensen?= Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug in nnmaildir? Date: Tue, 29 Jun 2004 22:49:16 +0200 Organization: emfle birnan Sender: ding-owner@lists.math.uh.edu Message-ID: <87isda144z.fsf@seamus.arnested.dk> References: <20040529065248.GB804@ipanel.cn> <87hdsyqdsx.fsf@seamus.arnested.dk> <873c4ihx7m.fsf@seamus.arnested.dk> <87n02m16up.fsf@seamus.arnested.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1088542212 5755 80.91.224.253 (29 Jun 2004 20:50:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 20:50:12 +0000 (UTC) Original-X-From: ding-owner+M6544@lists.math.uh.edu Tue Jun 29 22:50:01 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfPYG-0006cE-00 for ; Tue, 29 Jun 2004 22:50:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BfPXl-00053e-00; Tue, 29 Jun 2004 15:49:29 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BfPXd-00053W-00 for ding@lists.math.uh.edu; Tue, 29 Jun 2004 15:49:21 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BfPXc-0006iM-9a for ding@lists.math.uh.edu; Tue, 29 Jun 2004 15:49:20 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 401DB3A003A for ; Tue, 29 Jun 2004 15:49:19 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BfPXa-0002ka-00 for ; Tue, 29 Jun 2004 22:49:18 +0200 Original-Received: from 62.79.156.20.adsl.vbr.tiscali.dk ([62.79.156.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Jun 2004 22:49:18 +0200 Original-Received: from arne by 62.79.156.20.adsl.vbr.tiscali.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Jun 2004 22:49:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 38 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 62.79.156.20.adsl.vbr.tiscali.dk X-Face: 5t,7/Y$&<1A_t.$vC2{pWZ{m@3_06;kcm]no{hgEL/}Uz(>XV6cl4}xO\v?-h3%>znNaZtq `~rf,GY1T%r=a.zH`hOb(-]'x)nI088Z&|e;V^h;/TShou User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:zAJklAZZUhujyZI1T7KZUwxTv0E= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58003 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58003 prj@po.cwru.edu (Paul Jarc) writes: > Arne J=C3=B8rgensen wrote: >> prj@po.cwru.edu (Paul Jarc) writes: >>> Ouch. Does anyone know if there's a way to get at the localization >>> bits from Elisp? So I could look for >>> (locale-translation "no such file or directory") or some such? >> >> Isn't the text coming from some library and not from emacs code? > > Maybe. But I think it's possible for Emacs to expose the translation > function anyway - which is not to say that it actually does. How about setting the locale to en_US with the system-messages-locale variable when running the function? This is the description of system-messages-locale from the Elisp Reference Manual: This variable specifies the locale to use for generating system error messages. Changing the locale can cause messages to come out in a different language or in a different orthography. If the variable is `nil', the locale is specified by environment variables in the usual POSIX fashion. >> How about checking the existence of the file or directory before >> accessing it instead of the depending on the error message afterwards? > > That's what it did before; I changed it to make it faster. Ok. Kind regards, --=20 Arne J=C3=B8rgensen Gammel Kongevej 7, 1.th., 1610 K=C3=B8benhavn V mobil: 21 65 01 13 e-post: arne@arnested.dk,