From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lawrence Mitchell Newsgroups: gmane.emacs.devel Subject: Re: calendar problem: week number Date: Fri, 08 Aug 2008 16:17:03 +0100 Organization: funfunfun Message-ID: References: <20080807.111511.144819219.wl@gnu.org> <200808071138.58607.horn@uni-koblenz.de> <20080808.164334.228744253.wl@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218208662 25749 80.91.229.12 (8 Aug 2008 15:17:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 15:17:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 08 17:18:33 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 1KRTjT-0003vz-1q for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2008 17:18:23 +0200 Original-Received: from localhost ([127.0.0.1]:34182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRTiX-0003to-6u for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2008 11:17:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRTiS-0003sp-JS for emacs-devel@gnu.org; Fri, 08 Aug 2008 11:17:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRTiQ-0003rp-L6 for emacs-devel@gnu.org; Fri, 08 Aug 2008 11:17:19 -0400 Original-Received: from [199.232.76.173] (port=47585 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRTiQ-0003ri-G2 for emacs-devel@gnu.org; Fri, 08 Aug 2008 11:17:18 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:47945 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRTiP-0007zx-W9 for emacs-devel@gnu.org; Fri, 08 Aug 2008 11:17:18 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KRTiL-0003mz-Gt for emacs-devel@gnu.org; Fri, 08 Aug 2008 15:17:14 +0000 Original-Received: from lamacq.ph.ed.ac.uk ([129.215.72.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2008 15:17:13 +0000 Original-Received: from wence by lamacq.ph.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2008 15:17:13 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lamacq.ph.ed.ac.uk Mail-Copies-To: nobody User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:qCs9Nf/dCp4IsBxMk6rKlQUgPzA= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:102206 Archived-At: Werner LEMBERG wrote: >>> 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: [...] > Thanks, but helps a bit but it is not what I really want -- in most > cases you don't need the current week number but a values of a > completely different week number. > Maybe this can be added somehow to calendar. It turns out it is, after Ed pointed out that my idea of adding something to calendar-generate-month may not work, I had another look to see if I had in fact broken things. It turns out Glenn Morris has recently (Jun 26th) implemented more flexible calendar printing: removing magic numbers and the like. Anyway, to get iso week numbers in the calendar view, just modify `calendar-intermonth-text' as suggested in its docstring. This is in NEWS, but not yet in the info file, I believe. Cheers, Lawrence -- Lawrence Mitchell