diff options
| author | Glenn Morris | 2008-04-12 03:10:37 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-12 03:10:37 +0000 |
| commit | 8474aac189b9298a09ecb72fb57c495e6fd2f922 (patch) | |
| tree | beba9e67e5bc38e65a9ba2f8e9c4a890e9c7ea96 | |
| parent | 69e018a7bd747a354c9efb1110faaf6b10ced2c6 (diff) | |
| download | emacs-8474aac189b9298a09ecb72fb57c495e6fd2f922.tar.gz emacs-8474aac189b9298a09ecb72fb57c495e6fd2f922.zip | |
(chinese-calendar-time-zone): Mark obsolete name as risky too.
Move non-autoloaded define-obsolete-variable-alias calls for
defcustoms not in dumped files before the associated defcustom.
| -rw-r--r-- | lisp/calendar/cal-china.el | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/lisp/calendar/cal-china.el b/lisp/calendar/cal-china.el index 50aa5b0176a..556c72379c5 100644 --- a/lisp/calendar/cal-china.el +++ b/lisp/calendar/cal-china.el | |||
| @@ -60,6 +60,9 @@ | |||
| 60 | :prefix "calendar-chinese-" | 60 | :prefix "calendar-chinese-" |
| 61 | :group 'calendar) | 61 | :group 'calendar) |
| 62 | 62 | ||
| 63 | (define-obsolete-variable-alias 'chinese-calendar-time-zone | ||
| 64 | 'calendar-chinese-time-zone "23.1") | ||
| 65 | |||
| 63 | (defcustom calendar-chinese-time-zone | 66 | (defcustom calendar-chinese-time-zone |
| 64 | '(if (< year 1928) | 67 | '(if (< year 1928) |
| 65 | (+ 465 (/ 40.0 60.0)) | 68 | (+ 465 (/ 40.0 60.0)) |
| @@ -73,9 +76,12 @@ Default is for Beijing. This is an expression in `year' since it changed at | |||
| 73 | ;; It gets eval'd. | 76 | ;; It gets eval'd. |
| 74 | ;;;###autoload | 77 | ;;;###autoload |
| 75 | (put 'calendar-chinese-time-zone 'risky-local-variable t) | 78 | (put 'calendar-chinese-time-zone 'risky-local-variable t) |
| 79 | ;;;###autoload | ||
| 80 | (put 'chinese-calendar-time-zone 'risky-local-variable t) | ||
| 76 | 81 | ||
| 77 | (define-obsolete-variable-alias 'chinese-calendar-time-zone | 82 | |
| 78 | 'calendar-chinese-time-zone "23.1") | 83 | (define-obsolete-variable-alias 'chinese-calendar-location-name |
| 84 | 'calendar-chinese-location-name "23.1") | ||
| 79 | 85 | ||
| 80 | ;; FIXME unused. | 86 | ;; FIXME unused. |
| 81 | (defcustom calendar-chinese-location-name "Beijing" | 87 | (defcustom calendar-chinese-location-name "Beijing" |
| @@ -83,8 +89,8 @@ Default is for Beijing. This is an expression in `year' since it changed at | |||
| 83 | :type 'string | 89 | :type 'string |
| 84 | :group 'calendar-chinese) | 90 | :group 'calendar-chinese) |
| 85 | 91 | ||
| 86 | (define-obsolete-variable-alias 'chinese-calendar-location-name | 92 | (define-obsolete-variable-alias 'chinese-calendar-daylight-time-offset |
| 87 | 'calendar-chinese-location-name "23.1") | 93 | 'calendar-chinese-daylight-time-offset "23.1") |
| 88 | 94 | ||
| 89 | (defcustom calendar-chinese-daylight-time-offset 0 | 95 | (defcustom calendar-chinese-daylight-time-offset 0 |
| 90 | ;; The correct value is as follows, but the Chinese calendrical | 96 | ;; The correct value is as follows, but the Chinese calendrical |
| @@ -95,8 +101,8 @@ Default is for no daylight saving time." | |||
| 95 | :type 'integer | 101 | :type 'integer |
| 96 | :group 'calendar-chinese) | 102 | :group 'calendar-chinese) |
| 97 | 103 | ||
| 98 | (define-obsolete-variable-alias 'chinese-calendar-daylight-time-offset | 104 | (define-obsolete-variable-alias 'chinese-calendar-standard-time-zone-name |
| 99 | 'calendar-chinese-daylight-time-offset "23.1") | 105 | 'calendar-chinese-standard-time-zone-name "23.1") |
| 100 | 106 | ||
| 101 | (defcustom calendar-chinese-standard-time-zone-name | 107 | (defcustom calendar-chinese-standard-time-zone-name |
| 102 | '(if (< year 1928) | 108 | '(if (< year 1928) |
| @@ -108,16 +114,16 @@ at 1928-01-01 00:00:00 from `PMT' to `CST'." | |||
| 108 | :type 'sexp | 114 | :type 'sexp |
| 109 | :group 'calendar-chinese) | 115 | :group 'calendar-chinese) |
| 110 | 116 | ||
| 111 | (define-obsolete-variable-alias 'chinese-calendar-standard-time-zone-name | 117 | (define-obsolete-variable-alias 'chinese-calendar-daylight-time-zone-name |
| 112 | 'calendar-chinese-standard-time-zone-name "23.1") | 118 | 'calendar-chinese-daylight-time-zone-name "23.1") |
| 113 | 119 | ||
| 114 | (defcustom calendar-chinese-daylight-time-zone-name "CDT" | 120 | (defcustom calendar-chinese-daylight-time-zone-name "CDT" |
| 115 | "Abbreviated name of daylight saving time zone used for Chinese calendar." | 121 | "Abbreviated name of daylight saving time zone used for Chinese calendar." |
| 116 | :type 'string | 122 | :type 'string |
| 117 | :group 'calendar-chinese) | 123 | :group 'calendar-chinese) |
| 118 | 124 | ||
| 119 | (define-obsolete-variable-alias 'chinese-calendar-daylight-time-zone-name | 125 | (define-obsolete-variable-alias 'chinese-calendar-daylight-savings-starts |
| 120 | 'calendar-chinese-daylight-time-zone-name "23.1") | 126 | 'calendar-chinese-daylight-saving-start "23.1") |
| 121 | 127 | ||
| 122 | (defcustom calendar-chinese-daylight-saving-start nil | 128 | (defcustom calendar-chinese-daylight-saving-start nil |
| 123 | ;; The correct value is as follows, but the Chinese calendrical | 129 | ;; The correct value is as follows, but the Chinese calendrical |
| @@ -131,8 +137,8 @@ Default is for no daylight saving time. See documentation of | |||
| 131 | :type 'sexp | 137 | :type 'sexp |
| 132 | :group 'calendar-chinese) | 138 | :group 'calendar-chinese) |
| 133 | 139 | ||
| 134 | (define-obsolete-variable-alias 'chinese-calendar-daylight-savings-starts | 140 | (define-obsolete-variable-alias 'chinese-calendar-daylight-savings-ends |
| 135 | 'calendar-chinese-daylight-saving-start "23.1") | 141 | 'calendar-chinese-daylight-saving-end "23.1") |
| 136 | 142 | ||
| 137 | (defcustom calendar-chinese-daylight-saving-end nil | 143 | (defcustom calendar-chinese-daylight-saving-end nil |
| 138 | ;; The correct value is as follows, but the Chinese calendrical | 144 | ;; The correct value is as follows, but the Chinese calendrical |
| @@ -144,8 +150,8 @@ Default is for no daylight saving time. See documentation of | |||
| 144 | :type 'sexp | 150 | :type 'sexp |
| 145 | :group 'calendar-chinese) | 151 | :group 'calendar-chinese) |
| 146 | 152 | ||
| 147 | (define-obsolete-variable-alias 'chinese-calendar-daylight-savings-ends | 153 | (define-obsolete-variable-alias 'chinese-calendar-daylight-savings-starts-time |
| 148 | 'calendar-chinese-daylight-saving-end "23.1") | 154 | 'calendar-chinese-daylight-saving-start-time "23.1") |
| 149 | 155 | ||
| 150 | (defcustom calendar-chinese-daylight-saving-start-time 0 | 156 | (defcustom calendar-chinese-daylight-saving-start-time 0 |
| 151 | "Number of minutes after midnight that daylight saving time starts. | 157 | "Number of minutes after midnight that daylight saving time starts. |
| @@ -153,8 +159,8 @@ Default is for no daylight saving time." | |||
| 153 | :type 'integer | 159 | :type 'integer |
| 154 | :group 'calendar-chinese) | 160 | :group 'calendar-chinese) |
| 155 | 161 | ||
| 156 | (define-obsolete-variable-alias 'chinese-calendar-daylight-savings-starts-time | 162 | (define-obsolete-variable-alias 'chinese-calendar-daylight-savings-ends-time |
| 157 | 'calendar-chinese-daylight-saving-start-time "23.1") | 163 | 'calendar-chinese-daylight-saving-end-time "23.1") |
| 158 | 164 | ||
| 159 | (defcustom calendar-chinese-daylight-saving-end-time 0 | 165 | (defcustom calendar-chinese-daylight-saving-end-time 0 |
| 160 | "Number of minutes after midnight that daylight saving time ends. | 166 | "Number of minutes after midnight that daylight saving time ends. |
| @@ -162,8 +168,8 @@ Default is for no daylight saving time." | |||
| 162 | :type 'integer | 168 | :type 'integer |
| 163 | :group 'calendar-chinese) | 169 | :group 'calendar-chinese) |
| 164 | 170 | ||
| 165 | (define-obsolete-variable-alias 'chinese-calendar-daylight-savings-ends-time | 171 | (define-obsolete-variable-alias 'chinese-calendar-celestial-stem |
| 166 | 'calendar-chinese-daylight-saving-end-time "23.1") | 172 | 'calendar-chinese-celestial-stem "23.1") |
| 167 | 173 | ||
| 168 | (defcustom calendar-chinese-celestial-stem | 174 | (defcustom calendar-chinese-celestial-stem |
| 169 | ["Jia" "Yi" "Bing" "Ding" "Wu" "Ji" "Geng" "Xin" "Ren" "Gui"] | 175 | ["Jia" "Yi" "Bing" "Ding" "Wu" "Ji" "Geng" "Xin" "Ren" "Gui"] |
| @@ -180,8 +186,8 @@ Default is for no daylight saving time." | |||
| 180 | (string :tag "Ren") | 186 | (string :tag "Ren") |
| 181 | (string :tag "Gui"))) | 187 | (string :tag "Gui"))) |
| 182 | 188 | ||
| 183 | (define-obsolete-variable-alias 'chinese-calendar-celestial-stem | 189 | (define-obsolete-variable-alias 'chinese-calendar-terrestrial-branch |
| 184 | 'calendar-chinese-celestial-stem "23.1") | 190 | 'calendar-chinese-terrestrial-branch "23.1") |
| 185 | 191 | ||
| 186 | (defcustom calendar-chinese-terrestrial-branch | 192 | (defcustom calendar-chinese-terrestrial-branch |
| 187 | ["Zi" "Chou" "Yin" "Mao" "Chen" "Si" "Wu" "Wei" "Shen" "You" "Xu" "Hai"] | 193 | ["Zi" "Chou" "Yin" "Mao" "Chen" "Si" "Wu" "Wei" "Shen" "You" "Xu" "Hai"] |
| @@ -200,9 +206,6 @@ Default is for no daylight saving time." | |||
| 200 | (string :tag "Xu") | 206 | (string :tag "Xu") |
| 201 | (string :tag "Hai"))) | 207 | (string :tag "Hai"))) |
| 202 | 208 | ||
| 203 | (define-obsolete-variable-alias 'chinese-calendar-terrestrial-branch | ||
| 204 | 'calendar-chinese-terrestrial-branch "23.1") | ||
| 205 | |||
| 206 | ;;; End of user options. | 209 | ;;; End of user options. |
| 207 | 210 | ||
| 208 | 211 | ||