From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#11260: 24.1.50; `holiday-sexp' may create entry twice Date: Mon, 16 Apr 2012 23:42:08 +0200 Message-ID: References: <8762cz4bbn.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334612585 30449 80.91.229.3 (16 Apr 2012 21:43:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Apr 2012 21:43:05 +0000 (UTC) Cc: 11260@debbugs.gnu.org To: michael_heerdegen@web.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 16 23:43:04 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SJthP-00057C-VT for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Apr 2012 23:43:04 +0200 Original-Received: from localhost ([::1]:40898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJthP-0001Ah-Bp for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Apr 2012 17:43:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJthM-0001Ac-VW for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 17:43:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJthL-0001Xy-BS for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 17:43:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJthL-0001Xs-8B for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 17:42:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SJthO-00041a-AG for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 17:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Apr 2012 21:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11260 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11260-submit@debbugs.gnu.org id=B11260.133461255015431 (code B ref 11260); Mon, 16 Apr 2012 21:43:02 +0000 Original-Received: (at 11260) by debbugs.gnu.org; 16 Apr 2012 21:42:30 +0000 Original-Received: from localhost ([127.0.0.1]:37387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJtgs-00040p-3t for submit@debbugs.gnu.org; Mon, 16 Apr 2012 17:42:30 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:43599) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJtgp-00040h-Gj for 11260@debbugs.gnu.org; Mon, 16 Apr 2012 17:42:29 -0400 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3VWjjk3gKkz3hhcl; Mon, 16 Apr 2012 23:42:08 +0200 (CEST) Original-Received: from igel.home (ppp-93-104-132-43.dynamic.mnet-online.de [93.104.132.43]) by mail.mnet-online.de (Postfix) with ESMTPA id 3VWjjX4qB2z4KK4K; Mon, 16 Apr 2012 23:42:08 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 5BC15CA2A0; Mon, 16 Apr 2012 23:42:08 +0200 (CEST) X-Yow: Boys, you have ALL been selected to LEAVE th' PLANET in 15 minutes!! In-Reply-To: <8762cz4bbn.fsf@web.de> (Michael Heerdegen's message of "Mon, 16 Apr 2012 23:27:08 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59143 Archived-At: Michael Heerdegen writes: > the following happens also in Emacs 23. Recipe: > > 1. emacs -Q > 2. M-x calendar RET > 3. evaluate: (require 'holidays) > 4. evaluate: > (add-to-list > 'calendar-holidays > '(holiday-sexp > '(list 4 17 2012) > "April 17th 2012")) > > 5. In the calendar, move point to April 17th 2012 and hit h. > > You'll see that "April 17th 2012" appears twice. Your expression does not use year. > | (defun holiday-sexp (sexp string) > | "Sexp holiday for dates in the calendar window. > | SEXP is an expression in variable `year' that is evaluated to ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."