comparison lisp/frame.el @ 958:cc82116a8f1c

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Wed, 12 Aug 1992 12:57:12 +0000
parents 79204001d346
children 0ffcf74fb8ad
comparison
equal deleted inserted replaced
957:2619b7a9c11e 958:cc82116a8f1c
29 function, which should take an alist of parameters as its argument.") 29 function, which should take an alist of parameters as its argument.")
30 30
31 ;;; The default value for this must ask for a minibuffer. There must 31 ;;; The default value for this must ask for a minibuffer. There must
32 ;;; always exist a frame with a minibuffer, and after we delete the 32 ;;; always exist a frame with a minibuffer, and after we delete the
33 ;;; terminal frame, this will be the only frame. 33 ;;; terminal frame, this will be the only frame.
34 (defvar initial-frame-alist '((minibuffer . nil)) 34 (defvar initial-frame-alist '((minibuffer . t))
35 "Alist of values used when creating the initial emacs text frame. 35 "Alist of values used when creating the initial emacs text frame.
36 These may be set in your init file, like this: 36 These may be set in your init file, like this:
37 (setq initial-frame-alist '((top . 1) (left . 1) (width . 80) (height . 55))) 37 (setq initial-frame-alist '((top . 1) (left . 1) (width . 80) (height . 55)))
38 These supercede the values given in frame-default-alist.") 38 These supercede the values given in frame-default-alist.")
39 39
284 (list (cons 'horizontal-scroll-bar toggle)))) 284 (list (cons 'horizontal-scroll-bar toggle))))
285 285
286 ;;;; Aliases for backward compatibility with Emacs 18. 286 ;;;; Aliases for backward compatibility with Emacs 18.
287 (fset 'screen-height 'frame-height) 287 (fset 'screen-height 'frame-height)
288 (fset 'screen-width 'frame-width) 288 (fset 'screen-width 'frame-width)
289 (fset 'set-screen-width 'set-frame-width) 289
290 (fset 'set-screen-height 'set-frame-height) 290 (defun set-screen-width (cols &optional pretend)
291 "Obsolete function to change the size of the screen to COLS columns.\n\
292 Optional second arg non-nil means that redisplay should use COLS columns\n\
293 but that the idea of the actual width of the frame should not be changed.\n\
294 This function is provided only for compatibility with Emacs 18; new code\n\
295 should use set-frame-width instead."
296 (set-frame-width (selected-frame) cols pretend))
297
298 (defun set-screen-height (lines &optional pretend)
299 "Obsolete function to change the height of the screen to LINES lines.\n\
300 Optional second arg non-nil means that redisplay should use LINES lines\n\
301 but that the idea of the actual height of the screen should not be changed.\n\
302 This function is provided only for compatibility with Emacs 18; new code\n\
303 should use set-frame-width instead."
304 (set-frame-height (selected-frame) lines pretend))
305
306 (make-obsolete 'screen-height 'frame-height)
307 (make-obsolete 'screen-width 'frame-width)
308 (make-obsolete 'set-screen-width 'set-frame-width)
309 (make-obsolete 'set-screen-height 'set-frame-height)
291 310
292 311
293 ;;;; Key bindings 312 ;;;; Key bindings
294 (defvar ctl-x-5-map (make-sparse-keymap) 313 (defvar ctl-x-5-map (make-sparse-keymap)
295 "Keymap for frame commands.") 314 "Keymap for frame commands.")