From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Update ispell-dictionary to text language Date: Fri, 15 Jan 2010 08:14:24 +0100 Message-ID: <0D07D866-37AB-419D-BB59-61DC376681FB@gmail.com> References: <87d41gkhjb.fsf@mundaneum.com> <87k4vod5f8.fsf@in-ulm.de> <873a2ai9vx.fsf@mundaneum.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVh27-0007yJ-53 for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 02:55:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVh22-0007x0-2t for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 02:55:50 -0500 Received: from [199.232.76.173] (port=39493 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVh20-0007wi-5c for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 02:55:44 -0500 Received: from mx20.gnu.org ([199.232.41.8]:3034) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVh1z-0005QM-Dh for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 02:55:43 -0500 Received: from ey-out-1920.google.com ([74.125.78.149]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVh1y-0002JP-Li for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 02:55:42 -0500 Received: by ey-out-1920.google.com with SMTP id 4so122391eyg.34 for ; Thu, 14 Jan 2010 23:55:41 -0800 (PST) In-Reply-To: <873a2ai9vx.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?S=E9bastien_Vauban?= Cc: emacs-orgmode@gnu.org I have seen this thread and I am still contemplating what to do with it. More input and opinions would be welcome. - Carsten On Jan 13, 2010, at 11:20 AM, S=E9bastien Vauban wrote: > Hi Benjamin, > > Benjamin Andresen wrote: >> S=E9bastien Vauban writes: >>> >>> Here my proposal (and my very first self-written chunk of ELisp =20 >>> code) for >>> switching to the right language for ispell, upon reading the =20 >>> contents of >>> the meta-tag `LANGUAGE'. >> >> I think using File Variables are better for this. For no particular =20= >> reason >> except they are standardized and don't require any additional code =20= >> in Org >> Mode. >> (info "(emacs)Specifying File Variables") >> # -*- ispell-local-dictionary: "german" -*- > > I know them, even use them in directories (see `.dir-locals.el'), =20 > instead of > files. > > --8<---------------cut here---------------start------------->8--- > ((org-mode . ((ispell-local-dictionary . "american") > (time-stamp-format . "%:y-%02m-%02d") > (time-stamp-start . "^#\\+DATE: +") > (time-stamp-end . "$")))) > --8<---------------cut here---------------end--------------->8--- > > BUT there is a *language specification* in the Org template: > > --8<---------------cut here---------------start------------->8--- > #+TITLE: Scorpios.org > #+AUTHOR: Seb Vauban > #+EMAIL: no@one.com > #+DATE: 2010-01-13 Wed > #+DESCRIPTION: > #+KEYWORDS: > #+LANGUAGE: en > --8<---------------cut here---------------end--------------->8--- > ^^ > > AND it is *used by Org* (at least for the HTML export, and for LaTeX =20= > as well I > think -- or, in any case, it should use it). > > Thus, I try to avoid declaring which language is used in the buffer =20= > at two > different spots, because we can change one and forget to change the =20= > other. > > Therefore, I would like to keep only one language declaration (the =20 > one of the > Org template, in this case), and get Emacs follow it. > > Does this make sense? > > Best regards, > Seb > > --=20 > S=E9bastien Vauban > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten