appt.el code simplifications.
authorGlenn Morris <rgm@gnu.org>
Thu, 12 May 2011 07:56:02 +0000 (00:56 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 12 May 2011 07:56:02 +0000 (00:56 -0700)
commit98dc3df322a2706803625ddfce0038ce94eec5d8
tree42a76a822018084c9a53b069ad288669a26a54d2
parente2c94218141ca8bb06c57654d341b33412d3caa9
appt.el code simplifications.

* lisp/calendar/appt.el (appt-now-displayed): Remove pointless variable.
(appt-check): Simplify.

Details:
appt-now-displayed was set non-nil the first time a reminder was displayed.
Nothing ever set it back to nil again.  Thus when full-check was nil,
mode-line-only was always true, so the "(when (or full-check mode-line-only)"
was pointless.  That was the only use of full-check.  mode-line-only
was only used in a negative sense, and can be reduced to the zerop test.
lisp/ChangeLog
lisp/calendar/appt.el