From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10867 Path: main.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.gnus.general Subject: Re: timezone.el patterns in emacs 19.34 Date: 03 May 1997 23:03:59 -0400 Sender: raeburn@cygnus.com Message-ID: References: <199705020844.EAA06520@kr-laptop.cygnus.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035150667 26893 80.91.224.250 (20 Oct 2002 21:51:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:51:07 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id UAA15847 for ; Sat, 3 May 1997 20:38:55 -0700 Original-Received: from cygnus.com (cygnus.com [205.180.230.20]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Sun, 4 May 1997 05:04:09 +0200 Original-Received: from tweedledumb.cygnus.com (tweedledumb.cygnus.com [192.80.44.1]) by cygnus.com (8.8.5/8.8.5) with SMTP id UAA05034; Sat, 3 May 1997 20:04:06 -0700 (PDT) Original-Received: from kr-laptop.cygnus.com by tweedledumb.cygnus.com (4.1/4.7) id AA00972; Sat, 3 May 97 23:04:04 EDT Original-Received: (from raeburn@localhost) by kr-laptop.cygnus.com (8.8.5/8.8.4) id XAA05933; Sat, 3 May 1997 23:04:04 -0400 Original-To: ding@ifi.uio.no In-Reply-To: Hrvoje Niksic's message of 04 May 1997 02:41:41 +0200 Original-Lines: 28 X-Mailer: Gnus v5.4.37/Emacs 19.34 Xref: main.gmane.org gmane.emacs.gnus.general:10867 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:10867 Yes, I think you could write a faster date parser in C than either the lisp or yacc versions. (This much is obvious -- as a worst case, use the existing lisp interpreter or yacc output, both of which are C, and improve things from there.) Would it be as readable and maintainable as the lisp or yacc versions? Maybe. Would it be worth spending the time? I doubt it, at least for right now. If you want to do it anyways, go for it.... > > > Then, there are copyright problems with it. > > No, there aren't. > Yes, there are. The public domain code is not to be introduced in > important parts of Emacs, as it is compromisable. "Compromisable?" Why, because the FSF might not be able to get paperwork saying it really is PD? They could try, and I suspect such paperwork would be enough. (Actually, I'd be surprised if there weren't some other GNU programs using a date parser already. For example, GNU date in sh-utils.) > > > And, I'd like to have a fast routine that matches those 7 or so > > > format strings. > > Yes, that's the problem I see with it -- it'll handle more than we > > want. > `getdate.y' would handle even more. Uh, yes, that's what I meant to say. The "it" I was referring to was getdate.y.