From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: elisp - common lisp - new calendrical calculations Date: Mon, 13 Jun 2011 09:19:07 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1307982235 11942 80.91.229.12 (13 Jun 2011 16:23:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 16:23:55 +0000 (UTC) To: "'Benjamin Slade'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 13 18:23:51 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 1QW9va-0005ra-Ta for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jun 2011 18:23:51 +0200 Original-Received: from localhost ([::1]:45466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW9vZ-0001wV-Vu for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jun 2011 12:23:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW9rD-0001Yu-Qh for help-gnu-emacs@gnu.org; Mon, 13 Jun 2011 12:19:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QW9rC-0006h1-EB for help-gnu-emacs@gnu.org; Mon, 13 Jun 2011 12:19:19 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:24294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW9rC-0006gx-0t for help-gnu-emacs@gnu.org; Mon, 13 Jun 2011 12:19:18 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p5DGJDPj032232 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 13 Jun 2011 16:19:16 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p5DGJDnO005470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 Jun 2011 16:19:13 GMT Original-Received: from abhmt008.oracle.com (abhmt008.oracle.com [141.146.116.17]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p5DGJ8pP003767; Mon, 13 Jun 2011 11:19:08 -0500 Original-Received: from dradamslap1 (/130.35.179.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 13 Jun 2011 09:19:07 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acwp5LQ766koDt+6QZaVrbJagjXY9gAAEpjA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4DF63884.00E7:SCFMA922111,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 148.87.113.121 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:81342 Archived-At: > 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 later 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).