From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#3862: 23.1.50; error calling `documentation' on calendar-mode Date: Thu, 16 Jul 2009 21:02:39 -0400 Message-ID: References: <87tz1da4kx.fsf@blah.blah> Reply-To: Glenn Morris , 3862@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247793472 27290 80.91.229.12 (17 Jul 2009 01:17:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2009 01:17:52 +0000 (UTC) Cc: Kevin Ryde , 3862@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 17 03:17:45 2009 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 1MRc52-0002ha-Tz for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jul 2009 03:17:45 +0200 Original-Received: from localhost ([127.0.0.1]:51576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRc51-0007FS-Mq for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jul 2009 21:17:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRc4w-0007FD-6o for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2009 21:17:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRc4q-0007F1-LX for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2009 21:17:36 -0400 Original-Received: from [199.232.76.173] (port=51319 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRc4q-0007Ey-GB for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2009 21:17:32 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40329) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRc4p-0001so-80 for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2009 21:17:31 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6H1HSix001872; Thu, 16 Jul 2009 18:17:28 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6H155kq031887; Thu, 16 Jul 2009 18:05:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 17 Jul 2009 01:05:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3862 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3862-submit@emacsbugs.donarmstrong.com id=B3862.124779256731348 (code B ref 3862); Fri, 17 Jul 2009 01:05:05 +0000 Original-Received: (at 3862) by emacsbugs.donarmstrong.com; 17 Jul 2009 01:02:47 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6H12hnP031343 for <3862@emacsbugs.donarmstrong.com>; Thu, 16 Jul 2009 18:02:45 -0700 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MRbqR-000782-MA; Thu, 16 Jul 2009 21:02:39 -0400 X-Spook: Rubin Putin national information infrastructure 9/11 X-Ran: P/13}=52"ZRnmc'A:XNNyM%?yHctR\x0O]TKv\W"v}b.LmiXf8Ci[6CdbtVZlIGp9JkvZZ X-Hue: blue X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 16 Jul 2009 21:17:36 -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:29481 Archived-At: Stefan Monnier wrote: > In the present case, there's a subtle bug in the :filter of the > calendar-mode-map (more specially in the menu-bar part of the map). Could you explain what the bug is? The error is coming from cal-menu-set-date-title in a mouse-binding, which calls calendar-cursor-to-date. This has always assumed it is called from a calendar buffer, which seems reasonable, and gives an error if it is not. Also, why does C-h f calendar-mode work fine? On a related note, I notice that the Emacs 22 behaviour, where it displays an explicit error message "Not on a date" if called in the calendar with point not a date, has been lost - now it is just silent. I would like to get this back, but I can't figure out the Easymenu-Way to do it. Anyway, the following hack will suppress the original issue. *** calendar.el 8 Jul 2009 02:48:13 -0000 1.283 --- calendar.el 17 Jul 2009 00:53:33 -0000 *************** *** 1811,1816 **** --- 1811,1817 ---- (with-current-buffer (if event (window-buffer (posn-window (event-start event))) (current-buffer)) + (or (boundp 'displayed-month) (error "Not on a date!")) (save-excursion (and event (setq event (event-start event)) (goto-char (posn-point event)))