From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#422: 23.0.60; buggy diary-float function? Date: Sun, 15 Jun 2008 21:07:12 +0200 Message-ID: <64501F46-CD51-4BDC-B6DC-E0E34B3F6E8B@Freenet.DE> Reply-To: Peter Dyballa , 422@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213576615 26162 80.91.229.12 (16 Jun 2008 00:36:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2008 00:36:55 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 16 02:37:39 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K82j4-00006y-3k for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jun 2008 02:37:38 +0200 Original-Received: from localhost ([127.0.0.1]:46635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K82iF-00029w-Sb for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Jun 2008 20:36:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7xse-0008BK-Gh for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 15:27:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7xsd-0008AD-4S for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 15:27:11 -0400 Original-Received: from [199.232.76.173] (port=58817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7xsd-0008A0-07 for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 15:27:11 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51071) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K7xsc-0003kZ-EB for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 15:27:10 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5FJR8ee029430; Sun, 15 Jun 2008 12:27:08 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m5FJF3xt026033; Sun, 15 Jun 2008 12:15:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Peter Dyballa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 15 Jun 2008 19:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 422 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121355685124728 (code B ref -1); Sun, 15 Jun 2008 19:15:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 15 Jun 2008 19:07:31 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5FJ7Nlb024715 for ; Sun, 15 Jun 2008 12:07:25 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:36102) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1K7xXP-0005re-NK for emacs-pretest-bug@gnu.org; Sun, 15 Jun 2008 15:05:15 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1K7xZO-00019A-Kg for emacs-pretest-bug@gnu.org; Sun, 15 Jun 2008 15:07:22 -0400 Original-Received: from mout1.freenet.de ([195.4.92.91]:36075) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K7xZO-00018g-3Z for emacs-pretest-bug@gnu.org; Sun, 15 Jun 2008 15:07:18 -0400 Original-Received: from [195.4.92.13] (helo=3.mx.freenet.de) by mout1.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.69 #19) id 1K7xZK-0007Kx-PR for emacs-pretest-bug@gnu.org; Sun, 15 Jun 2008 21:07:14 +0200 Original-Received: from fcd8e.f.ppp-pool.de ([195.4.205.142]:65096 helo=[192.168.1.2]) by 3.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.69 #12) id 1K7xZK-0005sx-DZ for emacs-pretest-bug@gnu.org; Sun, 15 Jun 2008 21:07:14 +0200 X-Mailer: Apple Mail (2.753.1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sun, 15 Jun 2008 15:27:11 -0400 X-Mailman-Approved-At: Sun, 15 Jun 2008 20:36:12 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18416 gmane.emacs.pretest.bugs:22638 Archived-At: Hello! The documentation does not explicitly tell it's possible to do this: &%%(diary-float 11 4 4) American Thanksgiving The 11 specifies November (the eleventh month), the 4 specifies Thursday (the fourth day of the week, where Sunday is numbered zero), and the second 4 specifies the fourth Thursday (1 would mean "first," 2 would mean "second," -2 would mean "second-to-last," and so on). The month can be a single month or a list of months. Thus you could change the 11 above to `'(1 2 3)' and have the entry apply to the last Thursday of January, February, and March. If the month is `t', the entry applies to all months of the year. Each of the standard sexp diary entries takes an optional parameter specifying the name of a face or a single-character string to use when marking the entry in the calendar. Most generally, sexp diary entries can perform arbitrary computations to determine when they apply. *note ()Sexp Diary Entries::. so I thought it would work, but I am told it does not work to prepare diary entries for all Thursdays of a particular month: Bad sexp at line 3 in ~/diary: (diary-float 6 4 t) [14 times] Bad sexp at line 4 in ~/diary: (diary-float 6 t 3) [92 times] Bad sexp at line 5 in ~/diary: (diary-float 6 '(1 2 3 4 5) 1) [92 times] Bad sexp at line 6 in ~/diary: (diary-float 6 '(0 1 2 3 4) 0) [92 times] I used lines #3 and #4 because some calendar functions swap arguments when used in European mood. In GNU Emacs 23.0.60.1 (powerpc-apple-darwin8.11.0, X toolkit, Xaw3d scroll bars) of 2008-06-15 on Latsche.local Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 configured using `configure '--without-sound' '--without-pop' '-- with-dbus' '--with-libotf' '--with-x-toolkit=athena' '--enable- locallisppath=/Library/Application Support/Emacs/calendar23:/Library/ Application Support/Emacs/caml:/Library/Application Support/Emacs:/sw/ share/emacs21/site-lisp/elib' 'PKG_CONFIG_PATH=/sw/lib/freetype219/ lib/pkgconfig:/sw/lib/fontconfig2/lib/pkgconfig:/sw/lib/qt4-x11/lib/ pkgconfig:/sw/lib/pkgconfig:/sw/share/pkgconfig:/usr/lib/pkgconfig:/ usr/local/lib/pkgconfig:/usr/X11R6/lib/pkgconfig' 'CFLAGS=-ggdb - gfull -H -Wno-pointer-sign -bind_at_load -pipe -fPIC -mcpu=7450 - mtune=7450 -mno-powerpc64 -O0 -mpim-altivec -ftree-vectorize -fno- crossjumping' 'CPPFLAGS=-no-cpp-precomp -I/sw/include -I/usr/local/ include -idirafter /usr/X11R6/include' 'LDFLAGS=-bind_at_load - dead_strip -multiply_defined suppress -L/sw/lib/ncurses -L/sw/lib -L/ usr/local/lib -L/usr/X11R6/lib'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: de_DE.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Info Minor modes in effect: show-paren-mode: t display-time-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t -- Greetings Pete Zukunft statt Zustand!