1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-04 13:03:09 -08:00
Commit graph

585 commits

Author SHA1 Message Date
Kenichi Handa
463f5630a5 New directory 2003-09-08 11:56:09 +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
8923d271ca Edward M. Reingold <reingold@emr.cs.iit.edu>
Bind `calendar-goto-day-of-year' to key.

Alan Shutko  <ats@acm.org>
(calendar-make-alist): Correct off-by-one keeping December out of the
alist.
2003-08-17 22:51:29 +00:00
Glenn Morris
163fd24dfd Edward M. Reingold <reingold@emr.cs.iit.edu>
(calendar-goto-day-of-year): New function.
2003-08-17 22:49:46 +00:00
Glenn Morris
f9df0ca042 Edward M. Reingold <reingold@emr.cs.iit.edu>
(calendar-mode-map): Add `calendar-goto-day-of-year' to menu.
(calendar-flatten): New function.
(calendar-mouse-view-other-diary-entries)
(calendar-mouse-view-diary-entries): Rewritten to put any holidays in
the menu title and to show multi-line diary entries correctly in the
menu.
2003-08-17 22:48:54 +00:00
Glenn Morris
3d880a4b89 (list-diary-entries-hook, diary-display-hook, nongregorian-diary-listing-hook)
(mark-diary-entries-hook, nongregorian-diary-marking-hook): Add some
customize options for these hooks.
(calendar-abbrev-construct): Don't try to take a substring longer than
the original string.
2003-08-06 10:10:46 +00:00
Glenn Morris
48ad4975be (displayed-month, displayed-year): Define for compiler.
(calendar-islamic-month-name-array): Add doc string.
(list-islamic-diary-entries): Adapt for new behaviours of
`calendar-day-name' and `add-to-diary-list' functions.
(mark-islamic-diary-entries): Adapt for new behaviours of
`diary-name-pattern' and `calendar-make-alist' functions.
2003-08-03 14:02:15 +00:00
Glenn Morris
da3fc02028 Reposition some code so defined before used.
(displayed-month, displayed-year): Define for compiler.
(calendar-hebrew-month-name-array-common-year)
(calendar-hebrew-month-name-array-leap-year): Add doc strings.
(list-hebrew-diary-entries): Adapt for new behaviours of
`calendar-day-name' and `add-to-diary-list' functions.
(mark-hebrew-diary-entries): Adapt for new behaviours of
`diary-name-pattern' and `calendar-make-alist' functions.
2003-08-03 14:01:40 +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
5bb7a2d574 (displayed-month, displayed-year): Define for compiler.
(cal-menu-update): Adapt for new behaviour of `calendar-month-name' function.
2003-08-03 14:00:03 +00:00
Glenn Morris
2c8811d49b (diary-file, diary-file-name-prefix)
(european-calendar-style, diary-date-forms)
(calendar-day-name-array, calendar-month-name-array): Doc change.
(generate-calendar-month): Adapt for new behaviour of
`calendar-day-name' function.
(calendar-abbrev-length, calendar-day-abbrev-array)
(calendar-month-abbrev-array): New variables.
(calendar-abbrev-construct): New function.
(calendar-day-name, calendar-month-name): Use new abbrev arrays,
rather than fixing abbrevs at some width.  Calling syntax change.
(calendar-make-alist): Use abbrev arrays.  Calling syntax change.
(calendar-date-string): Adapt for new behaviours of
`calendar-day-name' and `calendar-month-name' functions.
2003-08-03 13:59:13 +00:00
Glenn Morris
30f5dd988b (cal-tex-day-name-format): Doc fix.
(cal-tex-LaTeX-hourbox): Move definition before use.
2003-08-03 13:58:39 +00:00
Glenn Morris
3f762917b0 (displayed-month, displayed-year): Define for compiler.
(solar-seasons-data): Move definition before use.
2003-08-03 13:58:01 +00:00
Glenn Morris
0b0f8fa418 (displayed-month, displayed-year): Define for compiler. 2003-08-03 13:56:21 +00:00
Glenn Morris
55d2d63464 (coptic-name): defvar rather than defconst. 2003-08-03 13:53:54 +00:00
Glenn Morris
145570df04 Minor commentary changes.
(timeclock-relative, timeclock-ask-before-exiting)
(timeclock-use-display-time): Doc changes.
(timeclock-modeline-display): Give a message if
`timeclock-use-display-time' is non-nil but `display-time-mode' is not
active.
2003-07-11 13:15:05 +00:00
Glenn Morris
4ee3e788bd (timeclock-use-display-time, timeclock-day-over-hook)
(timeclock-workday-remaining, timeclock-status-string)
(timeclock-when-to-leave, timeclock-when-to-leave-string)
(timeclock-log-data, timeclock-find-discrep, timeclock-day-base)
(timeclock-generate-report, timeclock-visit-timelog): Doc fix.
(timeclock-modeline-display): Set the variable `timeclock-modeline-display'.
(timeclock-update-modeline): Doc fix.  Respect value of `timeclock-relative'.
2003-07-10 01:02:11 +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
Glenn Morris
b9c3a97d1d (display-time-hook, timeclock-modeline-display): Define for byte-compiler.
(timeclock-time-to-date, timeclock-workday-remaining)
(timeclock-time-to-seconds, timeclock-seconds-to-time): Move earlier
in the file so defined before used.
(timeclock-status-string): No need for `let*' so use `let'.
(timeclock-query-out): Always return a non-nil value.
2003-06-12 17:28:48 +00:00
Glenn Morris
9d1137ce04 Update copyright.
(timeclock-ask-before-exiting): Put `timeclock-query-out' on
`kill-emacs-query-functions' rather than `kill-emacs-hook'.
(timeclock-mode-string): Doc fix.
(timeclock-modeline-display): Doc fix.  Use `global-mode-string' rather
than `mode-line-format'.
(timeclock-query-out): Doc fix.
(timeclock-update-modeline): No need for `let*', so use `let'.
Add some help-echo text to `timeclock-mode-string'.
(timeclock-mode-string): Give it the risky-local-variable property,
so that help-echo text will display.
(timeclock-find-discrep): Set `accum' to 0 if `timeclock-discrepancy' is nil.
2003-05-27 18:36:40 +00:00
Glenn Morris
f0aa2e2187 (diary-mail-entries): Use call-interactively. 2003-05-08 19:52:47 +00:00
Glenn Morris
61d094deb5 (diary-pull-attrs): Make ret-attr', attr' local.
(list-diary-entries): Make `temp' local.
(fancy-diary-display): Make `marks', `temp-face', `faceinfo' local.
(diary-mail-entries): There is no fancy-diary-buffer if there are
no diary entries.
(mark-diary-entries): Make `temp' local.
(mark-sexp-diary-entries): Make `marks' local, remove `temp'.
(list-sexp-diary-entries): Make `temp' local.
(add-to-diary-list): Make `prefix' local.
2003-05-08 19:34:49 +00:00
Sam Steingold
4e80f517a9 (fancy-diary-display-mode): Bind "q" to `quit-window'
in the fancy diary buffer.
2003-04-25 01:58:49 +00:00
Richard M. Stallman
d5b213cc0c (cal-menu-update): Use easy-menu-create-menu rather than easy-menu-change. 2003-04-06 20:21:26 +00:00
Markus Rost
808052d66a (diary-file-name-prefix-function): Fix custom type. 2003-02-17 22:25:11 +00:00
Juanma Barranquero
c47a201af7 (diary-attrtype-convert): Convert an attribute value string to the desired type.
(diary-pull-attrs): New function that pulls the attributes off a diary entry,
merges with file-global attributes, and returns the (possibly modified) entry
and a list of attribute/values using diary-attrtype-convert above.
(list-diary-entries, fancy-diary-display, show-all-diary-entries)
(mark-diary-entries, mark-sexp-diary-entries, list-sexp-diary-entries): Add
handling of file-global attributes, add handling of entry attributes using
diary-pull-attrs above.
(mark-calendar-days-named, mark-calendar-days-named, mark-calendar-date-pattern)
(mark-calendar-month, add-to-diary-list): Add optional paramater `color' for
passing face attribute info through the callchain.  Pass this parameter around.
2003-02-11 23:26:55 +00:00
Juanma Barranquero
d13c137897 (diary-face-attrs): New custom.
(diary-file-name-prefix-function): New custom.
(diary-glob-file-regexp-prefix): New custom.
(diary-file-name-prefix): New custom.
(generate-calendar-window): Check that font-lock-mode is bound before checking
value.
(mark-visible-calendar-date): Add the ability to pass face attribute/value pairs
in the mark argument. Handle the mark.
2003-02-11 23:23:10 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Glenn Morris
945e6102fe (calendar-only-one-frame-setup): Add autoload. 2003-01-20 21:27:41 +00:00
Richard M. Stallman
e0dfc625b5 (calendar-day-name): Move defn down. 2002-12-07 21:30:57 +00:00
Stefan Monnier
f5f5741147 (facemenu-unlisted-faces): Only update after facemenu was loaded.
(calendar-font-lock-keywords): Accept non-ASCII month names.  Use regexp-opt.
2002-12-05 18:42:33 +00:00
Richard M. Stallman
bd0f7fd3df (solar-atn2): Give correct quadrant for arctan. 2002-12-05 15:30:52 +00:00
Kai Großjohann
e440b20e5e (fancy-diary-font-lock-keywords): Grok month numbers, too. 2002-11-18 09:05:23 +00:00
Richard M. Stallman
183ca06edb (parse-time-elt): Var renamed from `elt'.
(parse-time-val): Var renamed from `val'.  All uses changed.
2002-11-18 04:58:53 +00:00
Markus Rost
ebea495a18 (diary-button-face): Add group and version number. 2002-11-17 22:26:54 +00:00
Markus Rost
5d22135b02 Patch of Alan Shutko <ats@acm.org> by way of rms.
(diary-face): New.
(european-calendar-display-form, describe-calendar-mode)
(mark-visible-calendar-date, calendar-mark-today): Tidy doc string.
(calendar-make-alist): New.
(calendar-mode): Set up font-lock mode.
(generate-calendar-window): Fontify if font-lock-mode is on.
2002-11-16 19:19:35 +00:00
Markus Rost
86432f811e Patch of Alan Shutko <ats@acm.org> by way of rms.
(list-diary-entries): Pass a marker
indicating source of entry to add-to-diary-list.
(diary-button-face, diary-entry, diary-goto-entry): New, to
support click to diary file.
(fancy-diary-display): Buttonize diary entries.
(list-sexp-diary-entries): Pass a marker indicating source of
entry to add-to-diary-list.
(diary-date): Return mark as well as entry.
2002-11-16 19:17:20 +00:00
Juanma Barranquero
b8f2671f35 calendar/diary-lib.el (make-diary-entry): Allow for local variables at end of
diary file.
2002-11-14 14:09:41 +00:00
John Wiegley
dc0868e1ce (timeclock-modeline-display): Use assq as well as memq to find
`global-mode-string' within `mode-line-format'.  The structure of
that variable has changed in 21.3.
2002-11-08 20:28:55 +00:00
Juanma Barranquero
526a5cbc6d (diary-name-pattern): Fix typo. 2002-10-17 16:47:54 +00:00
Richard M. Stallman
9475e724a2 (solar-equinoxes-solstices): Use time properly adjusted for DST in the result. 2002-09-26 21:57:53 +00:00
Richard M. Stallman
989a6aa7dd (mouse-scroll-calendar-left)
(mouse-scroll-calendar-right, mouse-calendar-other-month): New commands.
(calendar-mode-line-format): Use them.
2002-09-09 19:37:19 +00:00
Juanma Barranquero
4f7bf99054 (calendar-time-display-form): Fix spacing. 2002-09-06 07:12:06 +00:00
Richard M. Stallman
6797907ed4 (diary-mail-entries): Don't overwrite user's value
of diary-list-include-blanks, but generate message instead if
there are no entries.
2002-08-30 18:21:39 +00:00
Richard M. Stallman
bf9a91d015 (appt-delete): Use substring-no-properties.
(appt-make-list): Don't use prin1-to-string; use the string unchanged.
2002-08-15 20:18:42 +00:00
Richard M. Stallman
4e96d63b41 (appt-make-list): Correct the parsing of each appointment from time-string. 2002-08-12 17:21:06 +00:00
Sam Steingold
ee58da1b00 (diary-mail-entries): Use `compose-mail'
and `mail-user-agent' instead of straight sendmail.
(diary-modified, diary-entries-list, displayed-year)
(displayed-month, entry, date, number, date-string, d-file)
(original-date): defvar without binding to avoid compiler warnings.
2002-08-06 15:11:26 +00:00
Richard M. Stallman
347a0e237d (diary-rosh-hodesh): Cons MARK on in the third case. 2002-07-27 19:01:40 +00:00