Commit graph

1270 commits

Author SHA1 Message Date
Chong Yidong
3a67b38766 Update Oliver Seidel's email address, and add Stephen Berman as
maintainer.
2009-01-29 15:19:44 +00:00
Chong Yidong
685b547932 (todo-insert-item-here): Prevent insertion
of a new entry inside of an existing entry.  Minor code cleanup.
(todo-add-category): Change the interactive spec.  Signal an error
if the Todo file is non-empty but contains no category.  Reject
category names that could induce bugs and confusion.  Call
todo-mode if the Todo file is new and unsaved.  Simplify handling
of local variables cookie.  Properly display the newly added
category in Todo mode.
(todo-show): Call todo-initial-setup only if there is neither a
Todo file nor a corresponding unsaved buffer.
(todo-category-alist): Delete function.
(todo-completing-read): New function.
(todo-insert-item, todo-jump-to-category): Use it.
(todo-insert-item): Make the use of the prefix argument conform to
the doc string.
2009-01-28 03:56:18 +00:00
Ulf Jasper
3edf528464 icalendar: fixed doc string. 2009-01-25 21:23:39 +00:00
Ulf Jasper
f052351afe icalendar: uid-format, bug fixes. 2009-01-25 13:38:14 +00:00
Glenn Morris
3309a9ee3f (calendar-scroll-left-three-months, calendar-scroll-right-three-months):
Add event handling, for when called from menus with the calendar
buffer not current.
2009-01-10 22:01:32 +00:00
Glenn Morris
dc67263ca3 (calendar-lunar-phases): Add event handling, for when called from
menus with the calendar buffer not current.
2009-01-10 22:00:33 +00:00
Glenn Morris
436b840d1e (calendar-list-holidays, calendar-mark-holidays): Add event handling,
for when called from menus with the calendar buffer not current.
2009-01-10 22:00:14 +00:00
Miles Bader
e3e955fed3 Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1513
2009-01-09 03:01:50 +00:00
Glenn Morris
912b78ddda (cal-menu-scroll-menu): Remove entries that don't scroll the calendar. 2009-01-08 04:13:28 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Juanma Barranquero
64ba814f12 * calendar/diary-lib.el (diary-cyclic): Doc fix.
(diary-remind-message, diary-number-of-entries)
  (diary-include-other-diary-files, diary-mark-included-diary-files)
  (diary-view-entries, diary-date, diary-block, diary-insert-entry-1)
  (diary-font-lock-keywords-1): Reflow docstrings.
  (diary-add-to-list, calendar-mark-1, diary-entry-time, diary-make-date)
  (diary-anniversary, diary-date-display-form): Fix typos in docstrings.

* emacs-lisp/timer.el (timer-duration-words): Fix typo in docstring.
  (timer-duration): Use `string-match-p'.
2008-11-30 01:01:18 +00:00
Martin Rudalics
0836e2c3d7 (appt-disp-window): Do a set-buffer when the
frame can't be split.
2008-11-24 19:53:33 +00:00
Martin Rudalics
bc5777c13f (appt-disp-window): Move minibuffer check
after binding this-window and do not set-buffer to make sure we
won't deselect the minibuffer.
2008-11-24 09:51:26 +00:00
Dan Nicolaescu
d46b521475 (cal-menu-scroll-menu): Add bindings for
week forward/backward.
2008-11-20 18:14:10 +00:00
Juanma Barranquero
8fc29035f3 * w32-fns.el (w32-shell-dos-semantics):
* calendar/diary-lib.el (diary-face-attrs):
* international/mule-cmds.el (set-default-coding-systems)
  (prefer-coding-system):
* net/tramp.el (tramp-set-completion-function):
* progmodes/vhdl-mode.el (vhdl-file-header):
* term/pc-win.el (msdos-show-help): Fix typos in docstrings.

* emacs-lisp/authors.el (authors-fixed-entries): Fix typo in value.

* files.el (enable-local-eval, not-modified, kill-buffer-ask)
  (kill-matching-buffers, save-buffers-kill-emacs)
  (save-buffers-kill-terminal): Fix typos in docstrings.
  (switch-to-buffer-other-window): Reflow docstring.
  (revert-buffer): Doc fix.
  (define-project-bindings): Rename arg LIST to SETTINGS.
  (project-find-settings-file): Use `let', not `let*'.  Use `when'.
2008-11-14 13:05:18 +00:00
Ulf Jasper
ca2d101f5e icalendar: uid-creation improved 2008-10-31 18:28:16 +00:00
Eli Zaretskii
6d83def6c4 (todo-file-do, todo-file-done, todo-file-top): Run file names that begin with
a period thru `convert-standard-filename'.
2008-10-19 10:06:48 +00:00
Glenn Morris
f4498b9e4f Peter Dyballa <Peter_Dyballa at Freenet.DE>
(solar-sunrises-buffer): Fix typo.
2008-09-27 19:58:53 +00:00
Glenn Morris
19b1a5bc07 (calendar-holidays): Doc fix. 2008-08-26 05:39:53 +00:00
Glenn Morris
12b2a018ab Comments. 2008-08-26 03:03:21 +00:00
Glenn Morris
f2d9c15f59 Add declarations for builds without X. 2008-08-11 01:23:07 +00:00
Glenn Morris
a28fa64f6f (holiday-bahai): Doc fix. 2008-08-10 20:16:18 +00:00
John Wiegley
1661df026f * calendar/timeclock.el (timeclock-day-projects): Change a cdr' to cddr'. 2008-07-30 02:13:37 +00:00
Glenn Morris
aadbdbe268 Spelling fix. 2008-07-01 03:07:26 +00:00
Glenn Morris
6772c8e169 American English spelling fix. 2008-06-27 02:41:14 +00:00
Glenn Morris
d88acfe1d5 (cal-menu-sunmoon-menu, cal-menu-global-mouse-menu): Update for lunar
name changes.
2008-06-27 00:38:43 +00:00
Glenn Morris
c4d6826bd8 (diary-list-sexp-entries): Doc update. 2008-06-27 00:35:08 +00:00
Glenn Morris
77bc20eec6 (calendar-mode-map): Update for name change. 2008-06-27 00:33:42 +00:00
Glenn Morris
273fcc9bb0 (calendar-lunar-phases): Rename from calendar-phases-of-moon. Keep
old name as alias, update callers.
(lunar-phases): Rename from phases-of-moon.  Keep old name as alias.
(diary-lunar-phases): Rename from diary-phases-of-moon.  Keep old name as alias.
2008-06-27 00:33:29 +00:00
Glenn Morris
6e73a6a2c1 (solar-sunrises-buffer): New constant.
(calendar-mode-map): Use cal-menu-sunmoon-menu.
(calendar-buffer-list): Add solar-sunrises-buffer.
2008-06-26 22:30:01 +00:00
Glenn Morris
70e420e303 (cal-menu-sunmoon-menu): Rename from cal-menu-moon-menu. Add
calendar-sunrise-sunset-month.
(cal-menu-global-mouse-menu): Add calendar-sunrise-sunset-month.

(cal-menu-goto-menu): Tweak menu name.
2008-06-26 22:29:15 +00:00
Glenn Morris
5c4e164108 (solar-sunrise-sunset-string): Add optional argument `nolocation'.
(calendar-sunrise-sunset-month): New function.
2008-06-26 22:28:24 +00:00
Glenn Morris
7ec4149077 (calendar-check-holidays): Declare rather than autoloading.
(diary-show-holidays-flag): Remove unneeded declaration.
2008-06-26 07:16:38 +00:00
Glenn Morris
2b11fcd531 (calendar-cursor-to-date): Handle case where event-start is nil. 2008-06-26 07:08:01 +00:00
Glenn Morris
2eff62d6fa (cal-menu-moon-menu): Add sunrise/sunset. 2008-06-26 07:06:27 +00:00
Glenn Morris
5cbaccfe92 (calendar-intermonth-header, calendar-intermonth-text): Move earlier in file.
(calendar-print-other-dates): Store result of calendar-other-dates.
2008-06-26 06:57:29 +00:00
Glenn Morris
8da2243fe5 (cal-menu-context-mouse-menu): Add some :keys. 2008-06-26 05:02:04 +00:00
Glenn Morris
3b7de42e67 (calendar-cursor-holidays): Handle mouse events. 2008-06-26 04:54:37 +00:00
Glenn Morris
cb9069371d (calendar-mouse-holidays): Remove function.
(cal-menu-context-mouse-menu): Use calendar-cursor-holidays.
2008-06-26 04:54:12 +00:00
Glenn Morris
e889393b2e (calendar-iso-from-absolute): Add autoload cookie. 2008-06-26 03:43:18 +00:00
Glenn Morris
0fa9d7e26c (cal-menu-moon-menu, cal-menu-diary-menu, cal-menu-holidays-menu)
(cal-menu-goto-menu, cal-menu-scroll-menu): Add doc strings.

(calendar-mouse-print-dates): Remove function.
(cal-menu-context-mouse-menu): Use calendar-print-other-dates.
2008-06-26 03:42:12 +00:00
Glenn Morris
fb6be44abc (calendar-cursor-to-nearest-date): Use calendar-column-to-segment,
calendar-month-edges, and the 'date property to handle intermonth text.
2008-06-26 03:41:38 +00:00
Glenn Morris
b1c172fe60 (calendar-date-echo-text): Doc fix. Add default :value for sexp type.
(calendar-month-edges): New variable.
(calendar-month-edges): New function.
(calendar-recompute-layout-variables): Set calendar-month-edges.
(calendar-intermonth-header, calendar-intermonth-text): New options.
(calendar-insert-at-column): New function.
(calendar-generate-month): Use calendar-insert-at-column.
Handle intermonth text.  Add 'date property.
(calendar-column-to-month): Remove function.
(calendar-column-to-segment): New function.
(calendar-cursor-to-date): Use calendar-column-to-segment. Check 'date property.

(calendar-print-other-dates): Handle mouse events.
2008-06-26 03:41:20 +00:00
Glenn Morris
3eee90de6e (calendar-forward-day): Scroll in one month increments.
(calendar-cursor-to-nearest-date): Use layout variables.
Use calendar-column-to-month.
(calendar-cursor-to-visible-date): Use layout variables.
2008-06-21 19:28:58 +00:00
Glenn Morris
0c74d40b02 Factor out the magic numbers controlling the calendar layout.
(calendar-month-digit-width, calendar-month-width)
(calendar-right-margin): New variables.
(calendar-recompute-layout-variables, calendar-set-layout-variable):
New functions.
(calendar-left-margin, calendar-intermonth-spacing)
(calendar-column-width, calendar-day-header-width)
(calendar-day-digit-width): New options.
(calendar-first-date-row): New constant.
(calendar-move-to-column, calendar-ensure-newline): New functions,
replacing calendar-insert-indented.
(calendar-insert-indented): Remove function.
(calendar-generate-month): Use calendar-move-to-column and
calendar-ensure-newline.  Use layout variables.
(calendar-generate, calendar-update-mode-line)
(calendar-font-lock-keywords): Use layout variables.
(calendar-column-to-month): New function.
(calendar-cursor-to-date): Use calendar-column-to-month.
Use layout variables.
2008-06-21 19:28:09 +00:00
Glenn Morris
df59aa7bc8 (cal-menu-holidays-menu): Use calendar-cursor-holidays rather than
cal-menu-today-holidays.
(cal-menu-today-holidays): Remove function.

(cal-menu-holiday-window-suffix): Simplify.
(cal-menu-list-holidays-year, cal-menu-list-holidays-following-year)
(cal-menu-list-holidays-previous-year, calendar-mouse-goto-date):
Remove unused functions.
(calendar-mouse-view-diary-entries): Use format rather than concat.

(cal-menu-x-popup-menu): Turn it into a macro.
(calendar-mouse-holidays, calendar-mouse-view-diary-entries)
(calendar-mouse-print-dates): Adapt for cal-menu-x-popup-menu change.

(cal-menu-event-to-date): Remove function.
(calendar-mouse-holidays, calendar-mouse-view-diary-entries)
(calendar-mouse-view-other-diary-entries, calendar-mouse-print-dates)
(cal-menu-set-date-title): Use calendar-cursor-to-date rather than
cal-menu-event-to-date.

(calendar-mouse-tex-day, calendar-mouse-tex-week, calendar-mouse-tex-week2)
(calendar-mouse-tex-week-iso, calendar-mouse-tex-week-monday)
(calendar-mouse-tex-filofax-daily, calendar-mouse-tex-filofax-2week)
(calendar-mouse-tex-filofax-week, calendar-mouse-tex-month)
(calendar-mouse-tex-month-landscape, calendar-mouse-tex-year)
(calendar-mouse-tex-filofax-year, calendar-mouse-tex-year-landscape):
Remove functions.
(cal-menu-context-mouse-menu): Replace the above functions with the
cal-tex versions.  Add HTML submenu.
2008-06-18 02:56:39 +00:00
Glenn Morris
f1eb28f2ab (calendar-cursor-holidays): Accept optional date. 2008-06-18 02:55:32 +00:00
Glenn Morris
ed6c573784 (cal-tex-cursor-year)
(cal-tex-cursor-year-landscape, cal-tex-cursor-filofax-year)
(cal-tex-cursor-month-landscape, cal-tex-cursor-month)
(cal-tex-cursor-week, cal-tex-cursor-week2, cal-tex-cursor-week-iso)
(cal-tex-cursor-week-monday, cal-tex-cursor-filofax-2week)
(cal-tex-cursor-filofax-week, cal-tex-cursor-filofax-daily)
(cal-tex-cursor-day): Handle mouse events.  Rename ARG to N.
(cal-tex-cursor-month): Mark N as optional.
2008-06-18 02:55:13 +00:00
Glenn Morris
b40f3832e9 (cal-html-cursor-month, cal-html-cursor-year): Handle mouse events. 2008-06-18 02:54:40 +00:00
Stefan Monnier
10979c7466 * calendar/calendar.el (calendar-cursor-to-date): Add argument `event'.
(calendar-set-mark):
* calendar/diary-lib.el (diary-insert-entry):
* calendar/solar.el (calendar-sunrise-sunset): Use it.
* calendar/cal-menu.el (calendar-mouse-sunrise/sunset)
(calendar-mouse-insert-diary-entry, calendar-mouse-set-mark): Delete.
(cal-menu-context-mouse-menu): Use calendar-set-mark, diary-insert-entry,
and calendar-sunrise-sunset instead, to get proper key-shortcuts.
2008-06-17 15:42:19 +00:00