diff options
| author | Stefan Kangas | 2024-12-15 19:15:55 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2024-12-15 19:20:04 +0100 |
| commit | 32060cef1cb58e53896f4fea82d2d30d35501d93 (patch) | |
| tree | e3b28ef7e640cd5bc993af3255d53a5cad257882 | |
| parent | 3c247f86b7639995c8ce2627049bcc91452d2cca (diff) | |
| download | emacs-32060cef1cb58e53896f4fea82d2d30d35501d93.tar.gz emacs-32060cef1cb58e53896f4fea82d2d30d35501d93.zip | |
; * lisp/widget.el: Delete commented out code.
| -rw-r--r-- | lisp/widget.el | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/lisp/widget.el b/lisp/widget.el index 11954378af1..8f5ee116f24 100644 --- a/lisp/widget.el +++ b/lisp/widget.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; widget.el --- a library of user interface components -*- lexical-binding: t; -*- | 1 | ;;; widget.el --- a library of user interface components -*- lexical-binding: t; -*- |
| 2 | ;; | 2 | ;; |
| 3 | ;; Copyright (C) 1996-1997, 2001-2024 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1996-2024 Free Software Foundation, Inc. |
| 4 | ;; | 4 | ;; |
| 5 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> | 5 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> |
| 6 | ;; Keywords: help, extensions, faces, hypermedia | 6 | ;; Keywords: help, extensions, faces, hypermedia |
| @@ -32,43 +32,10 @@ | |||
| 32 | 32 | ||
| 33 | ;;; Code: | 33 | ;;; Code: |
| 34 | 34 | ||
| 35 | ;; Doing this is unnecessary in Emacs 20. Kept as dummy in case | ||
| 36 | ;; external libraries call it. We save a kb or two of purespace by | ||
| 37 | ;; dummying-out such definitions generally. | ||
| 38 | (defmacro define-widget-keywords (&rest _keys) | 35 | (defmacro define-widget-keywords (&rest _keys) |
| 39 | ;; ;; Don't use backquote, since that makes trouble trying to | ||
| 40 | ;; ;; re-bootstrap from just the .el files. | ||
| 41 | ;; (list 'eval-and-compile | ||
| 42 | ;; (list 'let (list (list 'keywords (list 'quote keys))) | ||
| 43 | ;; (list 'while 'keywords | ||
| 44 | ;; (list 'or (list 'boundp (list 'car 'keywords)) | ||
| 45 | ;; (list 'set (list 'car 'keywords) (list 'car 'keywords))) | ||
| 46 | ;; (list 'setq 'keywords (list 'cdr 'keywords))))) | ||
| 47 | (declare (obsolete nil "27.1") (indent defun)) | 36 | (declare (obsolete nil "27.1") (indent defun)) |
| 48 | nil) | 37 | nil) |
| 49 | 38 | ||
| 50 | ;;(define-widget-keywords :documentation-indent | ||
| 51 | ;; :complete-function :complete :button-overlay | ||
| 52 | ;; :field-overlay | ||
| 53 | ;; :documentation-shown :button-prefix | ||
| 54 | ;; :button-suffix :mouse-down-action :glyph-up :glyph-down :glyph-inactive | ||
| 55 | ;; :prompt-internal :prompt-history :prompt-match | ||
| 56 | ;; :prompt-value :deactivate :active | ||
| 57 | ;; :inactive :activate :sibling-args :delete-button-args | ||
| 58 | ;; :insert-button-args :append-button-args :button-args | ||
| 59 | ;; :tag-glyph :off-glyph :on-glyph :valid-regexp | ||
| 60 | ;; :secret :sample-face :sample-face-get :case-fold | ||
| 61 | ;; :create :convert-widget :format :value-create :offset :extra-offset | ||
| 62 | ;; :tag :doc :from :to :args :value :action | ||
| 63 | ;; :value-set :value-delete :match :parent :delete :menu-tag-get | ||
| 64 | ;; :value-get :choice :void :menu-tag :on :off :on-type :off-type | ||
| 65 | ;; :notify :entry-format :button :children :buttons :insert-before | ||
| 66 | ;; :delete-at :format-handler :widget :value-pos :value-to-internal | ||
| 67 | ;; :indent :size :value-to-external :validate :error :directory | ||
| 68 | ;; :must-match :type-error :value-inline :inline :match-inline :greedy | ||
| 69 | ;; :button-face-get :button-face :value-face :keymap :entry-from | ||
| 70 | ;; :entry-to :help-echo :documentation-property :tab-order) | ||
| 71 | |||
| 72 | (defun define-widget (name class doc &rest args) | 39 | (defun define-widget (name class doc &rest args) |
| 73 | "Define a new widget type named NAME from CLASS. | 40 | "Define a new widget type named NAME from CLASS. |
| 74 | 41 | ||
| @@ -84,7 +51,6 @@ create identical widgets: | |||
| 84 | 51 | ||
| 85 | The third argument DOC is a documentation string for the widget." | 52 | The third argument DOC is a documentation string for the widget." |
| 86 | (declare (doc-string 3) (indent defun)) | 53 | (declare (doc-string 3) (indent defun)) |
| 87 | ;; | ||
| 88 | (unless (or (null doc) (stringp doc)) | 54 | (unless (or (null doc) (stringp doc)) |
| 89 | (error "Widget documentation must be nil or a string")) | 55 | (error "Widget documentation must be nil or a string")) |
| 90 | (put name 'widget-type (cons class args)) | 56 | (put name 'widget-type (cons class args)) |