aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-03 04:53:02 +0000
committerRichard M. Stallman1997-05-03 04:53:02 +0000
commit8db540c5ce80a6a4a6bec5bc37673331191ca6ed (patch)
tree2a8089231aa85092e87269c8ea416db8c644b51c
parenta24770bc7bb14e1e4d4d391320ccc5acad7499c2 (diff)
downloademacs-8db540c5ce80a6a4a6bec5bc37673331191ca6ed.tar.gz
emacs-8db540c5ce80a6a4a6bec5bc37673331191ca6ed.zip
Add defgroup and use defcustom.
-rw-r--r--lisp/calendar/appt.el54
-rw-r--r--lisp/calendar/cal-china.el54
2 files changed, 72 insertions, 36 deletions
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el
index e5fe7d05428..5df330fd977 100644
--- a/lisp/calendar/appt.el
+++ b/lisp/calendar/appt.el
@@ -123,39 +123,55 @@
123(provide 'appt) 123(provide 'appt)
124 124
125;;;###autoload 125;;;###autoload
126(defvar appt-issue-message t 126(defcustom appt-issue-message t
127 "*Non-nil means check for appointments in the diary buffer. 127 "*Non-nil means check for appointments in the diary buffer.
128To be detected, the diary entry must have the time 128To be detected, the diary entry must have the time
129as the first thing on a line.") 129as the first thing on a line."
130 :type 'boolean
131 :group 'appt)
130 132
131;;;###autoload 133;;;###autoload
132(defvar appt-message-warning-time 12 134(defcustom appt-message-warning-time 12
133 "*Time in minutes before an appointment that the warning begins.") 135 "*Time in minutes before an appointment that the warning begins."
136 :type 'integer
137 :group 'appt)
134 138
135;;;###autoload 139;;;###autoload
136(defvar appt-audible t 140(defcustom appt-audible t
137 "*Non-nil means beep to indicate appointment.") 141 "*Non-nil means beep to indicate appointment."
142 :type 'boolean
143 :group 'appt)
138 144
139;;;###autoload 145;;;###autoload
140(defvar appt-visible t 146(defcustom appt-visible t
141 "*Non-nil means display appointment message in echo area.") 147 "*Non-nil means display appointment message in echo area."
148 :type 'boolean
149 :group 'appt)
142 150
143;;;###autoload 151;;;###autoload
144(defvar appt-display-mode-line t 152(defcustom appt-display-mode-line t
145 "*Non-nil means display minutes to appointment and time on the mode line.") 153 "*Non-nil means display minutes to appointment and time on the mode line."
154 :type 'boolean
155 :group 'appt)
146 156
147;;;###autoload 157;;;###autoload
148(defvar appt-msg-window t 158(defcustom appt-msg-window t
149 "*Non-nil means display appointment message in another window.") 159 "*Non-nil means display appointment message in another window."
160 :type 'boolean
161 :group 'appt)
150 162
151;;;###autoload 163;;;###autoload
152(defvar appt-display-duration 10 164(defcustom appt-display-duration 10
153 "*The number of seconds an appointment message is displayed.") 165 "*The number of seconds an appointment message is displayed."
166 :type 'integer
167 :group 'appt)
154 168
155;;;###autoload 169;;;###autoload
156(defvar appt-display-diary t 170(defcustom appt-display-diary t
157 "*Non-nil means to display the next days diary on the screen. 171 "*Non-nil means to display the next days diary on the screen.
158This will occur at midnight when the appointment list is updated.") 172This will occur at midnight when the appointment list is updated."
173 :type 'boolean
174 :group 'appt)
159 175
160(defvar appt-time-msg-list nil 176(defvar appt-time-msg-list nil
161 "The list of appointments for today. 177 "The list of appointments for today.
@@ -166,8 +182,10 @@ The number before each time/message is the time in minutes from midnight.")
166(defconst max-time 1439 182(defconst max-time 1439
167 "11:59pm in minutes - number of minutes in a day minus 1.") 183 "11:59pm in minutes - number of minutes in a day minus 1.")
168 184
169(defvar appt-display-interval 3 185(defcustom appt-display-interval 3
170 "*Number of minutes to wait between checking the appointment list.") 186 "*Number of minutes to wait between checking the appointment list."
187 :type 'integer
188 :group 'appt)
171 189
172(defvar appt-buffer-name " *appt-buf*" 190(defvar appt-buffer-name " *appt-buf*"
173 "Name of the appointments buffer.") 191 "Name of the appointments buffer.")
diff --git a/lisp/calendar/cal-china.el b/lisp/calendar/cal-china.el
index c15f4511c48..7ed17876741 100644
--- a/lisp/calendar/cal-china.el
+++ b/lisp/calendar/cal-china.el
@@ -53,35 +53,45 @@
53(defvar chinese-calendar-terrestrial-branch 53(defvar chinese-calendar-terrestrial-branch
54 ["Zi" "Chou" "Yin" "Mao" "Chen" "Si" "Wu" "Wei" "Shen" "You" "Xu" "Hai"]) 54 ["Zi" "Chou" "Yin" "Mao" "Chen" "Si" "Wu" "Wei" "Shen" "You" "Xu" "Hai"])
55 55
56(defvar chinese-calendar-time-zone 56(defcustom chinese-calendar-time-zone
57 '(if (< year 1928) 57 '(if (< year 1928)
58 (+ 465 (/ 40.0 60.0)) 58 (+ 465 (/ 40.0 60.0))
59 480) 59 480)
60 "*Number of minutes difference between local standard time for Chinese 60 "*Number of minutes difference between local standard time for Chinese
61calendar and Coordinated Universal (Greenwich) Time. Default is for Beijing. 61calendar and Coordinated Universal (Greenwich) Time. Default is for Beijing.
62This is an expression in `year' since it changed at 1928-01-01 00:00:00 from 62This is an expression in `year' since it changed at 1928-01-01 00:00:00 from
63UT+7:45:40 to UT+8.") 63UT+7:45:40 to UT+8."
64 :type 'number
65 :group 'chinese-calendar)
64 66
65(defvar chinese-calendar-location-name "Beijing" 67(defcustom chinese-calendar-location-name "Beijing"
66 "*Name of location used for calculation of Chinese calendar.") 68 "*Name of location used for calculation of Chinese calendar."
69 :type 'string
70 :group 'chinese-calendar)
67 71
68(defvar chinese-calendar-daylight-time-offset 0 72(defcustom chinese-calendar-daylight-time-offset 0
69; The correct value is as follows, but the Chinese calendrical 73; The correct value is as follows, but the Chinese calendrical
70; authorities do NOT use DST in determining astronomical events: 74; authorities do NOT use DST in determining astronomical events:
71; 60 75; 60
72 "*Number of minutes difference between daylight savings and standard time 76 "*Number of minutes difference between daylight savings and standard time
73for Chinese calendar. Default is for no daylight savings time.") 77for Chinese calendar. Default is for no daylight savings time."
78 :type 'integer
79 :group 'chinese-calendar)
74 80
75(defvar chinese-calendar-standard-time-zone-name 81(defcustom chinese-calendar-standard-time-zone-name
76 '(if (< year 1928) 82 '(if (< year 1928)
77 "PMT" 83 "PMT"
78 "CST") 84 "CST")
79 "*Abbreviated name of standard time zone used for Chinese calendar.") 85 "*Abbreviated name of standard time zone used for Chinese calendar."
86 :type 'string
87 :group 'chinese-calendar)
80 88
81(defvar chinese-calendar-daylight-time-zone-name "CDT" 89(defcustom chinese-calendar-daylight-time-zone-name "CDT"
82 "*Abbreviated name of daylight-savings time zone used for Chinese calendar.") 90 "*Abbreviated name of daylight-savings time zone used for Chinese calendar."
91 :type 'string
92 :group 'chinese-calendar)
83 93
84(defvar chinese-calendar-daylight-savings-starts nil 94(defcustom chinese-calendar-daylight-savings-starts nil
85; The correct value is as follows, but the Chinese calendrical 95; The correct value is as follows, but the Chinese calendrical
86; authorities do NOT use DST in determining astronomical events: 96; authorities do NOT use DST in determining astronomical events:
87; '(cond ((< 1986 year) (calendar-nth-named-day 1 0 4 year 10)) 97; '(cond ((< 1986 year) (calendar-nth-named-day 1 0 4 year 10))
@@ -89,23 +99,31 @@ for Chinese calendar. Default is for no daylight savings time.")
89; (t nil)) 99; (t nil))
90 "*Sexp giving the date on which daylight savings time starts for Chinese 100 "*Sexp giving the date on which daylight savings time starts for Chinese
91calendar. Default is for no daylight savings time. See documentation of 101calendar. Default is for no daylight savings time. See documentation of
92`calendar-daylight-savings-starts'.") 102`calendar-daylight-savings-starts'."
103 :type 'sexp
104 :group 'chinese-calendar)
93 105
94(defvar chinese-calendar-daylight-savings-ends nil 106(defcustom chinese-calendar-daylight-savings-ends nil
95; The correct value is as follows, but the Chinese calendrical 107; The correct value is as follows, but the Chinese calendrical
96; authorities do NOT use DST in determining astronomical events: 108; authorities do NOT use DST in determining astronomical events:
97; '(if (<= 1986 year) (calendar-nth-named-day 1 0 9 year 11)) 109; '(if (<= 1986 year) (calendar-nth-named-day 1 0 9 year 11))
98 "*Sexp giving the date on which daylight savings time ends for Chinese 110 "*Sexp giving the date on which daylight savings time ends for Chinese
99calendar. Default is for no daylight savings time. See documentation of 111calendar. Default is for no daylight savings time. See documentation of
100`calendar-daylight-savings-ends'.") 112`calendar-daylight-savings-ends'."
113 :type 'sexp
114 :group 'chinese-calendar)
101 115
102(defvar chinese-calendar-daylight-savings-starts-time 0 116(defcustom chinese-calendar-daylight-savings-starts-time 0
103 "*Number of minutes after midnight that daylight savings time starts for 117 "*Number of minutes after midnight that daylight savings time starts for
104Chinese calendar. Default is for no daylight savings time.") 118Chinese calendar. Default is for no daylight savings time."
119 :type 'integer
120 :group 'chinese-calendar)
105 121
106(defvar chinese-calendar-daylight-savings-ends-time 0 122(defcustom chinese-calendar-daylight-savings-ends-time 0
107 "*Number of minutes after midnight that daylight savings time ends for 123 "*Number of minutes after midnight that daylight savings time ends for
108Chinese calendar. Default is for no daylight savings time.") 124Chinese calendar. Default is for no daylight savings time."
125 :type 'integer
126 :group 'chinese-calendar)
109 127
110(defun chinese-zodiac-sign-on-or-after (d) 128(defun chinese-zodiac-sign-on-or-after (d)
111 "Absolute date of first new Zodiac sign on or after absolute date d. 129 "Absolute date of first new Zodiac sign on or after absolute date d.