aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-08 04:17:24 +0000
committerGlenn Morris2008-03-08 04:17:24 +0000
commit5fc5b6e16923cad6271ce22608caebb2d92850c0 (patch)
tree7aac42d70c5a7f1b13c6bada0cb7ac3c6b7ead34
parent40b94748a40526045b3c80e23d6fbae2d10d3ccd (diff)
downloademacs-5fc5b6e16923cad6271ce22608caebb2d92850c0.tar.gz
emacs-5fc5b6e16923cad6271ce22608caebb2d92850c0.zip
(diary-frame-parameters, calendar-frame-parameters)
(calendar-and-diary-frame-parameters, calendar-after-frame-setup-hooks): Make defcustoms.
-rw-r--r--lisp/calendar/cal-x.el35
1 files changed, 22 insertions, 13 deletions
diff --git a/lisp/calendar/cal-x.el b/lisp/calendar/cal-x.el
index 8a889bf2085..84dac9a0347 100644
--- a/lisp/calendar/cal-x.el
+++ b/lisp/calendar/cal-x.el
@@ -35,34 +35,43 @@
35 35
36(require 'calendar) 36(require 'calendar)
37 37
38(defvar calendar-frame nil "Frame in which to display the calendar.") 38(defcustom diary-frame-parameters
39
40(defvar diary-frame nil "Frame in which to display the diary.")
41
42;; This should not specify the font. That's up to the user.
43;; Certainly it should not specify auto-lower and auto-raise
44;; since most users won't like that.
45(defvar diary-frame-parameters
46 '((name . "Diary") (title . "Diary") (height . 10) (width . 80) 39 '((name . "Diary") (title . "Diary") (height . 10) (width . 80)
47 (unsplittable . t) (minibuffer . nil)) 40 (unsplittable . t) (minibuffer . nil))
48 "Parameters of the diary frame, if the diary is in its own frame. 41 "Parameters of the diary frame, if the diary is in its own frame.
49Location and color should be set in .Xdefaults.") 42Location and color should be set in .Xdefaults."
43 :type 'sexp
44 :group 'calendar)
50 45
51(defvar calendar-frame-parameters 46(defvar calendar-frame-parameters
52 '((name . "Calendar") (title . "Calendar") (minibuffer . nil) 47 '((name . "Calendar") (title . "Calendar") (minibuffer . nil)
53 (height . 10) (width . 80) (unsplittable . t) (vertical-scroll-bars . nil)) 48 (height . 10) (width . 80) (unsplittable . t) (vertical-scroll-bars . nil))
54 "Parameters of the calendar frame, if the calendar is in a separate frame. 49 "Parameters of the calendar frame, if the calendar is in a separate frame.
55Location and color should be set in .Xdefaults.") 50Location and color should be set in .Xdefaults."
51 :type 'sexp
52 :group 'calendar)
56 53
57(defvar calendar-and-diary-frame-parameters 54(defvar calendar-and-diary-frame-parameters
58 '((name . "Calendar") (title . "Calendar") (height . 28) (width . 80) 55 '((name . "Calendar") (title . "Calendar") (height . 28) (width . 80)
59 (minibuffer . nil)) 56 (minibuffer . nil))
60 "Parameters of the frame that displays both the calendar and the diary. 57 "Parameters of the frame that displays both the calendar and the diary.
61Location and color should be set in .Xdefaults.") 58Location and color should be set in .Xdefaults."
59 :type 'sexp
60 :group 'calendar)
62 61
63(defvar calendar-after-frame-setup-hooks nil 62(defcustom calendar-after-frame-setup-hooks nil
64 "Hooks to be run just after setting up a calendar frame. 63 "Hooks to be run just after setting up a calendar frame.
65Can be used to change frame parameters, such as font, color, location, etc.") 64Can be used to change frame parameters, such as font, color, location, etc."
65 :type 'hook
66 :group 'calendar-hooks)
67
68;;; End of user options.
69
70(defvar calendar-frame nil
71 "Frame in which to display the calendar.")
72
73(defvar diary-frame nil
74 "Frame in which to display the diary.")
66 75
67;; calendar-basic-setup is called first, and will autoload diary-lib. 76;; calendar-basic-setup is called first, and will autoload diary-lib.
68(declare-function make-fancy-diary-buffer "diary-lib" nil) 77(declare-function make-fancy-diary-buffer "diary-lib" nil)