aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-04-12 03:11:49 +0000
committerGlenn Morris2008-04-12 03:11:49 +0000
commit6a979a50dc9cb7509cf38722ea7cdb66b67171e5 (patch)
tree98ce5a5954c194c5286baeb4819d52c3f8bb6f8f
parent1f1e454ef7684160c743d371e67125ed7ae464f8 (diff)
downloademacs-6a979a50dc9cb7509cf38722ea7cdb66b67171e5.tar.gz
emacs-6a979a50dc9cb7509cf38722ea7cdb66b67171e5.zip
(diary-face, diary-anniversary, diary-time, diary-button): Doc fix.
Move to calendar-faces group. Move non-autoloaded define-obsolete-variable-alias calls for defcustoms not in dumped files before the associated defcustom.
-rw-r--r--lisp/calendar/diary-lib.el60
1 files changed, 30 insertions, 30 deletions
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index af56fd87664..e3711331c5d 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -54,25 +54,25 @@ are holidays."
54(defcustom diary-face 'diary 54(defcustom diary-face 'diary
55 "Face name to use for diary entries." 55 "Face name to use for diary entries."
56 :type 'face 56 :type 'face
57 :group 'diary) 57 :group 'calendar-faces)
58(make-obsolete-variable 'diary-face "customize the face `diary' instead." 58(make-obsolete-variable 'diary-face "customize the face `diary' instead."
59 "23.1") 59 "23.1")
60 60
61(defface diary-anniversary '((t :inherit font-lock-keyword-face)) 61(defface diary-anniversary '((t :inherit font-lock-keyword-face))
62 "Face used for anniversaries in the fancy diary display." 62 "Face used for anniversaries in the fancy diary display."
63 :version "22.1" 63 :version "22.1"
64 :group 'diary) 64 :group 'calendar-faces)
65 65
66(defface diary-time '((t :inherit font-lock-variable-name-face)) 66(defface diary-time '((t :inherit font-lock-variable-name-face))
67 "Face used for times of day in the diary." 67 "Face used for times of day in the fancy diary display."
68 :version "22.1" 68 :version "22.1"
69 :group 'diary) 69 :group 'calendar-faces)
70 70
71(defface diary-button '((((type pc) (class color)) 71(defface diary-button '((((type pc) (class color))
72 (:foreground "lightblue"))) 72 (:foreground "lightblue")))
73 "Default face used for buttons." 73 "Face used for buttons in the fancy diary display."
74 :version "22.1" 74 :version "22.1"
75 :group 'diary) 75 :group 'calendar-faces)
76;; Backward-compatibility alias. FIXME make obsolete. 76;; Backward-compatibility alias. FIXME make obsolete.
77(put 'diary-button-face 'face-alias 'diary-button) 77(put 'diary-button-face 'face-alias 'diary-button)
78 78
@@ -135,15 +135,15 @@ are: `string', `symbol', `int', `tnil',`stringtnil.'"
135 :type 'function 135 :type 'function
136 :group 'diary) 136 :group 'diary)
137 137
138(define-obsolete-variable-alias 'sexp-diary-entry-symbol
139 'diary-sexp-entry-symbol "23.1")
140
138(defcustom diary-sexp-entry-symbol "%%" 141(defcustom diary-sexp-entry-symbol "%%"
139 "The string used to indicate a sexp diary entry in `diary-file'. 142 "The string used to indicate a sexp diary entry in `diary-file'.
140See the documentation for the function `diary-list-sexp-entries'." 143See the documentation for the function `diary-list-sexp-entries'."
141 :type 'string 144 :type 'string
142 :group 'diary) 145 :group 'diary)
143 146
144(define-obsolete-variable-alias 'sexp-diary-entry-symbol
145 'diary-sexp-entry-symbol "23.1")
146
147(defcustom diary-hook nil 147(defcustom diary-hook nil
148 "List of functions called after the display of the diary. 148 "List of functions called after the display of the diary.
149Used for example by the appointment package - see `appt-activate'." 149Used for example by the appointment package - see `appt-activate'."
@@ -179,6 +179,9 @@ the variable `diary-list-include-blanks' non-nil."
179 :set 'diary-set-maybe-redraw 179 :set 'diary-set-maybe-redraw
180 :group 'diary) 180 :group 'diary)
181 181
182(define-obsolete-variable-alias 'list-diary-entries-hook
183 'diary-list-entries-hook "23.1")
184
182(defcustom diary-list-entries-hook nil 185(defcustom diary-list-entries-hook nil
183 "List of functions called after diary file is culled for relevant entries. 186 "List of functions called after diary file is culled for relevant entries.
184You might wish to add `diary-include-other-diary-files', in which case 187You might wish to add `diary-include-other-diary-files', in which case
@@ -196,8 +199,8 @@ lexicographic order."
196 :options '(diary-include-other-diary-files diary-sort-entries) 199 :options '(diary-include-other-diary-files diary-sort-entries)
197 :group 'diary) 200 :group 'diary)
198 201
199(define-obsolete-variable-alias 'list-diary-entries-hook 202(define-obsolete-variable-alias 'mark-diary-entries-hook
200 'diary-list-entries-hook "23.1") 203 'diary-mark-entries-hook "23.1")
201 204
202(defcustom diary-mark-entries-hook nil 205(defcustom diary-mark-entries-hook nil
203 "List of functions called after marking diary entries in the calendar. 206 "List of functions called after marking diary entries in the calendar.
@@ -208,8 +211,8 @@ you will probably also want to add `diary-include-other-diary-files' to
208 :options '(diary-mark-included-diary-files) 211 :options '(diary-mark-included-diary-files)
209 :group 'diary) 212 :group 'diary)
210 213
211(define-obsolete-variable-alias 'mark-diary-entries-hook 214(define-obsolete-variable-alias 'nongregorian-diary-listing-hook
212 'diary-mark-entries-hook "23.1") 215 'diary-nongregorian-listing-hook "23.1")
213 216
214(defcustom diary-nongregorian-listing-hook nil 217(defcustom diary-nongregorian-listing-hook nil
215 "List of functions called for listing diary file and included files. 218 "List of functions called for listing diary file and included files.
@@ -224,8 +227,8 @@ describes the style of such diary entries."
224 diary-islamic-list-entries) 227 diary-islamic-list-entries)
225 :group 'diary) 228 :group 'diary)
226 229
227(define-obsolete-variable-alias 'nongregorian-diary-listing-hook 230(define-obsolete-variable-alias 'nongregorian-diary-marking-hook
228 'diary-nongregorian-listing-hook "23.1") 231 'diary-nongregorian-marking-hook "23.1")
229 232
230(defcustom diary-nongregorian-marking-hook nil 233(defcustom diary-nongregorian-marking-hook nil
231 "List of functions called for marking diary file and included files. 234 "List of functions called for marking diary file and included files.
@@ -240,8 +243,8 @@ describes the style of such diary entries."
240 diary-islamic-mark-entries) 243 diary-islamic-mark-entries)
241 :group 'diary) 244 :group 'diary)
242 245
243(define-obsolete-variable-alias 'nongregorian-diary-marking-hook 246(define-obsolete-variable-alias 'print-diary-entries-hook
244 'diary-nongregorian-marking-hook "23.1") 247 'diary-print-entries-hook "23.1")
245 248
246(defcustom diary-print-entries-hook 'lpr-buffer 249(defcustom diary-print-entries-hook 'lpr-buffer
247 "Run by `diary-print-entries' after preparing a temporary diary buffer. 250 "Run by `diary-print-entries' after preparing a temporary diary buffer.
@@ -253,9 +256,6 @@ changing the function used to do the printing."
253 :type 'hook 256 :type 'hook
254 :group 'diary) 257 :group 'diary)
255 258
256(define-obsolete-variable-alias 'print-diary-entries-hook
257 'diary-print-entries-hook "23.1")
258
259(defcustom diary-unknown-time -9999 259(defcustom diary-unknown-time -9999
260 "Value returned by `diary-entry-time' when no time is found. 260 "Value returned by `diary-entry-time' when no time is found.
261The default value -9999 causes entries with no recognizable time 261The default value -9999 causes entries with no recognizable time
@@ -293,6 +293,9 @@ month, day, year), and `diary-entry' (a string)."
293 :type 'sexp 293 :type 'sexp
294 :group 'diary) 294 :group 'diary)
295 295
296(define-obsolete-variable-alias 'abbreviated-calendar-year
297 'diary-abbreviated-year-flag "23.1")
298
296(defcustom diary-abbreviated-year-flag t 299(defcustom diary-abbreviated-year-flag t
297 "Interpret a two-digit year DD in a diary entry as either 19DD or 20DD. 300 "Interpret a two-digit year DD in a diary entry as either 19DD or 20DD.
298This applies to the Gregorian, Hebrew, Islamic, and Baha'i calendars. 301This applies to the Gregorian, Hebrew, Islamic, and Baha'i calendars.
@@ -303,9 +306,6 @@ If this variable is nil, years must be written in full."
303 :type 'boolean 306 :type 'boolean
304 :group 'diary) 307 :group 'diary)
305 308
306(define-obsolete-variable-alias 'abbreviated-calendar-year
307 'diary-abbreviated-year-flag "23.1")
308
309(defcustom diary-outlook-formats 309(defcustom diary-outlook-formats
310 '( 310 '(
311 ;; When: 11 October 2001 12:00-14:00 (GMT) Greenwich Mean Time : Dublin, ... 311 ;; When: 11 October 2001 12:00-14:00 (GMT) Greenwich Mean Time : Dublin, ...
@@ -427,6 +427,9 @@ just visiting the `diary-file'), and SYMBOL's value is to be changed."
427 ;; Note this assumes diary was called without prefix arg. 427 ;; Note this assumes diary was called without prefix arg.
428 (diary)))) 428 (diary))))
429 429
430(define-obsolete-variable-alias 'number-of-diary-entries
431 'diary-number-of-entries "23.1")
432
430(defcustom diary-number-of-entries 1 433(defcustom diary-number-of-entries 1
431 "Specifies how many days of diary entries are to be displayed initially. 434 "Specifies how many days of diary entries are to be displayed initially.
432This variable affects the diary display when the command \\[diary] is used, 435This variable affects the diary display when the command \\[diary] is used,
@@ -457,10 +460,7 @@ number of days of diary entries displayed."
457 :set 'diary-set-maybe-redraw 460 :set 'diary-set-maybe-redraw
458 :group 'diary) 461 :group 'diary)
459 462
460(define-obsolete-variable-alias 'number-of-diary-entries 463;;; More user options in calendar.el, holidays.el.
461 'diary-number-of-entries "23.1")
462
463;;; More user options in calendar.el.
464 464
465 465
466(defun diary-check-diary-file () 466(defun diary-check-diary-file ()
@@ -2294,6 +2294,9 @@ and return a font-lock pattern matching array of MONTHS and marking SYMBOL."
2294 "\\(: .*\\)?") 2294 "\\(: .*\\)?")
2295 "Regular expression matching a date header in Fancy Diary.") 2295 "Regular expression matching a date header in Fancy Diary.")
2296 2296
2297(define-obsolete-variable-alias 'fancy-diary-font-lock-keywords
2298 'diary-fancy-font-lock-keywords "23.1")
2299
2297(defvar diary-fancy-font-lock-keywords 2300(defvar diary-fancy-font-lock-keywords
2298 (list 2301 (list
2299 (list 2302 (list
@@ -2311,9 +2314,6 @@ and return a font-lock pattern matching array of MONTHS and marking SYMBOL."
2311 diary-time-regexp) . 'diary-time)) 2314 diary-time-regexp) . 'diary-time))
2312 "Keywords to highlight in fancy diary display.") 2315 "Keywords to highlight in fancy diary display.")
2313 2316
2314(define-obsolete-variable-alias 'fancy-diary-font-lock-keywords
2315 'diary-fancy-font-lock-keywords "23.1")
2316
2317;; If region looks like it might start or end in the middle of a 2317;; If region looks like it might start or end in the middle of a
2318;; multiline pattern, extend the region to encompass the whole pattern. 2318;; multiline pattern, extend the region to encompass the whole pattern.
2319(defun diary-fancy-font-lock-fontify-region-function (beg end &optional verbose) 2319(defun diary-fancy-font-lock-fontify-region-function (beg end &optional verbose)