From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#422: marked as done (23.0.60; buggy diary-float function?) Date: Sun, 15 Jun 2008 19:45:04 -0700 Message-ID: References: <64501F46-CD51-4BDC-B6DC-E0E34B3F6E8B@Freenet.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1213584304-6664-0" X-Trace: ger.gmane.org 1213584466 8485 80.91.229.12 (16 Jun 2008 02:47:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2008 02:47:46 +0000 (UTC) To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 16 04:48:29 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 1K84le-0005gl-O5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jun 2008 04:48:27 +0200 Original-Received: from localhost ([127.0.0.1]:52030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K84kq-0002te-Ks for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Jun 2008 22:47:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K84kW-0002hu-Ds for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 22:47:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K84kV-0002hI-Iq for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 22:47:15 -0400 Original-Received: from [199.232.76.173] (port=47282 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K84kV-0002hC-Gl for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2008 22:47:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45352) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K84kQ-0007FH-NF; Sun, 15 Jun 2008 22:47:11 -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 m5G2l87C007798; Sun, 15 Jun 2008 19:47:08 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m5G2j4PU006752; Sun, 15 Jun 2008 19:45:04 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 422 X-Emacs-PR-Package: emacs X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:18418 Archived-At: This is a multi-part message in MIME format... ------------=_1213584304-6664-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sun, 15 Jun 2008 22:35:27 -0400 with message-id and subject line Re: bug#422: 23.0.60; buggy diary-float function? has caused the Emacs bug report #422, regarding 23.0.60; buggy diary-float function? to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 422: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D422 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1213584304-6664-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 15 Jun 2008 19:07:31 +0000 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 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 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 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 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 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 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: <64501F46-CD51-4BDC-B6DC-E0E34B3F6E8B@Freenet.DE> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: emacs-pretest-bug@gnu.org From: Peter Dyballa Subject: 23.0.60; buggy diary-float function? Date: Sun, 15 Jun 2008 21:07:12 +0200 X-Mailer: Apple Mail (2.753.1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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! ------------=_1213584304-6664-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,UNCLOSED_BRACKET,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 422-done) by emacsbugs.donarmstrong.com; 16 Jun 2008 02:37:40 +0000 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 m5G2bbEm005445 for <422-done@emacsbugs.donarmstrong.com>; Sun, 15 Jun 2008 19:37:38 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1K84Z5-00014k-T0; Sun, 15 Jun 2008 22:35:27 -0400 From: Glenn Morris To: Peter Dyballa Cc: 422-done@emacsbugs.donarmstrong.com Subject: Re: bug#422: 23.0.60; buggy diary-float function? References: <64501F46-CD51-4BDC-B6DC-E0E34B3F6E8B@Freenet.DE> X-Spook: gamma Echelon Khaddafi Panama espionage ICE Ortega NASA X-Ran: >:OY9G[RB_N#J-<16y!kkk(D(<.q49C*t?V0?i:o2vIwh.[e;G05St-0p^pwhf=uQIs1[6 X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sun, 15 Jun 2008 22:35:27 -0400 In-Reply-To: <64501F46-CD51-4BDC-B6DC-E0E34B3F6E8B@Freenet.DE> (Peter Dyballa's message of "Sun, 15 Jun 2008 21:07:12 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Peter Dyballa wrote: > 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] The documentation says the MONTH parameter can be a list or t. It does not say that any of the other parameters can be. You could use eg: %%(and (= (calendar-day-of-week date) 4) (= (calendar-extract-month date) 6)) Thursday in June ------------=_1213584304-6664-0--