From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: calendar problem: week number Date: Thu, 7 Aug 2008 11:38:58 +0200 Organization: Uni Koblenz-Landau Message-ID: <200808071138.58607.horn@uni-koblenz.de> References: <20080807.111511.144819219.wl@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218120150 27259 80.91.229.12 (7 Aug 2008 14:42:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2008 14:42:30 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 07 16:43:21 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 1KR6hu-0006G3-0Y for ged-emacs-devel@m.gmane.org; Thu, 07 Aug 2008 16:43:14 +0200 Original-Received: from localhost ([127.0.0.1]:57962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR6gy-000069-JF for ged-emacs-devel@m.gmane.org; Thu, 07 Aug 2008 10:42:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KR1yz-0004js-Sg for emacs-devel@gnu.org; Thu, 07 Aug 2008 05:40:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KR1yx-0004jB-Tg for emacs-devel@gnu.org; Thu, 07 Aug 2008 05:40:33 -0400 Original-Received: from [199.232.76.173] (port=39496 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR1yx-0004j8-8q for emacs-devel@gnu.org; Thu, 07 Aug 2008 05:40:31 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:3400) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KR1yw-0008UP-Mt for emacs-devel@gnu.org; Thu, 07 Aug 2008 05:40:30 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id BDFF6789783E for ; Thu, 7 Aug 2008 11:40:28 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03952-08-3 for ; Thu, 7 Aug 2008 11:40:28 +0200 (CEST) Original-Received: from thinkpad.localnet (dhcp197.uni-koblenz.de [141.26.71.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 17E29789A413 for ; Thu, 7 Aug 2008 11:40:28 +0200 (CEST) User-Agent: KMail/1.10.0 (Linux/2.6.26-gentoo; KDE/4.1.60; x86_64; ; ) In-Reply-To: <20080807.111511.144819219.wl@gnu.org> Content-Disposition: inline X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Thu, 07 Aug 2008 10:41:52 -0400 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:102162 Archived-At: On Thursday 07 August 2008 11:15:11 Werner LEMBERG wrote: Hi Werner, > Companies in German are used to refer to the `Kalenderwoche' (the > current number of the week counted from the beginning of the year). > For example, this week is the 32nd week. Can I configure `calendar' > to make it display, eg., like in the attached image? I haven't found > a hint in the info file. I use this custom code to do that: --8<---------------cut here---------------start------------->8--- (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)))) --8<---------------cut here---------------end--------------->8--- Bye, Tassilo