Commit Graph

116 Commits

Author SHA1 Message Date
Glenn Morris
45380d4259 (add-to-diary-list): Fix typo in previous doc fix. 2006-05-19 08:42:50 +00:00
Glenn Morris
e652c999de (diary-bahai-date)
(list-bahai-diary-entries, mark-bahai-diary-entries)
(mark-bahai-calendar-date-pattern): Not interactive.
(add-to-diary-list): New optional arg LITERAL.  Doc fix.
(diary-entries-list): Change format of 4th element in each entry.
(diary-list-entries): Use add-to-diary-list.
(diary-goto-entry): Handle the case where the buffer visiting the
diary has been killed.
(fancy-diary-display): Add 'locator to button rather than 'marker.
Only generate temp-face when there are marks to apply.
(list-sexp-diary-entries): Pass literal to add-to-diary-list.
(diary-fancy-date-pattern): New variable.
(diary-time-regexp): Doc fix.
(diary-anniversary, diary-time): New faces.
(fancy-diary-font-lock-keywords): Use diary-fancy-date-pattern and
diary-time-regexp.  Add font-lock-multiline property where needed.
Use new faces diary-anniversary and diary-time.
(diary-fancy-font-lock-fontify-region-function): New function, to
handle multiline font-lock pattern in fancy diary.
(fancy-diary-display-mode): Set font-lock-fontify-region-function.
(diary-font-lock-keywords): Tweak time regexp.  Use new face
diary-time.
2006-05-19 08:24:51 +00:00
Glenn Morris
6f2ee2454f (include-other-diary-files, diary-mail-entries): Refer to
diary-view-entries, diary-list-entries, diary-show-all-entries rather
than obsolete aliases.
2006-05-13 06:12:10 +00:00
Glenn Morris
1cebb83885 (view-other-diary-entries): Refer to `diary-view-entries' rather than
alias `view-diary-entries'.
2006-04-22 00:11:11 +00:00
Glenn Morris
a20b384860 Add 2006 to copyright years. 2006-02-08 07:54:11 +00:00
Glenn Morris
dbfca9c444 Update copyright pending Emacs 22. 2005-12-10 05:46:09 +00:00
Stefan Monnier
66a85723ce (diary-list-entries): Also hide the terminating newline. 2005-11-16 16:04:29 +00:00
Stefan Monnier
2f0e484649 (diary-list-entries, diary-show-all-entries)
(mark-diary-entries, make-diary-entry): Check default-major-mode rather
than fundamental-mode to see if the mode was set.
2005-11-14 22:14:23 +00:00
Glenn Morris
f77b652537 (diary-list-entries): Prevent infloop when diary does not end in a
newline.  Do not assume a blank line at the start of the diary file.
2005-10-25 07:33:34 +00:00
Glenn Morris
aff88519c0 Update maintainer email address. 2005-10-08 04:49:48 +00:00
Stefan Monnier
1aee45ed44 Use overlays rather than selective-display.
(diary-selective-display): New var.
(diary-header-line-format): Use it.
(diary-list-entries): Add argument `list-only'.
Put the buffer in diary-mode.  Don't add \^M at beg and end.
Replace \^M by invisible overlays.
(diary-unhide-everything): Replace \^M by invisible overlays.
(print-diary-entries): Look for overlays rather than \^M.
Add a space to the temp buffer name.
(diary-show-all-entries, mark-diary-entries, make-diary-entry):
Put the buffer in diary-mode.
(list-sexp-diary-entries): Replace \^M by invisible overlays.
(diary-anniversary): Make the year arg optional.
(diary-time-regexp): New const.
(diary-font-lock-keywords): Use it to accept a few more time formats.
2005-10-06 16:22:13 +00:00
Romain Francoise
12b8cf536a (mark-diary-entries): Revert last change. 2005-09-19 16:03:51 +00:00
Romain Francoise
71773400ad (mark-diary-entries): Rearrange to wrap with-current-buffer form in
save-excursion.
2005-09-18 13:26:54 +00:00
Stefan Monnier
f52e8e862d (mark-diary-entries): Don't move point. Use with-syntax-table and dolist. 2005-09-16 16:04:29 +00:00
Stefan Monnier
0ffde81e4b (diary-show-all-entries): Fix last change,
which mistakenly removed a call to display-buffer.
2005-09-14 15:22:25 +00:00
Stefan Monnier
01a7778ef4 Use with-current-buffer, match-string.
(diary-list-entries): Use with-syntax-table and dolist.
Rename from list-diary-entries.
Use number-of-diary-entries if `number' is nil.
(diary, diary-view-entries): Use this new name and new nil arg value.
(number-of-diary-entries): Move from calendar.el.
(diary-unhide-everything): New function.
(include-other-diary-files, fancy-diary-display)
(diary-show-all-entries, make-diary-entry): Use it.
(diary-mail-entries): Use buffer-string.
(mark-diary-entries): Fix long standing paren typo.
(diary-sexp-entry): Use count-lines.
(make-diary-entry): Avoid `previous-line'.
(diary-mode-map): New var.
(diary-mode): Redraw cal after saving.  Setup header-line.
(fancy-diary-display-mode): Use local-set-key.
2005-09-12 21:21:42 +00:00
Carsten Dominik
aa284296a0 Documentation string of diary-modify-entry-list-string-function improved. 2005-08-25 07:11:10 +00:00
Carsten Dominik
9a20c79bce (diary-modify-entry-list-string-function): New hook.
(add-to-diary-list): Call `diary-modify-entry-list-string-function'
2005-08-25 07:06:07 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Juanma Barranquero
c611c9dc53 (diary-header-line-format): Change space constants followed by a sexp to "?\s ". 2005-06-29 13:51:30 +00:00
Miles Bader
ccacbcecfe Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-386
Remove "-face" suffix from diary-button face

2005-06-10  Miles Bader  <miles@gnu.org>

   * lisp/calendar/diary-lib.el (diary-button): Remove "-face" suffix from
   face name.
   (diary-button-face): New backward-compatibility alias for renamed face.
   (diary-entry): Use renamed diary-button face.
2005-06-10 10:44:01 +00:00
Glenn Morris
b6061a8869 Comment change. 2005-05-31 12:10:29 +00:00
Glenn Morris
bf87510ab4 (mark-included-diary-files): Only kill included diary buffer if it was
not already being visited.
Reported by Stephen Berman <Stephen.Berman@gmx.net>.
2005-05-30 11:30:47 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
Carsten Dominik
214e2d486e (add-to-diary-list): MARKER argument made
optional, to ensure backward compatibility.
2005-04-08 11:06:41 +00:00
Glenn Morris
81eb8a4a73 (mark-diary-entries): Use new optional argument REDRAW rather than
calendar-redrawing variable.

From  Matt Hodges  <MPHodges@member.fsf.org>:
(diary-redraw-calendar): Preserve point in diary-file buffer.
2005-03-16 13:23:55 +00:00
Glenn Morris
4b1523ac4a (mark-diary-entries): No need to redraw calendar if that is why we
were called.
2005-03-11 21:44:06 +00:00
Glenn Morris
91199264e3 (mark-diary-entries): Only call redraw-calendar in the first of any
recursive calls.  Reported by Alan Shutko <ats@acm.org>.
2005-03-09 00:29:14 +00:00
Glenn Morris
a46c339d7a (mark-diary-entries): Remove any old marks first.
(diary-redraw-calendar): New function.
(make-diary-entry): Add diary-redraw-calendar to local
write-contents-functions.  Turn off selective display before inserting
in diary.
2005-03-01 10:23:58 +00:00
Glenn Morris
07a66b979b (diary-remind): Discard any mark portion from diary-entry. Reported
by Andrew Kemp <ajwk@pell.uklinux.net>.
2005-02-27 22:46:03 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
Glenn Morris
d0897fa535 From Markus Rost <rost@ias.edu>:
(mark-diary-entries): Set mark-diary-entries-in-calendar only after
checking for diary-file.
2004-12-21 15:03:31 +00:00
Glenn Morris
3b55422113 (view-other-diary-entries): Use current-prefix-arg in interactive spec. 2004-12-20 18:09:22 +00:00
Glenn Morris
3e58bf8b8f (diary-from-outlook, diary-from-outlook-gnus)
(diary-from-outlook-rmail): Use NOCONFIRM rather than DONOTASK for
argument name.
2004-11-09 17:01:01 +00:00
Glenn Morris
e6a70f09d2 (diary-from-outlook, diary-from-outlook-gnus)
(diary-from-outlook-rmail): Do not use interactive-p; but rather new
optional argument DONOTASK.
2004-11-09 14:51:06 +00:00
Glenn Morris
ba55e59fd9 Update maintainer.
From Matthew Mundell <matt@mundell.ukfsn.org> (tiny change):

(list-diary-entries): Save diary buffer from diary display excursion.
Store diary buffer's point for `simple-diary-display'.
(simple-diary-display): Set window point and start when displaying
buffer, to preserve point.
2004-09-28 22:24:47 +00:00
John Wiegley
811a8484c0 2004-05-08 John Wiegley <johnw@newartisans.com>
* calendar/cal-bahai.el: New file, which adds support for the
	Baha'i calendar to Emacs.  This calendar is based on a solar year
	of 19 months of 19 days, with 4 intercalary days.  Each year
	begins on March 21, with the calendar starting in 1844.

	* calendar/cal-menu.el, calendar/calendar.el,
	calendar/diary-lib.el, calendar/holidays.el: Added support for
	using cal-bahai.el.
2004-05-08 12:42:07 +00:00
Glenn Morris
cb7c17becc From Dave Love <fx@gnu.org>:
(diary-outlook-formats): New variable.
(diary-from-outlook-internal, diary-from-outlook)
(diary-from-outlook-gnus, diary-from-outlook-rmail): New functions to
import diary entries from Outlook-format appointments in mail
messages.
2004-04-30 18:50:08 +00:00
Glenn Morris
4fcf2701b8 (diary-mode, fancy-diary-display-mode): Derive from fundamental-mode
rather than text-mode.
2004-04-08 16:22:43 +00:00
Glenn Morris
9edfb3d2a1 *** empty log message *** 2004-03-24 18:37:57 +00:00
Glenn Morris
de3fce917a Matthew Mundell <matt@mundell.ukfsn.org>
(fancy-diary-display): Don't rely on return value of
increment-calendar-month.
2004-02-23 00:09:31 +00:00
Glenn Morris
abc178a0bc (mark-diary-entries): Use assoc-string instead of assoc-ignore-case. 2004-02-19 01:20:03 +00:00
Thien-Thi Nguyen
d14b04bc3c (diary-entry-time): Fix typo/bug:
Remove spurious left square bracket in XX:XXam regexp.
2004-01-17 13:48:26 +00:00
Glenn Morris
6ecab45e49 Update copyright.
(diary, diary-entry-time): Doc change.
(list-diary-entries): Doc change.  Trivial logic change.
(fancy-diary-display): Restore make-face command mistakenly
deleted 2003-05-08.
(show-all-diary-entries): Allow to pop-up frame if needed.
2004-01-11 22:25:33 +00:00
Thien-Thi Nguyen
56d3bae7a9 (diary-entry-time): Also accept time in the form XX[.XX][am/pm/AM/PM].
(fancy-diary-font-lock-keywords): Likewise.
(diary-font-lock-keywords): Likewise.
2004-01-08 23:31:47 +00:00
Glenn Morris
3bd9ca8504 (diary-header-line-flag, diary-header-line-format): New variables.
(list-diary-entries): Use them to set header line in simple diary.
2003-09-02 17:37:48 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Glenn Morris
8ec6d48ac2 (simple-diary-display, make-diary-entry): Allow the diary to pop up a
new frame, if needed.
2003-08-24 15:20:38 +00:00
Glenn Morris
ca2a5950cf (list-diary-entries): Adapt for new behaviour of `calendar-day-name'
and `calendar-month-name' functions.
(diary-name-pattern): Use abbrev arrays, rather than fixing abbrevs at
three chars.  Calling syntax change.
(mark-diary-entries):  Adapt for new behaviours of
`diary-name-pattern' and `calendar-make-alist' functions.
(fancy-diary-font-lock-keywords): Adapt for new behaviour of
`diary-name-pattern' function.
(font-lock-diary-date-forms): Use abbrev arrays, rather than fixing
abbrevs at three chars.  Calling syntax change.
(cal-hebrew, cal-islam): Require when compiling.
(diary-font-lock-keywords): Adapt for new behaviour of
`font-lock-diary-date-forms' function.
2003-08-03 14:00:56 +00:00
Glenn Morris
c87a1f384e (diary-check-diary-file): New function.
(diary, view-diary-entries, show-all-diary-entries)
(mark-diary-entries): Use it.
(view-other-diary-entries): Doc fix.  Use `prefix-numeric-value'.
(diary-syntax-table, diary-attrtype-convert, diary-mail-days): Doc fix.
(diary-modified, d-file): No need to defvar (for compiler).
(list-diary-entries): No need for `let*' so use `let'.
(simple-diary-display): Use `diary-file' directly rather than
inheriting `d-file' from `list-diary-entries' caller.
(make-fancy-diary-buffer, show-all-diary-entries): `mode-line-format'
already buffer-local.
(diary-mail-addr): Set to the empty string (rather than nil) if
undefined, as per `user-mail-address'.
(diary-mail-entries): Doc fix.  Error if `diary-mail-address' unset.
(mark-sexp-diary-entries): Don't regexp-quote sexp-mark twice.
Remove an un-needed `if'.
(list-sexp-diary-entries): Remove local vars mark and s-entry, and
use `let' rather than `let*'.
(diary-date, insert-monthly-diary-entry)
(insert-yearly-diary-entry, insert-anniversary-diary-entry)
(insert-block-diary-entry, insert-cyclic-diary-entry)
(font-lock-diary-date-forms): No need for `let*' so use `let'.
(make-diary-entry): Doc fix.  Use `or' rather than `if'.
(diary-font-lock-keywords): Use `when'.  `cal-islam' is required
feature, not `cal-islamic'.
`calendar-islamic-month-name-array-leap-year' does not exist - use
`calendar-islamic-month-name-array'.
2003-06-22 01:02:22 +00:00