From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ed Reingold Newsgroups: gmane.emacs.devel Subject: Re: calendar problem: week number Date: Thu, 07 Aug 2008 09:49:22 -0500 Message-ID: <200808071449.m77EnMLj003784@emr.cs.iit.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218120669 29187 80.91.229.12 (7 Aug 2008 14:51:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2008 14:51:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 07 16:52:00 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KR6qN-0001Xl-NF for ged-emacs-devel@m.gmane.org; Thu, 07 Aug 2008 16:51:59 +0200 Original-Received: from localhost ([127.0.0.1]:41452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR6pS-0002dC-CX for ged-emacs-devel@m.gmane.org; Thu, 07 Aug 2008 10:51:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KR6o4-0000wY-NQ for emacs-devel@gnu.org; Thu, 07 Aug 2008 10:49:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KR6o3-0000uY-EA for emacs-devel@gnu.org; Thu, 07 Aug 2008 10:49:35 -0400 Original-Received: from [199.232.76.173] (port=46885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR6o3-0000uM-3I for emacs-devel@gnu.org; Thu, 07 Aug 2008 10:49:35 -0400 Original-Received: from emr.cs.iit.edu ([216.47.142.126]:49215) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KR6o2-00032t-Vz for emacs-devel@gnu.org; Thu, 07 Aug 2008 10:49:35 -0400 Original-Received: from emr.cs.iit.edu (localhost [127.0.0.1]) by emr.cs.iit.edu (8.13.8+Sun/8.13.8) with ESMTP id m77EnMLj003784; Thu, 7 Aug 2008 09:49:22 -0500 (CDT) X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.0.4 In-Reply-To: Message from Tassilo Horn of "Thu, 07 Aug 2008 11:38:58 +0200." <200808071138.58607.horn@uni-koblenz.de> X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102163 Archived-At: > (add-to-list 'calendar-mode-line-format > '(let ((day (nth 1 date)) > (month (nth 0 date)) > (year (nth 2 date))) > (format-time-string "Week of year: %V" > (encode-time 1 1 1 day month > year)))) That should not cause any problems. Note that you can also use the calendar code functions for the week number; see cal-iso.el