emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

other-holidays can have dates far away and mark holidays fails


From: Miguel V. S. Frasson
Subject: other-holidays can have dates far away and mark holidays fails
Date: Tue, 9 May 2006 07:30:02 -0600

Dear emacs-pretest-bug list

User defined holidays stored in `other-holidays' may contain dates
from months that are not displayed now.  These dates are not checked
when `mark-calendar-holidays', causing error.

To reproduce the bug, follow the instructions

1) call emacs with the following command line

emacs -Q --eval \
"(progn \
 (setq debug-on-error t) \
 (setq other-holidays '('((( 2 27 2006) \"Emacs bug\")))))"

2) Type the following

M-x calendar RET  ; call calendar
x                 ; mark-calendar-holidays

3) We get the following backtrace

Debugger entered--Lisp error: (wrong-type-argument wholenump -41)
 move-to-column(-41)
 calendar-cursor-to-visible-date((2 27 2006))
 mark-visible-calendar-date((2 27 2006) holiday)
 mark-calendar-holidays()
 call-interactively(mark-calendar-holidays)

Note: we are in May 2006, and calendar displays April to June now.

Cordially

Miguel Frasson



In GNU Emacs 22.0.50.2 (i686-pc-linux-gnu, Motif Version 2.2.3)
of 2006-05-04 on miguel
X server distributor `The X.Org Foundation', version 11.0.60802000
configured using `configure '--with-x-toolkit=motif''

Important settings:
 value of $LC_ALL: nil
 value of $LC_COLLATE: nil
 value of $LC_CTYPE: nil
 value of $LC_MESSAGES: nil
 value of $LC_MONETARY: nil
 value of $LC_NUMERIC: nil
 value of $LC_TIME: nil
 value of $LANG: en_US.UTF-8
 locale-coding-system: utf-8
 default-enable-multibyte-characters: t

Major mode: Debugger

Minor modes in effect:
 tooltip-mode: t
 auto-compression-mode: t
 tool-bar-mode: t
 mouse-wheel-mode: t
 menu-bar-mode: t
 file-name-shadow-mode: t
 global-font-lock-mode: t
 font-lock-mode: t
 blink-cursor-mode: t
 unify-8859-on-encoding-mode: t
 utf-translate-cjk-mode: t
 line-number-mode: t

Recent input:
M-x c a l e n d a r <return> x M-x r e p o r t - <tab>
<return>

Recent messages:
Loading easymenu...done
Loading holidays...done
Marking holidays...
Loading cal-hebrew...done
Loading cal-islam...done
Loading cal-china...done
Loading debug...done
Entering debugger...
Loading help-mode...done
Loading emacsbug...done

--
Miguel Vinicius Santini Frasson
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]