Ulf Jasper
6dbaa1c769
icalendar-tests: Fix Bug#11525 -- Add icalendar-import-format-uid
...
2012-05-29 Ulf Jasper <ulf.jasper@web.de>
* calendar/icalendar.el
(icalendar-export-region): Export UID properly.
2012-05-29 Leo Liu <sdl.web@gmail.com>
* calendar/icalendar.el (icalendar-import-format): Add
`icalendar-import-format-uid' (Bug#11525).
(icalendar-import-format-uid): New.
(icalendar--parse-summary-and-rest, icalendar--format-ical-event):
Export UID.
2012-05-29 21:42:49 +02:00
Glenn Morris
48176e8bac
Optionally include holidays in cal-html output
...
* lisp/calendar/cal-html.el: (cal-html-holidays): New option.
(cal-html-css-default): Add holiday entry.
(holiday-in-range): Autoload it.
(cal-html-htmlify-entry): Add optional class argument.
(cal-html-htmlify-list): Add optional holidays argument.
(cal-html-insert-agenda-days): Include holidays in the output.
(cal-html-one-month): Maybe include holidays.
2012-05-05 14:31:41 -07:00
Glenn Morris
a43f98b395
Move function from cal-tex to holidays
...
* calendar/holidays.el (holiday-in-range):
Move here from cal-tex-list-holidays.
* calendar/cal-tex.el (cal-tex-list-holidays):
Make it an obsolete alias for holiday-in-range. Update all callers.
2012-05-05 13:58:14 -07:00
Stefan Monnier
71873e2b33
Add new error and function `user-error'.
...
* lisp/subr.el (user-error): New function.
* lisp/window.el (switch-to-buffer):
* lisp/vc/smerge-mode.el (smerge-resolve-function, smerge-resolve)
(smerge-match-conflict):
* lisp/simple.el (previous-matching-history-element)
(next-matching-history-element, goto-history-element, undo-more)
(undo-start):
* lisp/progmodes/etags.el (visit-tags-table-buffer, find-tag-tag)
(find-tag-noselect, find-tag-in-order, etags-goto-tag-location)
(next-file, tags-loop-scan, list-tags, complete-tag):
* lisp/progmodes/compile.el (compilation-loop):
* lisp/mouse.el (mouse-minibuffer-check):
* lisp/man.el (Man-bgproc-sentinel, Man-goto-page):
* lisp/info.el (Info-find-node-2, Info-extract-pointer, Info-history-back)
(Info-history-forward, Info-follow-reference, Info-menu)
(Info-extract-menu-item, Info-extract-menu-counting)
(Info-forward-node, Info-backward-node, Info-next-menu-item)
(Info-last-menu-item, Info-next-preorder, Info-last-preorder)
(Info-next-reference, Info-prev-reference, Info-index)
(Info-index-next, Info-follow-nearest-node)
(Info-copy-current-node-name):
* lisp/imenu.el (imenu--make-index-alist)
(imenu-default-create-index-function, imenu-add-to-menubar):
* lisp/files.el (basic-save-buffer, recover-file):
* lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
* lisp/emacs-lisp/checkdoc.el (checkdoc-continue, checkdoc-comments)
(checkdoc-message-text, checkdoc-defun):
* lisp/dabbrev.el (dabbrev-completion, dabbrev--abbrev-at-point):
* lisp/cus-edit.el (customize-changed-options, customize-rogue)
(customize-saved, custom-variable-set, custom-variable-mark-to-save)
(custom-variable-mark-to-reset-standard)
(custom-variable-reset-backup, custom-face-mark-to-reset-standard)
(custom-file):
* lisp/completion.el (check-completion-length):
* lisp/comint.el (comint-search-arg)
(comint-previous-matching-input-string-position)
(comint-previous-matching-input)
(comint-replace-by-expanded-history-before-point, comint-send-input)
(comint-copy-old-input, comint-backward-matching-input)
(comint-goto-process-mark, comint-set-process-mark):
* lisp/calendar/calendar.el (calendar-cursor-to-date): Use it.
* lisp/bindings.el (debug-ignored-errors): Remove regexps, add `user-error'.
* src/data.c (PUT_ERROR): New macro.
(syms_of_data): Use it. Add new error type `user-error'.
* src/undo.c (user_error): New function.
(Fprimitive_undo): Use it.
* src/print.c (print_error_message): Adjust print style for `user-error'.
* src/keyboard.c (user_error): New function.
(Fexit_recursive_edit, Fabort_recursive_edit): Use it.
2012-05-04 19:16:47 -04:00
Glenn Morris
0e829eabcd
* lisp/calendar/cal-tex.el (cal-tex-end-document): Trivial clarification.
2012-04-16 15:18:36 -04:00
Glenn Morris
0c2014a3c2
* lisp/calendar/holidays.el (calendar-check-holidays): Doc fix.
2012-04-09 00:11:39 -07:00
Glenn Morris
a1daddd610
Revert 2012-03-28 calendar change
...
* lisp/calendar/calendar.el (calendar-window-list)
(calendar-hide-window): Restore.
(calendar-exit): Use calendar-window-list, calendar-hide-window again.
Fixes: debbugs:11140
2012-03-31 13:03:59 -07:00
Sam Steingold
6e7a6ec037
calendar/calendar.el (calendar-exit): Use `quit-windows-on' instead of
...
the broken adhockery which does not prevent calendar buffers from
being displayed at random after exit.
(calendar-window-list, calendar-hide-window): Remove the broken adhockery.
2012-03-29 10:00:00 -04:00
Glenn Morris
c7e73d5177
calendar-insert-at-column small fix for bug#10978
...
* lisp/calendar/calendar.el (calendar-insert-at-column):
Handle non-unit-width characters a bit better.
2012-03-15 21:10:46 -04:00
Glenn Morris
3809f91dfa
Small calendar-string-spread fix for bug#10978
...
* lisp/calendar/calendar.el (calendar-string-spread):
Handle non-unit-width characters a bit better.
2012-03-13 13:56:31 -04:00
Tim Landscheidt
4aaa93566b
Fix some missing trailing whitespace (tiny change)
...
* lisp/calendar/icalendar.el (icalendar-export-file, icalendar-import-file):
* lisp/emulation/ws-mode.el (ws-query-replace):
* lisp/sort.el (sort-regexp-fields):
Fix missing trailing whitespace in interactive prompts.
Fixes: debbugs:11002
2012-03-12 23:54:37 -07:00
Adam Spiers
2467932310
calendar-set-mode-line fix (tiny change)
...
* lisp/calendar/calendar.el (calendar-set-mode-line):
`getenv' returns a string.
Fixes: debbugs:10951
2012-03-05 21:18:29 -05:00
Glenn Morris
44e97401cd
Standardize possessive apostrophe usage in manuals, docs, and comments
...
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00649.html
2012-02-28 00:17:21 -08:00
Andreas Schwab
f008086fd2
* calendar/parse-time.el (parse-time-string): Allow extractor to
...
return nil.
2012-02-25 11:00:08 +01:00
Glenn Morris
6818b4492e
Use utf-8 Baha'i in calendar doc-strings, menus, etc
...
* lisp/calendar/cal-menu.el (cal-menu-diary-menu, cal-menu-goto-menu):
* lisp/calendar/calendar.el (diary-file, diary-bahai-entry-symbol)
(calendar-bahai-all-holidays-flag, calendar-other-dates):
* lisp/calendar/diary-lib.el (diary-abbreviated-year-flag):
* lisp/calendar/holidays.el (holiday-bahai-holidays)
(calendar-holidays, list-holidays):
Use utf-8 Baha'i in doc-strings, menus, etc.
2012-02-17 22:08:15 -05:00
Glenn Morris
d68cd08705
calendar-hebrew-list-yahrzeits tweak
...
* lisp/calendar/cal-hebrew.el (calendar-hebrew-list-yahrzeits):
Interactively in calendar buffer, give an error if not on a date.
2012-02-16 00:21:30 -08:00
Glenn Morris
536aea70db
* lisp/calendar/calendar.el (calendar-mode): Locally set scroll-margin to 0.
2012-01-05 20:03:40 -05:00
Glenn Morris
acaf905b11
Add 2012 to FSF copyright years for Emacs files
2012-01-05 01:46:05 -08:00
Paul Eggert
6196cffecf
Spelling fixes.
2011-12-21 01:58:39 -08:00
Paul Eggert
fa46310344
Spelling fixes.
2011-12-05 00:55:25 -08:00
Glenn Morris
5158face2e
appt.el trivia.
...
* lisp/calendar/appt.el (appt-add): Rewrite the interactive-spec to avoid
overly zealous deletion of trailing whitespace.
2011-12-04 11:41:44 -08:00
Glenn Morris
55dc42fcf3
* appt.el: Restore significant whitespace deleted by "spelling fix".
2011-12-04 11:31:41 -08:00
Paul Eggert
c80e3b4aed
Spelling fixes.
2011-12-04 00:02:42 -08:00
Paul Eggert
e1dbe924b5
Spelling fixes.
2011-11-19 18:29:42 -08:00
Paul Eggert
c5e87d104b
Spelling fixes.
2011-11-17 09:40:48 -08:00
Juanma Barranquero
7877f37394
Fix typos.
2011-11-16 18:47:25 +01:00
Paul Eggert
da6062e6ea
Spelling fixes.
2011-11-14 23:55:13 -08:00
Paul Eggert
8350f087ef
Spelling fixes.
2011-11-14 12:23:26 -08:00
Glenn Morris
a769dd157d
Small cal-menu fix for bug#9976
...
* lisp/calendar/cal-menu.el (cal-menu-set-date-title):
Do nothing if not in a calendar.
2011-11-07 14:00:54 -05:00
Martin Rudalics
3d8daefefa
Remove "iso-" infix from window combination functions.
...
* window.el (window-iso-combination-p, window-iso-combined-p)
(window-iso-combinations): Remove "iso-" infix. Suggested by
Chong Yidong.
(window-min-size-1, window-size-fixed-1, window-min-delta-1)
(window-max-delta-1, window-resize, window--resize-siblings)
(window--resize-this-window, adjust-window-trailing-edge)
(split-window, balance-windows-1)
(shrink-window-if-larger-than-buffer):
* calendar/calendar.el (calendar-generate-window):
* help.el (resize-temp-buffer-window): Adjust callers
accordingly.
* windows.texi (Windows and Frames): Remove "iso-" infix from
documentation of window-iso-combined-p.
2011-10-30 09:29:56 +01:00
Chong Yidong
2d197ffbe2
Rename split-window-{above-each-other|split-window-side-by-side}
...
to split-window-below and split-window-right.
* lisp/window.el (split-window-below, split-window-right): Rename from
split-window-above-each-other and split-window-side-by-side
respectively. All callers changed.
(split-window-sensibly, split-window-sensibly): Use them.
(split-window-keep-point): Doc fix.
* lisp/isearch.el: Add isearch-scroll property to split-window-below
and split-window-right.
* lisp/follow.el (follow-mode):
* lisp/vc/pcvs-util.el (cvs-pop-to-buffer-same-frame):
* lisp/progmodes/ada-xref.el (ada-gdb-application):
* lisp/emulation/vip.el (vip-buffer-in-two-windows):
* lisp/image-dired.el (image-dired-dired-with-window-configuration):
* lisp/dired-x.el (dired-do-find-marked-files):
* lisp/dired.el (dired-pop-to-buffer):
* lisp/bs.el (bs--show-with-configuration):
* lisp/vc/emerge.el (emerge-setup-windows):
* lisp/textmodes/two-column.el (2C-two-columns):
* lisp/textmodes/reftex-toc.el (reftex-toc):
* lisp/progmodes/gdb-mi.el (gdb-setup-windows):
* lisp/progmodes/fortran.el (fortran-window-create):
* lisp/net/newst-treeview.el (newsticker--treeview-window-init):
* lisp/emulation/ws-mode.el (wordstar-C-o-map, wordstar-mode):
* lisp/emulation/tpu-edt.el (tpu-gold-map):
* lisp/emulation/crisp.el (crisp-mode-map):
* lisp/calendar/calendar.el (calendar-basic-setup): Callers changed.
2011-10-30 09:56:03 +08:00
Glenn Morris
bdfa5dd206
* lisp/calendar/holidays.el (calendar-check-holidays): Doc fix.
2011-10-04 13:26:55 -04:00
Ulf Jasper
68575ab00b
icalendar: Take care of multiple vcalendars in a single file.
...
lisp/ChangeLog:
* calendar/icalendar.el (icalendar--all-events): Take care of
multiple vcalendars in a single file.
(icalendar--convert-float-to-ical): checkdoc fixes.
* automated/icalendar-tests.el (icalendar-tests--compare-strings):
Removed, simply use string=.
(icalendar--diarytime-to-isotime)
(icalendar--datetime-to-diary-date)
(icalendar--datestring-to-isodate)
(icalendar--format-ical-event)
(icalendar--parse-summary-and-rest)
(icalendar-tests--do-test-import)
(icalendar-tests--do-test-cycle) : Changed argument order of
string= to EXPECTED ACTUAL.
(icalendar--import-format-sample)
(icalendar--format-ical-event)
(icalendar-import-non-recurring)
(icalendar-import-rrule)
(icalendar-import-duration)
(icalendar-import-bug-6766)
(icalendar-real-world): Adjusted to string= instead of
icalendar-tests--compare-strings.
(icalendar-import-multiple-vcalendars): New.
2011-07-26 17:36:04 +02:00
Paul Eggert
5777162a3e
* calendar/timeclock.el (timeclock-seconds-to-time):
...
Defalias to seconds-to-time, since they're the same thing.
2011-06-30 17:20:59 -07:00
Glenn Morris
e9246b20af
* lisp/calendar/diary-lib.el: Comment fix.
2011-06-25 15:33:29 -07:00
Glenn Morris
f6ba4cc9d8
Avoid some code duplication in diary-lib.el.
...
* lisp/calendar/diary-lib.el (diary-included-files): Doc fix.
(diary-include-files): New function, extracted from
diary-include-other-diary-files and diary-mark-included-diary-files.
(diary-include-other-diary-files, diary-mark-included-diary-files):
Just call diary-include-files.
(diary-mark-entries): Reset diary-included-files on first call.
2011-06-25 15:22:47 -07:00
Glenn Morris
1671230453
When marking, visit included diary-files in temp buffers.
...
Ref: bug#8920, but not a bug.
* lisp/calendar/diary-lib.el (diary-mark-entries)
(diary-mark-included-diary-files):
Visit included diary-files in temp buffers.
2011-06-25 15:10:21 -07:00
Martin Rudalics
39cffb4422
Restore window-safely-shrinkable-p but avoid using it in calendar.el.
...
* window.el (window-safely-shrinkable-p): Restore function which
was inadvertently removed in change from 2011-06-11. Declare as
obsolete.
* calendar/calendar.el (calendar-generate-window): Use
window-iso-combined-p instead of combination of one-window-p and
window-safely-shrinkable-p.
2011-06-12 09:46:56 +02:00
Glenn Morris
0a2bb1a9cf
Handle overlapping appointments in appt.el (bug#8377)
...
* lisp/calendar/appt.el (appt-disp-window-function): Doc fix.
(appt-check): Handle overlapping appointments.
* etc/NEWS: Mention appt-disp-window-function should handle lists now.
2011-06-11 10:54:53 -07:00
Glenn Morris
5b4d6e0e88
* lisp/calendar/appt.el (appt-mode-line): Eliminate one local variable.
2011-06-09 16:36:04 -04:00
Glenn Morris
80675c21af
Eliminate some code duplication in appt.el.
...
* lisp/calendar/appt.el (appt-mode-line): New function.
(appt-check, appt-disp-window): Use it.
2011-06-09 16:25:34 -04:00
Glenn Morris
35d7dbd3f3
Allow some appt.el display functions to handle lists.
...
* lisp/calendar/appt.el (appt-display-message, appt-disp-window):
Handle lists of appointments.
2011-06-08 22:08:11 -07:00
Ivan Kanis
0de12c52c3
* lisp/calendar/appt.el (appt-check): Move some initializations into the let.
2011-06-07 23:57:38 -07:00
Glenn Morris
e565dd3789
Rationalize calendar handling of day and month abbrev-arrays.
...
* lisp/calendar/calendar.el (calendar-customized-p): New function.
(calendar-abbrev-construct, calendar-make-alist): Change what it does.
(calendar-day-name-array, calendar-month-name-array): Doc fix.
Add :set function.
(calendar-abbrev-length, calendar-day-abbrev-array)
(calendar-month-abbrev-array): Make defcustoms, with appropriate :set.
(calendar-day-abbrev-array, calendar-month-abbrev-array):
Elements may no longer be nil.
(calendar-day-name, calendar-month-name):
Update for changed nature of abbrev arrays.
* calendar/diary-lib.el (diary-name-pattern):
Update for changed nature of abbrev arrays.
(diary-mark-entries-1): Update calendar-make-alist calls.
(diary-font-lock-date-forms): Doc fix for changed abbrev arrays.
* calendar/cal-html.el (cal-html-day-abbrev-array):
Simply inherit from calendar-day-abbrev-array.
* etc/NEWS: Mention this.
2011-05-17 20:20:13 -07:00
Glenn Morris
7edd209389
* lisp/calendar/appt.el: Fix doc typo in previous.
2011-05-16 21:05:39 -07:00
Glenn Morris
3952e9d86c
appt.el mainly doc fixes.
...
* lisp/calendar/appt.el (appt-message-warning-time, appt-display-mode-line)
(appt-display-diary, appt-display-interval, appt-prev-comp-time)
(appt-check): Doc fixes.
(appt-disp-window-function, appt-delete-window-function):
Remove needless special case in custom :type.
(appt-display-count): Default to 0, not nil.
(appt-check): Reset appt-display-count to 0, not nil.
2011-05-16 19:36:51 -07:00
Glenn Morris
4691905a95
appt.el trivia.
...
* lisp/calendar/appt.el (appt-check): Rename some local variables.
Some simplification/reordering.
2011-05-14 12:13:40 -07:00
Glenn Morris
a54640143d
* calendar/appt.el (appt-check): Change mode-line message at time of the appt.
2011-05-12 18:38:31 -07:00
Glenn Morris
4accbca6e9
* lisp/calendar/appt.el (appt-time-msg-list): Doc fix.
2011-05-12 18:35:11 -07:00
Glenn Morris
5233edd7e8
* lisp/calendar/appt.el (appt-make-list): Simplify.
2011-05-12 18:31:53 -07:00