Mercurial > emacs
diff lisp/frame.el @ 17665:b11021ca3525
Use defcustom.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 05 May 1997 15:06:25 +0000 |
parents | 74dd1184863b |
children | c41c3f9ff745 |
line wrap: on
line diff
--- a/lisp/frame.el Mon May 05 15:00:53 1997 +0000 +++ b/lisp/frame.el Mon May 05 15:06:25 1997 +0000 @@ -1,6 +1,6 @@ ;;; frame.el --- multi-frame management independent of window systems. -;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. +;; Copyright (C) 1993, 1994, 1996, 1997 Free Software Foundation, Inc. ;; Maintainer: FSF ;; Keywords: internal @@ -72,7 +72,7 @@ (function (lambda () (make-frame pop-up-frame-alist)))) -(defvar special-display-frame-alist +(defcustom special-display-frame-alist '((height . 14) (width . 80) (unsplittable . t)) "*Alist of frame parameters used when creating special frames. Special frames are used for buffers whose names are in @@ -80,7 +80,11 @@ one of the regular expressions in `special-display-regexps'. This variable can be set in your init file, like this: (setq special-display-frame-alist '((width . 80) (height . 20))) -These supersede the values given in `default-frame-alist'.") +These supersede the values given in `default-frame-alist'." + :type '(repeat (cons :format "%v" + (symbol :tag "Parameter") + (sexp :tag "Value"))) + :group 'frames) ;; Display BUFFER in its own frame, reusing an existing window if any. ;; Return the window chosen. @@ -675,8 +679,11 @@ (modify-frame-parameters (selected-frame) (list (cons 'auto-lower (> arg 0))))) -(defvar scroll-bar-side 'left - "*Specify which side scroll bars should be on. Value is `left' or `right'.") +(defcustom scroll-bar-side 'left + "*Specify which side scroll bars should be on. Value is `left' or `right'." + :type '(choice (const left) + (const right)) + :group 'frames) (defun toggle-scroll-bar (arg) "Toggle whether or not the selected frame has vertical scroll bars.