Paul Eggert
0877d0dc24
Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca
2013-01-02 08:13:04 -08:00
Paul Eggert
ab422c4d68
Update copyright notices for 2013.
2013-01-01 09:11:05 +00:00
Jay Belanger
fd1f1603a4
* calc/calc-forms.el (math-parse-date): Try using
...
`math-parse-iso-date' when it looks like it might be needed. Allow
times of 24:00.
(math-parse-date-validate, math-parse-iso-date-validate): Allow times
of 24:00.
2012-12-30 20:58:57 -06:00
Jay Belanger
8c21bef6d1
* lisp/calc/calc-forms.el (calc-date-notation): Fix typo.
2012-12-10 20:37:36 -06:00
Jay Belanger
ff3f6c266a
* lisp/calc/calc.el (calc-standard-date-formats): Add more date
...
formats.
* lisp/calc/calc-forms.el (math-parse-iso-date): New function.
(math-parse-date): Use `math-parse-iso-date' when appropriate.
(math-parse-iso-date-validate): Add extra error checking.
(calc-date-notation): Add ability to access new date formats.
2012-12-10 20:29:21 -06:00
Jay Belanger
77a7493589
* lisp/calc/calc-forms.el (math-date-to-iso-dt): Fix weekday number.
2012-12-02 22:46:49 -06:00
Jay Belanger
1bf3989cd4
* lisp/calc/calc-forms.el (math-date-to-iso-dt): Fix typo.
2012-12-02 19:05:08 -06:00
Jay Belanger
682ceaf895
* lisp/calc/calc-forms.el (math-absolute-from-iso-dt)
...
(math-date-to-iso-dt, math-parse-iso-date-validate)
(math-iso-dt-to-date): New functions.
(math-fd-iso-dt, math-fd-isoyear, math-fd-isoweek)
(math-fd-isoweekday): New variables.
(calc-date-notation, math-parse-standard-date, math-format-date)
(math-format-date-part): Add support for more formatting codes.
2012-12-02 18:54:11 -06:00
Jay Belanger
e7c8fcc44e
* lisp/calc/calc-forms.el (calc-date-notation): Fix regexp
...
used to find time codes. Fix symbol for seconds.
2012-11-27 22:51:13 -06:00
Jay Belanger
e8909bdc32
* calc/calc-forms.el (math-leap-year-p): Fix formula for negative
...
year numbers.
(math-date-to-julian-dt): Adjust the initial approximation for the
year to deal with the new definition of the DATE.
2012-11-18 23:03:08 -06:00
Jay Belanger
eef97f35c8
* calc/calc-forms.el (math-date-to-dt): Use integer date
...
when calling `math-date-to-julian-dt' and 'math-date-to-gregorian-dt'.
2012-11-17 21:59:00 -06:00
Paul Eggert
310e60d945
Calc now uses the Gregorian calendar for all dates,
...
and uses January 1, 1 AD as its day number 1.
* doc/misc/calc.texi (Date Forms): Document this.
* lisp/calc/calc-forms.el (math-julian-date-beginning)
(math-julian-date-beginning-int): Implement this.
2012-11-17 16:01:59 -06:00
Jay Belanger
3dc7dad23a
* calc/calc-forms.el (calc-gregorian-switch): Declare.
2012-11-17 15:34:09 -06:00
Jay Belanger
c9f618db44
* calc/calc.el (calc-gregorian-switch): New variable.
...
* calc/calc-forms.el (math-day-in-year, math-dt-before-p)
(math-absolute-from-gregorian-dt, math-absolute-from-julian-dt)
(math-date-to-julian-dt, math-date-to-gregorian-dt): New functions.
(math-leap-year-p): Add option to distinguish between Julian
and Gregorian calendars.
(math-day-number): Use `math-day-in-year' to do the computations.
(math-absolute-from-dt): Rename from `math-absolute-from-date'.
Use `math-absolute-from-gregorian' and `math-absolute-from-julian'
to do the computations.
(math-date-to-dt): Use `math-date-to-julian-dt' and `math-date-to-gregorian-dt'
to do the computations.
(calcFunc-weekday, math-format-date-part): Use the new version of the DATE to
determine the weekday.
(calcFunc-newmonth, calcFunc-newyear): Use `calc-gregorian-switch' when necessary.
2012-11-17 15:30:43 -06:00
Chong Yidong
865fe16fd2
Update docstrings and comments to use "init file" terminology.
...
* bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
* comint.el (comint-prompt-read-only):
* custom.el (defcustom):
* hi-lock.el (hi-lock-mode):
* ibuffer.el (ibuffer-formats):
* ielm.el (ielm-prompt-read-only):
* novice.el (disable-command):
* saveplace.el (toggle-save-place):
* speedbar.el (speedbar-supported-extension-expressions):
* startup.el (auto-save-list-file-prefix, init-file-user)
(after-init-hook, inhibit-startup-echo-area-message):
* strokes.el (strokes-help):
* time-stamp.el (time-stamp):
* calendar/calendar.el (calendar, diary-file):
* calendar/diary-lib.el (diary-mail-entries, diary)
(diary-list-entries-hook):
* calendar/holidays.el (holidays, calendar-holidays):
* calendar/lunar.el (lunar-phases):
* calendar/solar.el (sunrise-sunset):
* emulation/edt.el (edt-load-keys):
* emulation/viper.el (viper-mode):
* eshell/em-alias.el (eshell-command-aliases-list):
* eshell/esh-util.el (eshell-convert-numeric-arguments):
* international/ogonek.el (ogonek-information):
* net/tramp-cmds.el (tramp-bug):
* net/quickurl.el (quickurl-reread-hook-postfix):
* play/decipher.el (decipher-font-lock-keywords):
* progmodes/cc-styles.el (c-set-style):
* progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
* progmodes/inf-lisp.el (inferior-lisp-prompt):
* progmodes/octave-mod.el (octave-mode):
* progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
* progmodes/verilog-mode.el (verilog-read-defines):
* textmodes/two-column.el (2C-mode): Likewise.
2012-09-17 13:41:04 +08:00
Paul Eggert
0bfcf5c598
Fix minor Y10k bugs.
...
* lisp/arc-mode.el (archive-unixdate):
* lisp/autoinsert.el (auto-insert-alist):
* lisp/calc/calc-forms.el (math-this-year):
* lisp/gnus/nnweb.el (nnweb-google-parse-1):
* lisp/emacs-lisp/copyright.el (copyright-current-year)
(copyright-update-year, copyright):
* lisp/tar-mode.el (tar-clip-time-string):
* lisp/time.el (display-time-update):
Don't assume years have 4 digits.
2012-05-03 23:13:18 -07:00
Glenn Morris
acaf905b11
Add 2012 to FSF copyright years for Emacs files
2012-01-05 01:46:05 -08:00
Glenn Morris
73b0cd5003
Convert consecutive FSF copyright years to ranges.
2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0
Nuke arch-tags.
2011-01-15 15:16:57 -08:00
Glenn Morris
5df4f04cd3
Add 2011 to FSF/AIST copyright years.
2011-01-02 15:50:46 -08:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Jay Belanger
2d1c8c66dc
(math-format-date): Fix typo.
2009-11-20 01:08:03 +00:00
Jay Belanger
d389fbcb3f
(math-format-date): Let `calc-twos-complement-mode' be nil.
2009-11-20 00:58:00 +00:00
Jay Belanger
6292c59952
(calc-date-notation): Check to see if the format is whitespace
...
instead of only the empty string.
2009-11-02 02:59:23 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Glenn Morris
662c9c64ae
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 03:16:00 +00:00
Stefan Monnier
cbee283dd7
Fix up comment convention on the arch-tag lines.
2008-04-10 14:10:46 +00:00
Miles Bader
59ce725a3b
Merge from emacs--rel--22
...
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
8b72699e88
Add 2008 to copyright years.
2008-01-07 01:14:52 +00:00
Jay Belanger
1976223fab
(calendar-current-time-zone)
...
(calendar-absolute-from-gregorian, dst-in-effect): Declare as
functions.
2007-11-27 04:04:08 +00:00
Jay Belanger
94a954954c
(var-TimeZone): Make nil the default value.
...
(math-calendar-tzinfo): New variable.
(math-get-calendar-tzinfo): New function.
(calcFunc-tzone, calcFunc-dst): Use Emacs's calendar
to get information when zone is nil.
2007-08-25 01:37:13 +00:00
Miles Bader
9aecacd08a
Merge from emacs--rel--22
...
Patches applied:
* emacs--rel--22 (patch 70-73)
- Update from CVS
2007-07-25 Glenn Morris <rgm@gnu.org>
* Relicense all FSF files to GPLv3 or later.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
075969b476
Switch license to GPLv3 or later.
2007-07-25 03:51:22 +00:00
Jay Belanger
98e9ffe31e
(math-julian-date-beginning,math-julian-date-beginning-int) New constants.
...
(math-format-date-part,math-parse-standard-date,calcFunc-julian):
Use the new constants.
2007-07-08 00:00:30 +00:00
Jay Belanger
092c493633
(math-format-date-part,calc-parse-standard-date,calcFunc-julian):
...
Fix incorrect number used in calculations.
2007-06-22 15:05:08 +00:00
Jay Belanger
cebd3c8a27
*** empty log message ***
2007-06-22 06:02:50 +00:00
Jay Belanger
e5f1224e18
(math-format-date-part,math-parse-standard-date,calcFunc-julian):
...
Replace math-read-number-simple by math-read-number.
2007-06-22 05:52:29 +00:00
Jay Belanger
3b6d80bc94
(math-format-date-part,math-parse-standard-date,calcFunc-julian):
...
Use `math-read-number-simple' to insert bignums.
2007-06-22 04:09:00 +00:00
Jay Belanger
e8fff8ed68
Update maintainer's address.
2007-04-23 21:30:42 +00:00
Glenn Morris
7c671b23f3
Change form of license text to match rest of Emacs.
2007-03-19 20:59:53 +00:00
Kim F. Storm
d55ebb63f0
(math-std-daylight-savings)
...
(math-std-daylight-savings-old): Doc fix.
2007-03-19 09:57:30 +00:00
Jay Belanger
96cd475f4b
(math-parse-date): Fix a regular expression.
...
(math-std-daylight-savings-old, math-std-daylight-savings-new): New functions.
(math-std-daylight-savings): Use `math-std-daylight-savings-new' or
`math-std-daylight-savings-old' depending on year.
2007-03-19 03:16:20 +00:00
Chong Yidong
16e5f96165
(math-std-daylight-savings): Switch to new North American rule.
2007-03-17 17:41:19 +00:00
Glenn Morris
f0fa15c5e5
Add 2007 to copyright years.
2007-01-21 02:48:43 +00:00
Jay Belanger
09ea57eaca
Update copyright year.
2006-02-05 16:31:42 +00:00
Jay Belanger
58ba2f8f07
Update copyright information.
2005-07-14 20:05:30 +00:00
Thien-Thi Nguyen
f8fc52569f
Update years in copyright notice; nfc.
2005-05-17 19:08:39 +00:00
Jay Belanger
5574e20901
(calc-time, calc-date-notation, math-this-year, math-parse-date)
...
(math-parse-standard-date, calcFunc-tzone): Replace string-to-int by
string-to-number.
2005-05-02 19:42:52 +00:00
Werner LEMBERG
25f72ec049
* calc/calc-forms.el, calc/calc-sel: Replace `illegal' with
...
`invalid'.
2005-03-25 08:16:06 +00:00
Jay Belanger
76216e5acd
Add a provide statement.
...
(calc-Need-calc-forms): Remove it.
2004-11-30 17:08:20 +00:00