-;;; widget-edit.el --- Functions for creating and using widgets.
+;;; wid-edit.el --- Functions for creating and using widgets.
;;
;; Copyright (C) 1996, 1997 Free Software Foundation, Inc.
;;
;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
;; Keywords: extensions
-;; Version: 1.38
+;; Version: 1.48
;; X-URL: http://www.dina.kvl.dk/~abraham/custom/
;;; Commentary:
(unless (and (featurep 'custom) (fboundp 'custom-declare-variable))
;; We have the old custom-library, hack around it!
(defmacro defgroup (&rest args) nil)
- (defmacro defcustom (&rest args) nil)
+ (defmacro defcustom (var value doc &rest args)
+ `(defvar ,var ,value ,doc))
(defmacro defface (&rest args) nil)
(define-widget-keywords :prefix :tag :load :link :options :type :group)
(when (fboundp 'copy-face)
(copy-face 'default 'widget-documentation-face)
(copy-face 'bold 'widget-button-face)
- (copy-face 'italic 'widget-field-face))
- (defvar widget-mouse-face 'highlight)
- (defvar widget-menu-max-size 40)))
+ (copy-face 'italic 'widget-field-face))))
;;; Compatibility.
:link '(url-link :tag "Development Page"
"http://www.dina.kvl.dk/~abraham/custom/")
:prefix "widget-"
- :group 'emacs)
+ :group 'extensions
+ :group 'faces
+ :group 'hypermedia)
(defface widget-documentation-face '((((class color)
(background dark))
event (fboundp 'popup-menu) window-system)
;; We are in XEmacs, pressed by the mouse
(let ((val (get-popup-menu-response
- (cons ""
+ (cons title
(mapcar
(function
(lambda (x)
(define-key widget-keymap "\t" 'widget-forward)
(define-key widget-keymap "\M-\t" 'widget-backward)
(define-key widget-keymap [(shift tab)] 'widget-backward)
- (define-key widget-keymap [(shift tab)] 'widget-backward)
(define-key widget-keymap [backtab] 'widget-backward)
(if (string-match "XEmacs" (emacs-version))
(progn
(if (and (fboundp 'make-gui-button)
(fboundp 'make-glyph)
widget-push-button-gui
+ (fboundp 'device-on-window-system-p)
+ (device-on-window-system-p)
(string-match "XEmacs" emacs-version))
(progn
(unless gui
;;; The End:
-(provide 'widget-edit)
+(provide 'wid-edit)
-;; widget-edit.el ends here
+;; wid-edit.el ends here