aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-02-14 16:29:53 +1100
committerLars Ingebrigtsen2016-02-14 16:29:53 +1100
commite1f22c1739f2269d1efbb25d4d74c8afea9f47db (patch)
tree8d77090ea941d0f86d3f5f7028c375d46a2e604a
parenta0844f15cad956a31f8a2cdb22df9ac9962ea95a (diff)
downloademacs-e1f22c1739f2269d1efbb25d4d74c8afea9f47db.tar.gz
emacs-e1f22c1739f2269d1efbb25d4d74c8afea9f47db.zip
Remove the gmm-lazy and nnmail-lazy compat widgets
* lisp/gnus/gmm-utils.el (gmm-lazy): Remove. * lisp/gnus/nnmail.el (nnmail-lazy): Remove.
-rw-r--r--lisp/gnus/gmm-utils.el32
-rw-r--r--lisp/gnus/nnmail.el29
2 files changed, 3 insertions, 58 deletions
diff --git a/lisp/gnus/gmm-utils.el b/lisp/gnus/gmm-utils.el
index 30bddef4123..34db4bd1000 100644
--- a/lisp/gnus/gmm-utils.el
+++ b/lisp/gnus/gmm-utils.el
@@ -97,34 +97,6 @@ ARGS are passed to `message'."
97(autoload 'widget-convert "wid-edit") 97(autoload 'widget-convert "wid-edit")
98(autoload 'widget-default-get "wid-edit") 98(autoload 'widget-default-get "wid-edit")
99 99
100;; Copy of the `nnmail-lazy' code from `nnmail.el':
101(define-widget 'gmm-lazy 'default
102 "Base widget for recursive data structures.
103
104This is a copy of the `lazy' widget in Emacs 22.1 provided for compatibility."
105 :format "%{%t%}: %v"
106 :convert-widget 'widget-value-convert-widget
107 :value-create (lambda (widget)
108 (let ((value (widget-get widget :value))
109 (type (widget-get widget :type)))
110 (widget-put widget :children
111 (list (widget-create-child-value
112 widget (widget-convert type) value)))))
113 :value-delete 'widget-children-value-delete
114 :value-get (lambda (widget)
115 (widget-value (car (widget-get widget :children))))
116 :value-inline (lambda (widget)
117 (widget-apply (car (widget-get widget :children))
118 :value-inline))
119 :default-get (lambda (widget)
120 (widget-default-get
121 (widget-convert (widget-get widget :type))))
122 :match (lambda (widget value)
123 (widget-apply (widget-convert (widget-get widget :type))
124 :match value))
125 :validate (lambda (widget)
126 (widget-apply (car (widget-get widget :children)) :validate)))
127
128;; Note: The format of `gmm-tool-bar-item' may change if some future Emacs 100;; Note: The format of `gmm-tool-bar-item' may change if some future Emacs
129;; version will provide customizable tool bar buttons using a different 101;; version will provide customizable tool bar buttons using a different
130;; interface. 102;; interface.
@@ -144,7 +116,7 @@ This is a copy of the `lazy' widget in Emacs 22.1 provided for compatibility."
144;; 116;;
145;; Then use (plist-get rs-command :none), (plist-get rs-command :shift) 117;; Then use (plist-get rs-command :none), (plist-get rs-command :shift)
146 118
147(define-widget 'gmm-tool-bar-item (if (gmm-widget-p 'lazy) 'lazy 'gmm-lazy) 119(define-widget 'gmm-tool-bar-item 'lazy
148 "Tool bar list item." 120 "Tool bar list item."
149 :tag "Tool bar item" 121 :tag "Tool bar item"
150 :type '(choice 122 :type '(choice
@@ -163,7 +135,7 @@ This is a copy of the `lazy' widget in Emacs 22.1 provided for compatibility."
163 (const :tag "No map") 135 (const :tag "No map")
164 (plist :inline t :tag "Properties")))) 136 (plist :inline t :tag "Properties"))))
165 137
166(define-widget 'gmm-tool-bar-zap-list (if (gmm-widget-p 'lazy) 'lazy 'gmm-lazy) 138(define-widget 'gmm-tool-bar-zap-list 'lazy
167 "Tool bar zap list." 139 "Tool bar zap list."
168 :tag "Tool bar zap list" 140 :tag "Tool bar zap list"
169 :type '(choice (const :tag "Zap all" t) 141 :type '(choice (const :tag "Zap all" t)
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index b8899f4b2d2..52a9db20b84 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -368,34 +368,7 @@ messages will be shown to indicate the current status."
368 :type '(choice (const :tag "infinite" nil) 368 :type '(choice (const :tag "infinite" nil)
369 (number :tag "count"))) 369 (number :tag "count")))
370 370
371(define-widget 'nnmail-lazy 'default 371(define-widget 'nnmail-split-fancy 'lazy
372 "Base widget for recursive data structures.
373
374This is copy of the `lazy' widget in Emacs 22.1 provided for compatibility."
375 :format "%{%t%}: %v"
376 :convert-widget 'widget-value-convert-widget
377 :value-create (lambda (widget)
378 (let ((value (widget-get widget :value))
379 (type (widget-get widget :type)))
380 (widget-put widget :children
381 (list (widget-create-child-value
382 widget (widget-convert type) value)))))
383 :value-delete 'widget-children-value-delete
384 :value-get (lambda (widget)
385 (widget-value (car (widget-get widget :children))))
386 :value-inline (lambda (widget)
387 (widget-apply (car (widget-get widget :children))
388 :value-inline))
389 :default-get (lambda (widget)
390 (widget-default-get
391 (widget-convert (widget-get widget :type))))
392 :match (lambda (widget value)
393 (widget-apply (widget-convert (widget-get widget :type))
394 :match value))
395 :validate (lambda (widget)
396 (widget-apply (car (widget-get widget :children)) :validate)))
397
398(define-widget 'nnmail-split-fancy 'nnmail-lazy
399 "Widget for customizing splits in the variable of the same name." 372 "Widget for customizing splits in the variable of the same name."
400 :tag "Split" 373 :tag "Split"
401 :type '(menu-choice :value (any ".*value.*" "misc") 374 :type '(menu-choice :value (any ".*value.*" "misc")