diff options
| author | Per Abrahamsen | 1997-04-12 17:51:31 +0000 |
|---|---|---|
| committer | Per Abrahamsen | 1997-04-12 17:51:31 +0000 |
| commit | bd042c030f6530726313e4ff55065df7e2ee41a9 (patch) | |
| tree | abb71fe08c194635b74c71d314bcc23c319790b3 /lisp/wid-edit.el | |
| parent | c5292bc831ae97cd0d99234c039c9309c05af2a6 (diff) | |
| download | emacs-bd042c030f6530726313e4ff55065df7e2ee41a9.tar.gz emacs-bd042c030f6530726313e4ff55065df7e2ee41a9.zip | |
Sync with 1.84.
Diffstat (limited to 'lisp/wid-edit.el')
| -rw-r--r-- | lisp/wid-edit.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 283981d42f4..e7985c5bc8f 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | ;; | 4 | ;; |
| 5 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> | 5 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> |
| 6 | ;; Keywords: extensions | 6 | ;; Keywords: extensions |
| 7 | ;; Version: 1.71 | 7 | ;; Version: 1.84 |
| 8 | ;; X-URL: http://www.dina.kvl.dk/~abraham/custom/ | 8 | ;; X-URL: http://www.dina.kvl.dk/~abraham/custom/ |
| 9 | 9 | ||
| 10 | ;;; Commentary: | 10 | ;;; Commentary: |
| @@ -1238,13 +1238,14 @@ With optional ARG, move across that many fields." | |||
| 1238 | (define-widget 'push-button 'item | 1238 | (define-widget 'push-button 'item |
| 1239 | "A pushable button." | 1239 | "A pushable button." |
| 1240 | :value-create 'widget-push-button-value-create | 1240 | :value-create 'widget-push-button-value-create |
| 1241 | :text-format "[%s]" | ||
| 1241 | :format "%[%v%]") | 1242 | :format "%[%v%]") |
| 1242 | 1243 | ||
| 1243 | (defun widget-push-button-value-create (widget) | 1244 | (defun widget-push-button-value-create (widget) |
| 1244 | ;; Insert text representing the `on' and `off' states. | 1245 | ;; Insert text representing the `on' and `off' states. |
| 1245 | (let* ((tag (or (widget-get widget :tag) | 1246 | (let* ((tag (or (widget-get widget :tag) |
| 1246 | (widget-get widget :value))) | 1247 | (widget-get widget :value))) |
| 1247 | (text (concat "[" tag "]")) | 1248 | (text (format (widget-get widget :text-format) tag)) |
| 1248 | (gui (cdr (assoc tag widget-push-button-cache)))) | 1249 | (gui (cdr (assoc tag widget-push-button-cache)))) |
| 1249 | (if (and (fboundp 'make-gui-button) | 1250 | (if (and (fboundp 'make-gui-button) |
| 1250 | (fboundp 'make-glyph) | 1251 | (fboundp 'make-glyph) |
| @@ -2374,7 +2375,7 @@ It will read a directory name from the minibuffer when activated." | |||
| 2374 | (defun widget-vector-match (widget value) | 2375 | (defun widget-vector-match (widget value) |
| 2375 | (and (vectorp value) | 2376 | (and (vectorp value) |
| 2376 | (widget-group-match widget | 2377 | (widget-group-match widget |
| 2377 | (widget-apply :value-to-internal widget value)))) | 2378 | (widget-apply widget :value-to-internal value)))) |
| 2378 | 2379 | ||
| 2379 | (define-widget 'cons 'group | 2380 | (define-widget 'cons 'group |
| 2380 | "A cons-cell." | 2381 | "A cons-cell." |