diff options
| author | Dave Love | 1999-08-05 18:50:18 +0000 |
|---|---|---|
| committer | Dave Love | 1999-08-05 18:50:18 +0000 |
| commit | b3e49cbb9cbb8697a669cc4dbdb60c8e3a1b7a5c (patch) | |
| tree | 22bca298377d3454f6fce27708b7ae3bc07ba0ad | |
| parent | 6393fef266f956cd278f2b87a0a1f29bc54bd697 (diff) | |
| download | emacs-b3e49cbb9cbb8697a669cc4dbdb60c8e3a1b7a5c.tar.gz emacs-b3e49cbb9cbb8697a669cc4dbdb60c8e3a1b7a5c.zip | |
(define-widget-keywords): Make dummy definition and comment-out its use.
| -rw-r--r-- | lisp/widget.el | 73 |
1 files changed, 38 insertions, 35 deletions
diff --git a/lisp/widget.el b/lisp/widget.el index 10af457a97c..b9d03e18e6a 100644 --- a/lisp/widget.el +++ b/lisp/widget.el | |||
| @@ -25,47 +25,50 @@ | |||
| 25 | ;; Boston, MA 02111-1307, USA. | 25 | ;; Boston, MA 02111-1307, USA. |
| 26 | 26 | ||
| 27 | ;;; Commentary: | 27 | ;;; Commentary: |
| 28 | ;; | ||
| 29 | ;; The widget library is partially documented in the `widget' Info | ||
| 30 | ;; file. | ||
| 28 | ;; | 31 | ;; |
| 29 | ;; If you want to use this code, please visit the URL above. | 32 | ;; This file only contains the code needed to define new widget types. |
| 30 | ;; | ||
| 31 | ;; This file only contain the code needed to define new widget types. | ||
| 32 | ;; Everything else is autoloaded from `wid-edit.el'. | 33 | ;; Everything else is autoloaded from `wid-edit.el'. |
| 33 | 34 | ||
| 34 | ;;; Code: | 35 | ;;; Code: |
| 35 | 36 | ||
| 36 | (eval-when-compile (require 'cl)) | 37 | ;; Doing this is unnecessary in Emacs 20. Kept as dummy in case |
| 37 | 38 | ;; external libraries call it. We save a kb or two of purespace by | |
| 39 | ;; dummying-out such definitions generally. | ||
| 38 | (defmacro define-widget-keywords (&rest keys) | 40 | (defmacro define-widget-keywords (&rest keys) |
| 39 | ;; Don't use backquote, since that makes trouble trying to | 41 | ;;; ;; Don't use backquote, since that makes trouble trying to |
| 40 | ;; re-bootstrap from just the .el files. | 42 | ;;; ;; re-bootstrap from just the .el files. |
| 41 | (list 'eval-and-compile | 43 | ;;; (list 'eval-and-compile |
| 42 | (list 'let (list (list 'keywords (list 'quote keys))) | 44 | ;;; (list 'let (list (list 'keywords (list 'quote keys))) |
| 43 | (list 'while 'keywords | 45 | ;;; (list 'while 'keywords |
| 44 | (list 'or (list 'boundp (list 'car 'keywords)) | 46 | ;;; (list 'or (list 'boundp (list 'car 'keywords)) |
| 45 | (list 'set (list 'car 'keywords) (list 'car 'keywords))) | 47 | ;;; (list 'set (list 'car 'keywords) (list 'car 'keywords))) |
| 46 | (list 'setq 'keywords (list 'cdr 'keywords)))))) | 48 | ;;; (list 'setq 'keywords (list 'cdr 'keywords))))) |
| 47 | 49 | ) | |
| 48 | (define-widget-keywords :documentation-indent | 50 | |
| 49 | :complete-function :complete :button-overlay | 51 | ;;;(define-widget-keywords :documentation-indent |
| 50 | :field-overlay | 52 | ;;; :complete-function :complete :button-overlay |
| 51 | :documentation-shown :button-prefix | 53 | ;;; :field-overlay |
| 52 | :button-suffix :mouse-down-action :glyph-up :glyph-down :glyph-inactive | 54 | ;;; :documentation-shown :button-prefix |
| 53 | :prompt-internal :prompt-history :prompt-match | 55 | ;;; :button-suffix :mouse-down-action :glyph-up :glyph-down :glyph-inactive |
| 54 | :prompt-value :deactivate :active | 56 | ;;; :prompt-internal :prompt-history :prompt-match |
| 55 | :inactive :activate :sibling-args :delete-button-args | 57 | ;;; :prompt-value :deactivate :active |
| 56 | :insert-button-args :append-button-args :button-args | 58 | ;;; :inactive :activate :sibling-args :delete-button-args |
| 57 | :tag-glyph :off-glyph :on-glyph :valid-regexp | 59 | ;;; :insert-button-args :append-button-args :button-args |
| 58 | :secret :sample-face :sample-face-get :case-fold | 60 | ;;; :tag-glyph :off-glyph :on-glyph :valid-regexp |
| 59 | :create :convert-widget :format :value-create :offset :extra-offset | 61 | ;;; :secret :sample-face :sample-face-get :case-fold |
| 60 | :tag :doc :from :to :args :value :action | 62 | ;;; :create :convert-widget :format :value-create :offset :extra-offset |
| 61 | :value-set :value-delete :match :parent :delete :menu-tag-get | 63 | ;;; :tag :doc :from :to :args :value :action |
| 62 | :value-get :choice :void :menu-tag :on :off :on-type :off-type | 64 | ;;; :value-set :value-delete :match :parent :delete :menu-tag-get |
| 63 | :notify :entry-format :button :children :buttons :insert-before | 65 | ;;; :value-get :choice :void :menu-tag :on :off :on-type :off-type |
| 64 | :delete-at :format-handler :widget :value-pos :value-to-internal | 66 | ;;; :notify :entry-format :button :children :buttons :insert-before |
| 65 | :indent :size :value-to-external :validate :error :directory | 67 | ;;; :delete-at :format-handler :widget :value-pos :value-to-internal |
| 66 | :must-match :type-error :value-inline :inline :match-inline :greedy | 68 | ;;; :indent :size :value-to-external :validate :error :directory |
| 67 | :button-face-get :button-face :value-face :keymap :entry-from | 69 | ;;; :must-match :type-error :value-inline :inline :match-inline :greedy |
| 68 | :entry-to :help-echo :documentation-property :tab-order) | 70 | ;;; :button-face-get :button-face :value-face :keymap :entry-from |
| 71 | ;;; :entry-to :help-echo :documentation-property :tab-order) | ||
| 69 | 72 | ||
| 70 | (defun define-widget (name class doc &rest args) | 73 | (defun define-widget (name class doc &rest args) |
| 71 | "Define a new widget type named NAME from CLASS. | 74 | "Define a new widget type named NAME from CLASS. |