[Top][All Lists]

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

misleading docstring for `diary-block'

From: Eric Hanchrow
Subject: misleading docstring for `diary-block'
Date: 03 Jan 2002 13:01:55 -0800

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.1.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2001-12-06 on raven, modified by Debian
configured using `configure  i386-debian-linux-gnu --prefix=/usr 
--sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib 
--infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes 
--with-x-toolkit=athena --without-gif'

    (defun diary-block (m1 d1 y1 m2 d2 y2)
      "Block diary entry.
    Entry applies if date is between two dates.  Order of the parameters is
    M1, D1, Y1, M2, D2, Y2 if `european-calendar-style' is nil, and
    D1, M1, Y1, D2, M2, Y2 if `european-calendar-style' is t."
      (let ((date1 (calendar-absolute-from-gregorian
                    (if european-calendar-style
                        (list d1 m1 y1)
                      (list m1 d1 y1))))
            (date2 (calendar-absolute-from-gregorian
                    (if european-calendar-style
                        (list d2 m2 y2)
                      (list m2 d2 y2))))
            (d (calendar-absolute-from-gregorian date)))
        (if (and (<= date1 d) (<= d date2))

Note that the tests in the `and' are <=, not <.  This implies that the
docstring should read

        Entry applies if date is between, or on, two dates.

PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5  C8BD 6337 0041 C01C 5276

reply via email to

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