From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Benjamin Slade Newsgroups: gmane.emacs.help Subject: Re: elisp - common lisp - new calendrical calculations Date: Mon, 13 Jun 2011 11:35:34 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba53a23c5aeae504a59a83b1 X-Trace: dough.gmane.org 1307983073 17022 80.91.229.12 (13 Jun 2011 16:37:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 16:37:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 13 18:37:49 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QWA8z-0004eQ-PC for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jun 2011 18:37:42 +0200 Original-Received: from localhost ([::1]:50861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWA8y-00049E-Sl for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jun 2011 12:37:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWA7K-000494-1Q for help-gnu-emacs@gnu.org; Mon, 13 Jun 2011 12:35:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWA7I-00019p-Mz for help-gnu-emacs@gnu.org; Mon, 13 Jun 2011 12:35:58 -0400 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:51403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWA7I-00019l-IL for help-gnu-emacs@gnu.org; Mon, 13 Jun 2011 12:35:56 -0400 Original-Received: by vxk20 with SMTP id 20so4945492vxk.0 for ; Mon, 13 Jun 2011 09:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type; bh=4PxtPM0oo5f452CyeVKnsWtDYnTk8R5ZI9Cao8WvSE0=; b=CBOIwIewxi5IJBHY1G0pVuJyh3WzDddDykjOVNDllOs96dDWZb2Mn/bP3pFZ1QJ/dG 6HmYkp35hIg0n6I9gUwQy6HsvcWqvfXmaoLMjKmb1ieNfRtTCYKUbsLmtHlTNp8JT5S4 zMVUjoT+hEQMFs4WzwVXCrsKWI7ctQlCT1Tu0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=r8O6xUtVlgB77Frs10aM5wWzqkMEuNLwqHz3TZ7/JsQvfBIFxQ4cntamJWe9mcwrul lXODbZdBNGvDnjjWsGEjE8cuNhqjG4QfnwkCOtTyIVpW6tu+1mmb8iv1TTqDORU62ZV6 V76USZlKAbhyRZAtx5NLTtgy3Rtk0Y2W3vN7k= Original-Received: by 10.220.201.70 with SMTP id ez6mr1964058vcb.181.1307982954162; Mon, 13 Jun 2011 09:35:54 -0700 (PDT) Original-Received: by 10.220.202.129 with HTTP; Mon, 13 Jun 2011 09:35:34 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: MAmoGd9JpmoM30bip2LZItk5o_s X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.220.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81343 Archived-At: --90e6ba53a23c5aeae504a59a83b1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks, Drew. I'll try emas-devel@gnu.org. On 13 June 2011 11:19, Drew Adams wrote: > > > I would like to add a "module" to Emacs for converting > > from Gregorian dates into traditional Indian/Hindu dates > > (Bikrama Samvat), and, perhaps more> importantly, for > > calculating Hindu holidays. > > > > I found a very nice set of functions for doing so implemented > > in Common Lisp in *Deshow, Nachum and Reingold, Edward M. 2008. > > _Calendrical Calculations_. New York: Cambridge University > > Press, 3rd edn*. What is the best way of using this code in > > Emacs? I know that Emacs Lisp is different from Common Lisp - > > and I also know that there is/are package(s?) for using Common > > Lisp within Emacs. > > > > What I don't know is: > > (1) Can this code just be converted into Emacs Lisp? > > Or are there bits of it which would require Common Lisp? > > I can't help you directly, but you might want to pose this question to > emacs-devel@gnu.org. > > IIRC, Ed Reingold wrote the calendar stuff for Emacs (in Emacs Lisp), so = it > is > likely that either this has already been done for Emacs (perhaps in a lat= er > version than the one you're using) or it will be done. In any case, try > asking > the Emacs developers about this (emacs-devel@gnu.org). > > > --=20 ---------------------------------------------------------------------------= -------------------------- Benjamin Slade Dept. of Linguistics University of Illinois at Urbana-Champaign [ http://www.jnanam.net/slade/ ] St=C3=A6fcr=C3=A6ft & Vy=C4=81kara=E1=B9=87a (lingblog) - http://staefcraef= t.blogspot.com The Babbage Files (techblog) - http://babbagefiles.blogspot.com ---------------------------------------------------------------------------= -------------------------- *=E0=A4=AA*=E0=A4=B0=E0=A5=8B =E0=A4=BD=E0=A4=95=E0=A5=8D=E0=A4=B7=E0=A5= =91=E0=A4=95=E0=A4=BE*=E0=A4=AE=E0=A4=BE* =E0=A4=B9=E0=A4=BF *=E0=A4=A6=E0= =A5=87*=E0=A4=B5=E0=A4=BE=E0=A4=83 'The gods love the obscure.' (=C5=9Aatapathabr=C4=81ma=E1=B9=87a 6.1.1.= 2) --90e6ba53a23c5aeae504a59a83b1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks, Drew. I'll try emas-devel= @gnu.org.

On 13 June 2011 11:19, Drew= Adams <drew.= adams@oracle.com> wrote:

> I would like to add a "module" to Emacs for converting
> from Gregorian dates into traditional Indian/Hindu dates
> (Bikrama Samvat), and, perhaps more> =C2=A0importantly, for
> calculating Hindu holidays.
>
> I found a very nice set of functions for doing so implemented
> in Common Lisp in *Deshow, Nachum and Reingold, Edward M. 2008.
> _Calendrical Calculations_. New York: Cambridge University
> Press, 3rd edn*. What is the best way of using this code in
> Emacs? I know that Emacs Lisp is different from Common Lisp -
> and I also know that there is/are package(s?) for using Common
> Lisp within Emacs.
>
> What I don't know is:
> (1) Can this code just be converted into Emacs Lisp?
> Or are there bits of it which would require Common Lisp?

I can't help you directly, but you might want to pose this questi= on to
emacs-devel@gnu.org.

IIRC, Ed Reingold wrote the calendar stuff for Emacs (in Emacs Lisp), so it= is
likely that either this has already been done for Emacs (perhaps in a later=
version than the one you're using) or it will be done. =C2=A0In any cas= e, try asking
the Emacs developers about this (ema= cs-devel@gnu.org).





--
-----------------------= ---------------------------------------------------------------------------= ---
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
[ http://www.jna= nam.net/slade/ ]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
=C2=A0=C2=A0
St=C3=A6fcr=C3=A6ft & Vy=C4=81kara=E1=B9=87a (lingblog) - http://staefcraeft.blogsp= ot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com

---------------------------------------------------------------------------= --------------------------
=C2=A0 =E0=A4=AA=E0=A4=B0=E0=A5=8B =E0=A4=BD=E0=A4=95=E0=A5=8D=E0=A4= =B7=E0=A5=91=E0=A4=95=E0=A4=BE=E0=A4=AE=E0=A4=BE =E0=A4=B9=E0=A4=BF = =E0=A4=A6=E0=A5=87=E0=A4=B5=E0=A4=BE=E0=A4=83
=C2=A0 =C2=A0 'The gods love the obscure.' (=C5=9Aatapathabr=C4=81m= a=E1=B9=87a 6.1.1.2)
--90e6ba53a23c5aeae504a59a83b1--