GNU bug report logs -
#3862
23.1.50; error calling `documentation' on calendar-mode
Previous Next
Reported by: Kevin Ryde <user42 <at> zip.com.au>
Date: Thu, 16 Jul 2009 00:00:04 UTC
Severity: normal
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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)))
This bug report was last modified 15 years and 314 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.