1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00
Commit Graph

1444 Commits

Author SHA1 Message Date
Glenn Morris
721dce172b Minor diary-lib.el fix.
* lisp/calendar/diary-lib.el (diary-header-line-format):
Fit it to the window, not the frame.
2010-08-13 18:56:35 -07:00
Ulf Jasper
81ee941084 Fixed bug#6766 (icalendar.el)
lisp/ChangeLog:

	* calendar/icalendar.el (icalendar-uid-format): Doc fix.
	(icalendar--split-value): Fixed splitting regexp. (Bug#6766)
	(icalendar--get-weekday-numbers): New
	(icalendar--create-uid, icalendar-export-region)
	(icalendar--parse-summary-and-rest): Code formatting.
	(icalendar--convert-recurring-to-diary): Handle multiple byday
	values in weekly rules. (Bug#6766)

test/ChangeLog:
        
	* icalendar-testsuite.el (icalendar-testsuite-run): Added internal tests.
	(icalendar-testsuite--trim, icalendar-testsuite--compare-strings)
	(icalendar-testsuite--run-internal-tests): New.
	(icalendar-testsuite--test-convert-ordinary-to-ical)
	(icalendar-testsuite--test-convert-block-to-ical)
	(icalendar-testsuite--test-convert-anniversary-to-ical)
	(icalendar-testsuite--test-parse-vtimezone)
	(icalendar-testsuite--do-test-export): Code formatting.
	(icalendar-testsuite--test-parse-vtimezone): Doc fix.
	(icalendar-testsuite--do-test-import)
	(icalendar-testsuite--do-test-cycle): Use icalendar-testsuite--compare-strings
	(icalendar-testsuite--run-import-tests): Comment added.
	(icalendar-testsuite--run-import-tests)
	(icalendar-testsuite--run-real-world-tests): Fixed expected results.
2010-08-08 19:42:47 +02:00
Chong Yidong
fea9cabd27 Merge changes from emacs-23 branch. 2010-07-16 11:42:15 -04:00
Glenn Morris
3260caf88a cal-tex.el fixes for calendar-week-start-day != 0.
* calendar/calendar.el (calendar-week-end-day): New function.
* calendar/cal-tex.el (cal-tex-cursor-month): Remove unused vars.
Respect calendar-week-start-day.  (Bug#6606)
(cal-tex-insert-day-names, cal-tex-insert-blank-days)
(cal-tex-insert-blank-days-at-end): Respect calendar-week-start-day.
(cal-tex-first-blank-p, cal-tex-last-blank-p): Simplify, and
respect calendar-week-start-day.
2010-07-10 16:34:57 -07:00
Stefan Monnier
2a64315a11 Merge from emacs-23 2010-06-16 16:08:41 -04:00
Glenn Morris
d7cd4abb48 Tweak previous change.
* lisp/calendar/appt.el (appt-time-msg-list): Doc fix.
(appt-check): Let-bind appt-warn-time.
(appt-add): Make the 3rd argument optional.
Simplify argument names.  Doc fix.  Check for integer WARNTIME.
Only add WARNTIME to the output list if non-nil.
2010-06-14 20:42:33 -07:00
Ivan Kanis
a675c74911 Close bug#5176.
* lisp/calendar/appt.el (appt-check): Let the 3rd element of
appt-time-msg-list specify the warning time.
(appt-add): Add new argument with the warning time.
2010-06-14 20:38:58 -07:00
Juanma Barranquero
528b9ea9ff Simplify by using `define-derived-mode'.
* info.el (Info-mode):
* calendar/todo-mode.el (todo-mode):
* play/gomoku.el (gomoku-mode): Define with `define-derived-mode'.
  (gomoku-mode-map): Move initialization into declaration.
2010-04-15 03:12:20 +02:00
Stefan Monnier
eb6967a081 Remove the Arch metafiles. 2010-04-12 23:06:50 -04:00
Stefan Monnier
e867cb5d30 Merge from `emacs-23'. 2010-03-24 14:02:56 -04:00
Juanma Barranquero
c8de140b34 Fix typos in docstrings.
* image-dired.el (image-dired-display-thumbs): Fix typo in docstring.
  (image-dired-read-comment): Doc fix.

* json.el (json-object-type, json-array-type, json-key-type, json-false)
  (json-null, json-read-number):
* minibuffer.el (completion-in-region-functions):
* calendar/cal-tex.el (cal-tex-daily-end, cal-tex-number-weeks)
  (cal-tex-cursor-week):
* emacs-lisp/trace.el (trace-function):
* eshell/em-basic.el (eshell/printnl):
* eshell/em-dirs.el (eshell-last-dir-ring, eshell-parse-drive-letter)
  (eshell-read-last-dir-ring, eshell-write-last-dir-ring):
* obsolete/levents.el (allocate-event, event-key, event-object)
  (event-point, event-process, event-timestamp, event-to-character)
  (event-window, event-x, event-x-pixel, event-y, event-y-pixel):
* textmodes/reftex-vars.el (reftex-index-macros-builtin)
  (reftex-section-levels, reftex-auto-recenter-toc, reftex-toc-mode-hook)
  (reftex-cite-punctuation, reftex-search-unrecursed-path-first)
  (reftex-highlight-selection): Fix typos in docstrings.
2010-03-22 17:50:29 +01:00
Glenn Morris
1a355d092b * calendar/cal-french.el: Convert to utf-8. 2010-03-17 22:25:13 -07:00
Glenn Morris
33f779825b Fix date of Yom HaAtzma'ut holiday.
* calendar/cal-hebrew.el (holiday-hebrew-passover): Fix date
of Yom HaAtzma'ut when it falls on a Monday (rule changed in 2004).
2010-03-01 19:27:41 -08:00
Chong Yidong
de3a1fe935 Fix more save-excursion warnings.
* textmodes/reftex-toc.el (reftex-toc-promote-prepare):
* emacs-lisp/elint.el (elint-add-required-env):
* cedet/semantic/db-find.el (semanticdb-find-translate-path-brutish-default):
* cedet/ede/make.el (ede-make-check-version):
* calendar/icalendar.el (icalendar--add-diary-entry):
* calc/calcalg2.el (math-tracing-integral): Use with-current-buffer instead of save-excursion.
2010-02-27 20:22:44 -05:00
Ulf Jasper
b4340b3f0b Fixed bug#5549 (icalendar.el) 2010-02-19 19:59:00 +01:00
Stephen Berman
7d82a7383b Fix bug#5477.
Stephen Berman  <stephen.berman at gmx.net>:

(diary-unhide-everything): Handle narrowed buffers.
2010-01-26 20:00:54 -08:00
Chong Yidong
244b023e52 Doc fix for current-time-string and date-to-time (Bug#5408)
* src/editfns.c (Fcurrent_time_string): Doc fix.
* lisp/calendar/time-date.el (date-to-time): Doc fix.
2010-01-18 11:29:00 -05:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Ulf Jasper
6fe539d246 Fixed timezone handling problem in icalendar.el. 2009-12-18 19:35:14 +00:00
Glenn Morris
5813f6ef75 (diary-list-entries): Replace superfluous save-excursion with
save-current-buffer.
Widen before searching.  (Bug#5093)
(diary-list-sexp-entries): Remove superfluous save-excursion.
2009-12-02 03:03:48 +00:00
Glenn Morris
e8a11b2298 Update x-popup-menu declaration. 2009-11-10 08:11:47 +00:00
Dan Nicolaescu
1e8780b173 * textmodes/tex-mode.el (tex-alt-dvi-print-command)
(tex-dvi-print-command, tex-bibtex-command, tex-start-commands)
(tex-start-options, slitex-run-command, latex-run-command)
(tex-run-command, tex-directory):
* textmodes/ispell.el (ispell-html-skip-alists)
(ispell-tex-skip-alists, ispell-tex-skip-alists):
* textmodes/fill.el (adaptive-fill-first-line-regexp):
(adaptive-fill-regexp):
* textmodes/dns-mode.el (auto-mode-alist):
* progmodes/python.el (interpreter-mode-alist):
* progmodes/etags.el (tags-compression-info-list):
* progmodes/etags.el (tags-file-name):
* net/browse-url.el (browse-url-galeon-program)
(browse-url-firefox-program):
* mail/sendmail.el (mail-signature-file)
(mail-citation-prefix-regexp):
* international/mule-conf.el (eight-bit):
* international/latexenc.el (latex-inputenc-coding-alist):
* international/fontset.el (x-pixel-size-width-font-regexp):
* emacs-lisp/warnings.el (warning-type-format):
* emacs-lisp/trace.el (trace-buffer):
* emacs-lisp/lisp-mode.el (lisp-interaction-mode-map)
(emacs-lisp-mode-map):
* calendar/holidays.el (holiday-solar-holidays)
(holiday-bahai-holidays, holiday-islamic-holidays)
(holiday-christian-holidays, holiday-hebrew-holidays)
(hebrew-holidays-4, hebrew-holidays-3, hebrew-holidays-2)
(hebrew-holidays-1, holiday-oriental-holidays)
(holiday-general-holidays):
* x-dnd.el (x-dnd-known-types):
* tool-bar.el (tool-bar):
* startup.el (site-run-file):
* shell.el (shell-dumb-shell-regexp):
* rfn-eshadow.el (file-name-shadow-tty-properties)
(file-name-shadow-properties):
* paths.el (remote-shell-program, news-directory):
* mouse.el ([C-down-mouse-3]):
* menu-bar.el (menu-bar-tools-menu):
* jka-cmpr-hook.el (jka-compr-load-suffixes)
(jka-compr-mode-alist-additions, jka-compr-compression-info-list)
(jka-compr-compression-info-list):
* isearch.el (search-whitespace-regexp):
* image-file.el (image-file-name-extensions):
* find-dired.el (find-ls-option):
* files.el (directory-listing-before-filename-regexp)
(directory-free-space-args, insert-directory-program)
(list-directory-brief-switches, magic-fallback-mode-alist)
(magic-fallback-mode-alist, auto-mode-interpreter-regexp)
(automount-dir-prefix):
* faces.el (face-x-resources, x-font-regexp, x-font-regexp-head)
(x-font-regexp-slant, x-font-regexp-weight, face-x-resources)
(face-font-registry-alternatives, face-font-registry-alternatives)
(face-font-family-alternatives):
* facemenu.el (facemenu-add-new-face, facemenu-background-menu)
(facemenu-foreground-menu, facemenu-face-menu):
* epa-hook.el (epa-file-name-regexp):
* dnd.el (dnd-protocol-alist):
* textmodes/rst.el (auto-mode-alist):
* button.el (default-button):  Purecopy strings.
2009-11-06 05:16:23 +00:00
Glenn Morris
4f8f657fc4 (top-level): Make load behave more like require. 2009-11-05 03:22:18 +00:00
Juanma Barranquero
d3d5f4f504 * calendar/calendar.el (cal-loaddefs):
* calendar/diary-lib.el (diary-loaddefs):
* calendar/holidays.el (hol-loaddefs):
* eshell/esh-module.el (esh-groups):
* mh/mh-e.el (mh-loaddefs): Load rather than require.
2009-11-04 00:27:34 +00:00
Stefan Monnier
7e83e8b459 (todo-add-category): Don't hardcode point-min==1.
(todo-top-priorities): Only display-buffer when called interactively.
(todo-item-start): Don't save excursion point.
(todo-item-end): Be slightly more careful.  Add `include-sep' arg.
(todo-insert-item-here, todo-file-item, todo-remove-item):
Adjust uses of todo-item-start and todo-item-end.
2009-11-03 22:24:34 +00:00
Stefan Monnier
937e6a5612 * url-util.el (url-insert-entities-in-string):
* url-nfs.el (url-nfs-unescape):
* url-ldap.el (url-ldap):
* url-imap.el (url-imap):
* url-cid.el (url-cid-gnus, url-cid): Use with-current-buffer.
* erc.el (erc-display-line-1, erc-process-away):
* erc-truncate.el (erc-truncate-buffer-to-size):
Use with-current-buffer.
* term/ns-win.el (ns-scroll-bar-move, ns-face-at-pos):
* play/mpuz.el (mpuz-create-buffer):
* play/landmark.el (lm-prompt-for-move, lm-print-wts, lm-print-smell)
(lm-print-y,s,noise, lm-print-w0, lm-init):
* play/gomoku.el (gomoku-prompt-for-move):
* play/fortune.el (fortune-in-buffer):
* play/dissociate.el (dissociated-press):
* play/decipher.el (decipher-adjacency-list, decipher-display-regexp)
(decipher-analyze-buffer, decipher-stats-buffer,decipher-stats-buffer):
* mail/supercite.el (sc-eref-show):
* mail/smtpmail.el (smtpmail-send-it):
* mail/rmailsum.el (rmail-summary-next-labeled-message)
(rmail-summary-previous-labeled-message, rmail-summary-wipe)
(rmail-summary-undelete-many, rmail-summary-rmail-update)
(rmail-summary-goto-msg, rmail-summary-expunge)
(rmail-summary-get-new-mail, rmail-summary-search-backward)
(rmail-summary-add-label, rmail-summary-output-menu)
(rmail-summary-output-body):
* mail/rfc822.el (rfc822-addresses):
* mail/reporter.el (reporter-dump-variable, reporter-dump-state):
* mail/mailpost.el (post-mail-send-it):
* mail/hashcash.el (hashcash-generate-payment):
* mail/feedmail.el (feedmail-run-the-queue)
(feedmail-queue-send-edit-prompt-help-first)
(feedmail-send-it-immediately, feedmail-give-it-to-buffer-eater)
(feedmail-deduce-address-list):
* eshell/esh-ext.el (eshell-remote-command):
* eshell/em-unix.el (eshell-occur-mode-mouse-goto):
* emulation/viper-util.el (viper-glob-unix-files, viper-save-setting)
(viper-wildcard-to-regexp, viper-glob-mswindows-files)
(viper-save-string-in-file, viper-valid-marker):
* emulation/viper-keym.el (viper-toggle-key):
* emulation/viper-ex.el (ex-expand-filsyms, viper-get-ex-file)
(ex-edit, ex-global, ex-mark, ex-next-related-buffer, ex-quit)
(ex-get-inline-cmd-args, ex-tag, ex-command, ex-compile):
* emulation/viper-cmd.el (viper-exec-form-in-vi)
(viper-exec-form-in-emacs, viper-brac-function):
* emulation/viper.el (viper-delocalize-var):
* emulation/vip.el (vip-mode, vip-get-ex-token, vip-ex, vip-get-ex-pat)
(vip-get-ex-command, vip-get-ex-opt-gc, vip-get-ex-buffer)
(vip-get-ex-count, vip-get-ex-file, ex-edit, ex-global, ex-mark)
(ex-map, ex-unmap, ex-quit, ex-read, ex-tag, ex-command):
* emulation/vi.el (vi-switch-mode, vi-ex-cmd):
* emulation/edt.el (edt-electric-helpify):
* emulation/cua-rect.el (cua--rectangle-aux-replace):
* emulation/cua-gmrk.el (cua--insert-at-global-mark)
(cua--delete-at-global-mark, cua--copy-rectangle-to-global-mark)
(cua-indent-to-global-mark-column):
* calendar/diary-lib.el (calendar-mark-1):
* calendar/cal-hebrew.el (calendar-hebrew-mark-date-pattern):
Use with-current-buffer.
* emulation/viper.el (viper-delocalize-var): Use dolist.
2009-11-03 02:04:29 +00:00
Glenn Morris
d566f22825 Stephen Berman <stephen.berman at gmx.net>
(todo-edit-item): Signal an error if there is no item to edit. (Bug#4820)
(todo-top-priorities): Restore point and restore narrowing in Todo
buffer. (Bug#4820)
2009-10-31 02:22:30 +00:00
Glenn Morris
58ae51ae02 (calendar-split-width-threshold): New option.
(calendar-basic-setup): Use calendar-split-width-threshold.
2009-10-10 20:50:39 +00:00
Glenn Morris
429a150633 (calendar-basic-setup): In the wide frame case, show the original
buffer rather than a random one.
2009-10-07 02:57:46 +00:00
Glenn Morris
eaf9b5643d Use window-full-height-p. 2009-10-06 02:42:29 +00:00
Glenn Morris
00169eb683 Matthew Junker <matthew.junker at sbcglobal.net> (tiny change)
(cal-tex-cursor-month-landscape)
(cal-tex-cursor-month): Correctly increment the end date for diary and
holiday listing.  (Bug#4626)
2009-10-06 02:36:35 +00:00
Stefan Monnier
4a34f0655d (diary-show-all-entries): Re-fit the calendar window if necessary. 2009-10-05 05:39:48 +00:00
Stefan Monnier
72aa7df48f (calendar-basic-setup): Don't call switch-to-buffer in a dedicated window. 2009-10-05 05:36:11 +00:00
Glenn Morris
686ea556eb (calendar-basic-setup): Handle the case where the frame is wide.
(calendar-generate-window): Test for shrinkability rather than width.
2009-10-03 02:19:22 +00:00
Juanma Barranquero
32226619c5 Use called-interactively-p' instead of interactive-p'. 2009-10-02 03:48:36 +00:00
Glenn Morris
2157a2be64 (diary-fancy-display): Always run the hook. 2009-09-24 03:26:51 +00:00
Glenn Morris
daedbbc2a9 (calendar-mode-map): Make mouse-1 and 3 clicks on the scroll-bar
scroll the calendar window rather than the buffer.
2009-09-22 07:37:58 +00:00
Glenn Morris
d8899a7416 (cal-menu-scroll-menu): Add a sub-section with commands that move
point (as opposed to scrolling).
2009-09-22 07:15:31 +00:00
Glenn Morris
2b8e87c469 (diary-display-function): Change the default to fancy display.
(body): Define for compiler.
2009-09-15 02:34:54 +00:00
Katsumi Yamaoka
cdce0b331f * calendar/time-date.el (autoload):
Expand define-obsolete-function-alias into defalias and make-obsolete
for old Emacsen that Gnus supports.
(with-no-warnings): Define it for old Emacsen.
(time-to-seconds): Don't use (featurep 'xemacs) to check if float-time
is available.
(time-to-number-of-days): Don't use (featurep 'xemacs) to check if
float-time is available; suppress compile warning for time-to-seconds.

2009-09-09  Teodor Zlatanov  <tzz@lifelogs.com>

* net/imap.el (imap-message-map): Docstring fix.
2009-09-09 09:29:29 +00:00
Glenn Morris
c8dc27bff3 (diary-entry): Add help-echo and follow-link properties to this button.
(diary-fancy-display): Don't extend the button to the final newline.
(diary-fancy-display-mode): Continue to define "q" as a local key.
2009-09-05 21:11:34 +00:00
Glenn Morris
cca065d8cf (holiday-chinese): Make it slightly more efficient. 2009-09-05 21:07:15 +00:00
Glenn Morris
b42d4989af (diary-fancy-display): Only switch modes if necessary.
(diary-fancy-overriding-map): New variable.
(diary-fancy-display-mode): Set minor-mode-overriding-map-alist.
Use view-mode.
2009-09-04 02:59:13 +00:00
Glenn Morris
e605eeebd5 (appt-check): Don't call substitute-in-file-name on diary-file. 2009-09-03 06:35:25 +00:00
Glenn Morris
6dd2d9b932 (diary-set-header, diary-live-p)
(diary-check-diary-file, diary-list-entries)
(diary-include-other-diary-files, diary-simple-display)
(diary-fancy-display, diary-print-entries)
(diary-mark-included-diary-files, diary-make-entry):
Don't call substitute-in-file-name on diary-file.
2009-09-03 06:34:19 +00:00
Glenn Morris
697c7714ce (time-to-seconds): In Emacs, make it an obsolete alias for float-time.
(time-to-number-of-days): In Emacs, use float-time.
2009-09-02 03:22:58 +00:00
Glenn Morris
e7d3b89834 (diary-button-face): Mark this face alias as obsolete. 2009-08-31 01:33:58 +00:00
Glenn Morris
d8bc5d08e6 (calendar-today): Doc fix.
(calendar-today-face, diary-face, holiday-face):
Mark these face aliases as obsolete.
2009-08-31 01:33:43 +00:00
Glenn Morris
4d985ac2e6 (diary-list-entries, diary-goto-entry)
(diary-show-all-entries, diary-mark-entries, diary-make-entry):
Use default-value of major-mode rather than default-major-mode.
2009-08-28 03:18:49 +00:00
Glenn Morris
6dc3311d25 Define risky-local-variable property here rather than in files.el. 2009-08-26 03:07:25 +00:00
Glenn Morris
977955fab7 (diary-mark-entries-1): Only mark all days of a given name if the
pattern is not more specific.
2009-08-22 19:47:42 +00:00
Glenn Morris
b4deec2e85 (lunar-phase-names): New option.
(lunar-phase): Doc fix.
(lunar-cycles-per-year): New constant.
(lunar-index): New function.
(lunar-phase-list, diary-lunar-phases): Use lunar-index.
(lunar-phase-name): Use lunar-phase-names.
(calendar-lunar-phases): Use format.
(lunar-new-moon-on-or-after): Use lunar-cycles-per-year.
2009-08-22 19:45:30 +00:00
Stefan Monnier
cb5b40ee3b * textmodes/remember.el (remember-buffer):
* progmodes/cperl-mode.el (cperl-vc-header-alist):
* calendar/icalendar.el (icalendar-convert-diary-to-ical)
(icalendar-extract-ical-from-buffer): Add version of obsolescence.
2009-08-21 15:09:42 +00:00
Glenn Morris
a8ab722f60 (calendar-cursor-to-nearest-date, calendar-cursor-to-visible-date):
Use forward-line, not goto-line.
2009-08-21 07:11:24 +00:00
Chong Yidong
81b1f9c9b7 * calendar/parse-time.el (parse-time-string-chars): Save match data. 2009-08-16 18:38:15 +00:00
Chong Yidong
1200ac269a * calendar/parse-time.el (parse-time-string-chars): Compute using
character classes (Bug#3190).
2009-08-16 14:33:43 +00:00
Glenn Morris
55d27f4157 (calendar-current-date): Update declaration. 2009-07-21 05:02:36 +00:00
Glenn Morris
a71b84cd1b (cal-menu-set-date-title): Handle calls from non-calendar buffers (Bug#3862).
Restore "not on a date" message.
(cal-menu-context-mouse-menu): Doc fix.
2009-07-19 00:32:31 +00:00
Glenn Morris
7ef5b8b271 (calendar-current-date): Rework previous change. 2009-07-08 02:48:11 +00:00
Glenn Morris
3ce82f979d Ed Reingold <reingold at emr.cs.iit.edu>
(calendar-current-date): Add an optional argument giving an offset from today.
2009-07-08 02:46:23 +00:00
Glenn Morris
84cb770dc9 (calendar-time-zone-daylight-rules): Simplify Persian conditionals. 2009-06-23 07:30:25 +00:00
Glenn Morris
731a00fbd7 (appt-make-list): Fix off-by-one error caused by
differing behavior of \n and ^ in strings.  (Bug#3385)
2009-06-22 06:29:59 +00:00
Glenn Morris
b27c3bc6ec (calendar-time-zone-daylight-rules): Fix typo in 2008-04-02 change. 2009-06-10 01:32:55 +00:00
Glenn Morris
8682defdaa (solar-n-hemi-seasons, solar-s-hemi-seasons):
Make into defcustoms.  (Bug#3429)
2009-06-04 06:40:13 +00:00
Glenn Morris
d5a8ed1053 (calendar-forward-day): Fix 2008-06-21 change -
always move cursor to new date.  (Bug#3338)
2009-05-21 04:40:08 +00:00
Glenn Morris
64b7c58a67 (calendar-holidays): Don't autoload it. (Bug#2811) 2009-04-02 06:34:21 +00:00
Glenn Morris
6f8eab73b4 (diary-cyclic): Check for +ve N. 2009-04-02 06:33:18 +00:00
Glenn Morris
a20013c1bb (cal-tex-preamble-extra): Add an example string value to help people
with the formatting.
2009-03-15 21:32:14 +00:00
Glenn Morris
6302f8acf2 (diary-date-forms, calendar-date-display-form):
Add :set-after listing variables on which we might depend.
2009-03-02 07:00:43 +00:00
Glenn Morris
fa262b58b2 (calendar-window-list): Ignore invisible windows.
(calendar-set-mode-line): Fall back to a default width if we seem to be
called from daemon.  (Bug#2199)
2009-02-11 04:02:16 +00:00
Glenn Morris
833374ea08 Add :version tags for previous change. 2009-02-09 17:26:21 +00:00
Glenn Morris
bdc3df307b (diary-entry-marker, calendar-today-marker)
(calendar-holiday-marker): Drop test for color display.
2009-02-09 07:52:54 +00:00
Glenn Morris
c253eff0ae (diary-fancy-display): It doesn't make sense to check font-lock-mode
(see comments; reverts 2008-04-02 change).  (Bug#2199)
2009-02-08 01:52:26 +00:00
Glenn Morris
6ed1743386 (diary-entry-marker, calendar-today-marker, calendar-holiday-marker)
(calendar-mark-visible-date): It doesn't make sense to check
font-lock-mode (see comments; reverts 2008-04-02 change).  (Bug#2199)
2009-02-08 01:52:01 +00:00
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
Glenn Morris
bb715837d8 (calendar-move-hook):Add calendar-update-mode-line as an option.
(calendar-date-echo-text): New user option.
(calendar-generate-month): Set `day'.  Use calendar-date-echo-text.
(calendar-insert-indented): Simplify newline insertion.
(calendar-describe-mode): Remove unused function.
(calendar-mode-line-entry): New function.
(calendar-mode-line-format): Doc fix.  Use calendar-mode-line-entry.
Mark as risky.
(calendar-mouse-other-month): Remove function.
(calendar-other-month): Handle mouse events.
(calendar-goto-info-node): Call fit-window-to-buffer.
(calendar-mode): Use define-derived-mode.  Doc fix.
(calendar-update-mode-line): Tweak whitespace.
2008-06-17 05:56:48 +00:00
Glenn Morris
ac14560041 (diary-list-entries-2): Accept optional Gregorian date, and add it,
not the local date, to diary-entries-list.
(diary-list-entries-1): Pass Gregorian date to diary-list-entries-2.
2008-06-11 02:57:35 +00:00
Glenn Morris
20246a8587 Fix commentary typo. 2008-06-10 03:12:26 +00:00
Glenn Morris
a02717ccd4 (calendar-mouse-view-diary-entries): Use LIST-ONLY argument of
diary-list-entries rather than setting diary-display-hook.
2008-05-30 02:59:21 +00:00
Glenn Morris
75c7218046 (cal-tex-list-diary-entries): Use LIST-ONLY argument of
diary-list-entries rather than setting diary-display-hook.
2008-05-30 02:58:50 +00:00
Glenn Morris
fb696168dc (cal-html-list-diary-entries): Use LIST-ONLY argument of
diary-list-entries rather than setting diary-display-hook.
2008-05-30 02:58:33 +00:00
Glenn Morris
f082900a2b (calendar-dedicate-diary): Update for diary-display-function replacing
diary-display-hook.
2008-05-30 02:58:01 +00:00
Glenn Morris
0f9aa26a45 (appt-check): Use diary-display-function rather than diary-display-hook. 2008-05-30 02:57:43 +00:00
Glenn Morris
f8c8f32b3d (diary-display-function): New name for diary-display-hook. Keep old
name as obsolete alias.  Doc fix.  Change custom type and version.
(diary-list-entries-hook, diary-list-entries, diary-simple-display)
(diary-fancy-display): Doc fixes.
(diary-list-entries, diary-include-other-diary-files, diary-mail-entries):
Use diary-display-function rather than diary-display-hook.
2008-05-30 02:57:27 +00:00
Chong Yidong
3b738106ab (parse-time-months, parse-time-weekdays): Add long-form month and day names. 2008-05-27 03:47:27 +00:00
Glenn Morris
b4cb42a4d8 (diary-ordinal-suffix): Declare for compiler. 2008-05-26 01:27:45 +00:00
Glenn Morris
4980d28f5a Ed Reingold <reingold at emr.cs.iit.edu>
(diary-hebrew-yahrzeit): Use diary-ordinal-suffix.
2008-05-25 20:09:23 +00:00
Glenn Morris
0fc438b827 Ulf Jasper <ulf.jasper at web.de>
(icalendar-version): Increase to "0.19".
(icalendar--date-style): New function.
(icalendar--datetime-to-diary-date): Doc fix.  Use icalendar--date-style.
(icalendar--datestring-to-isodate): Doc fix.  Handle iso date style.
(icalendar--convert-yearly-to-ical):
(icalendar--convert-recurring-to-diary): Handle iso date style,
use icalendar-date-style.
2008-05-24 02:26:06 +00:00
Glenn Morris
2ed665755b Switch to recommended form of GPLv3 permissions notice. 2008-05-06 03:07:58 +00:00
Glenn Morris
5d595461b4 (holiday-float): Doc fix. 2008-04-29 03:35:08 +00:00
Glenn Morris
a478b7bc2f (diary-list-sexp-entries, diary-float): Doc fix. 2008-04-29 03:34:40 +00:00
Glenn Morris
e705756857 (calendar-nth-named-absday, calendar-nth-named-day): Doc fix. 2008-04-29 03:34:17 +00:00
Glenn Morris
378d60452f (cal-menu-diary-menu): Fix typo.
(cal-menu-scroll-menu): Use commands rather than key macros, which don't
work with easymenu.  Add :keys where needed.
2008-04-24 05:44:38 +00:00
Glenn Morris
b2cbe2af53 (calendar-scroll-left): Handle case when event-start is nil. 2008-04-24 05:43:27 +00:00
Glenn Morris
f971f8bc3a (calendar-mode-map): Fix typo. 2008-04-24 05:42:47 +00:00
Miles Bader
9268294b0f Add .arch-inventory files in lisp/calc and lisp/calendar
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1123
2008-04-23 08:54:31 +00:00
Glenn Morris
32b3f9e3b8 (calendar-other-dates): Revert previous change; absolute-date was
already there (as "RD" date).
2008-04-23 03:27:13 +00:00
Glenn Morris
968560df8d (diary-list-sexp-entries): Doc fix.
(diary-remind): Allow negative DAYS to represent a range 1:DAYS.
Suggested by Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>.
2008-04-23 03:06:11 +00:00
Glenn Morris
418c2f01e1 (holiday-chinese-qingming, holiday-chinese-winter-solstice)
(holiday-chinese): New functions.
2008-04-23 03:03:43 +00:00
Glenn Morris
43c783b89a (holiday-oriental-holidays): Add more holidays. 2008-04-23 03:00:29 +00:00
Glenn Morris
7717093cb5 (calendar-chinese-all-holidays-flag): New.
(calendar-other-dates): Add absolute date.
2008-04-23 02:59:47 +00:00