aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-09-19 19:43:37 +0000
committerChong Yidong2009-09-19 19:43:37 +0000
commit327dd27aa7b049c7bfec2b50cff10ab113ceb330 (patch)
treef8d0def5e7f740825a225a8e430eb5d3d4b1b357
parent946c009b511d6b459abafb8d2201bb7f526933be (diff)
downloademacs-327dd27aa7b049c7bfec2b50cff10ab113ceb330.tar.gz
emacs-327dd27aa7b049c7bfec2b50cff10ab113ceb330.zip
* time-stamp.el (time-stamp-month-dd-yyyy)
(time-stamp-dd/mm/yyyy, time-stamp-mon-dd-yyyy) (time-stamp-dd-mon-yy, time-stamp-yy/mm/dd) (time-stamp-yyyy/mm/dd, time-stamp-yyyy-mm-dd) (time-stamp-yymmdd, time-stamp-hh:mm:ss, time-stamp-hhmm): Remove functions that have been obsolete since 1995 (Bug#4436).
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/time-stamp.el67
2 files changed, 7 insertions, 67 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0d3f8d686dd..2a949595ef7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,12 @@
12009-09-19 Chong Yidong <cyd@stupidchicken.com> 12009-09-19 Chong Yidong <cyd@stupidchicken.com>
2 2
3 * time-stamp.el (time-stamp-month-dd-yyyy)
4 (time-stamp-dd/mm/yyyy, time-stamp-mon-dd-yyyy)
5 (time-stamp-dd-mon-yy, time-stamp-yy/mm/dd)
6 (time-stamp-yyyy/mm/dd, time-stamp-yyyy-mm-dd)
7 (time-stamp-yymmdd, time-stamp-hh:mm:ss, time-stamp-hhmm): Remove
8 functions that have been obsolete since 1995 (Bug#4436).
9
3 * progmodes/sh-script.el (sh-learn-buffer-indent): Pop to the 10 * progmodes/sh-script.el (sh-learn-buffer-indent): Pop to the
4 indent buffer only if called interactively (Bug#4452). 11 indent buffer only if called interactively (Bug#4452).
5 12
diff --git a/lisp/time-stamp.el b/lisp/time-stamp.el
index 7e4a3df8750..d2adad1e82f 100644
--- a/lisp/time-stamp.el
+++ b/lisp/time-stamp.el
@@ -705,73 +705,6 @@ around literals."
705 (setq list (cdr list))) 705 (setq list (cdr list)))
706 return-string)) 706 return-string))
707 707
708;;; Some functions used in time-stamp-format
709
710;;; These functions have been obsolete since 1995
711;;; and will be removed in Emacs 23.
712;;; Meanwhile, discourage other packages from using them.
713(dolist (function '(time-stamp-month-dd-yyyy time-stamp-dd/mm/yyyy
714 time-stamp-mon-dd-yyyy time-stamp-dd-mon-yy
715 time-stamp-yy/mm/dd time-stamp-yyyy/mm/dd
716 time-stamp-yyyy-mm-dd time-stamp-yymmdd
717 time-stamp-hh:mm:ss time-stamp-hhmm))
718 (make-obsolete function
719 "use `time-stamp-string' or `format-time-string' instead."
720 "20.1"))
721
722;;; pretty form, suitable for a title page
723
724(defun time-stamp-month-dd-yyyy ()
725 "Return the current date as a string in \"Month DD, YYYY\" form."
726 (format-time-string "%B %e, %Y"))
727
728(defun time-stamp-dd/mm/yyyy ()
729 "Return the current date as a string in \"DD/MM/YYYY\" form."
730 (format-time-string "%d/%m/%Y"))
731
732;;; same as __DATE__ in ANSI C
733
734(defun time-stamp-mon-dd-yyyy ()
735 "Return the current date as a string in \"Mon DD YYYY\" form.
736The first character of DD is space if the value is less than 10."
737 (format-time-string "%b %d %Y"))
738
739;;; RFC 822 date
740
741(defun time-stamp-dd-mon-yy ()
742 "Return the current date as a string in \"DD Mon YY\" form."
743 (format-time-string "%d %b %y"))
744
745;;; RCS 3 date
746
747(defun time-stamp-yy/mm/dd ()
748 "Return the current date as a string in \"YY/MM/DD\" form."
749 (format-time-string "%y/%m/%d"))
750
751;;; RCS 5 date
752
753(defun time-stamp-yyyy/mm/dd ()
754 "Return the current date as a string in \"YYYY/MM/DD\" form."
755 (format-time-string "%Y/%m/%d"))
756
757;;; ISO 8601 date
758
759(defun time-stamp-yyyy-mm-dd ()
760 "Return the current date as a string in \"YYYY-MM-DD\" form."
761 (format-time-string "%Y-%m-%d"))
762
763(defun time-stamp-yymmdd ()
764 "Return the current date as a string in \"YYMMDD\" form."
765 (format-time-string "%y%m%d"))
766
767(defun time-stamp-hh:mm:ss ()
768 "Return the current time as a string in \"HH:MM:SS\" form."
769 (format-time-string "%T"))
770
771(defun time-stamp-hhmm ()
772 "Return the current time as a string in \"HHMM\" form."
773 (format-time-string "%H%M"))
774
775(provide 'time-stamp) 708(provide 'time-stamp)
776 709
777;; arch-tag: 8a12c5c3-25d6-4a71-adc5-24b0e025a1e7 710;; arch-tag: 8a12c5c3-25d6-4a71-adc5-24b0e025a1e7