Mercurial > emacs
comparison lisp/wid-edit.el @ 90776:dd7c098af727
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 638-652)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 202)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-177
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 26 Feb 2007 23:03:45 +0000 |
parents | 52a7f3f50b89 3c33fbf5dc8a |
children | e6fdae9180d4 |
comparison
equal
deleted
inserted
replaced
90775:7d8921cab8aa | 90776:dd7c098af727 |
---|---|
402 (overlay-put overlay 'keymap (widget-get widget :keymap)) | 402 (overlay-put overlay 'keymap (widget-get widget :keymap)) |
403 (overlay-put overlay 'evaporate t) | 403 (overlay-put overlay 'evaporate t) |
404 ;; We want to avoid the face with image buttons. | 404 ;; We want to avoid the face with image buttons. |
405 (unless (widget-get widget :suppress-face) | 405 (unless (widget-get widget :suppress-face) |
406 (overlay-put overlay 'face (widget-apply widget :button-face-get)) | 406 (overlay-put overlay 'face (widget-apply widget :button-face-get)) |
407 (overlay-put overlay 'mouse-face | 407 (overlay-put overlay 'mouse-face |
408 (widget-apply widget :mouse-face-get))) | 408 (widget-apply widget :mouse-face-get))) |
409 (overlay-put overlay 'pointer 'hand) | 409 (overlay-put overlay 'pointer 'hand) |
410 (overlay-put overlay 'follow-link follow-link) | 410 (overlay-put overlay 'follow-link follow-link) |
411 (overlay-put overlay 'help-echo help-echo))) | 411 (overlay-put overlay 'help-echo help-echo))) |
412 | 412 |
1507 (when value-pos | 1507 (when value-pos |
1508 (goto-char value-pos) | 1508 (goto-char value-pos) |
1509 (widget-apply widget :value-create))) | 1509 (widget-apply widget :value-create))) |
1510 (let ((from (point-min-marker)) | 1510 (let ((from (point-min-marker)) |
1511 (to (point-max-marker))) | 1511 (to (point-max-marker))) |
1512 (set-marker-insertion-type from nil) | 1512 (set-marker-insertion-type from t) |
1513 (set-marker-insertion-type to nil) | 1513 (set-marker-insertion-type to nil) |
1514 (widget-put widget :from from) | 1514 (widget-put widget :from from) |
1515 (widget-put widget :to to))) | 1515 (widget-put widget :to to))) |
1516 (widget-clear-undo)) | 1516 (widget-clear-undo)) |
1517 | 1517 |
1850 (finder-commentary (widget-value widget))) | 1850 (finder-commentary (widget-value widget))) |
1851 | 1851 |
1852 ;;; The `editable-field' Widget. | 1852 ;;; The `editable-field' Widget. |
1853 | 1853 |
1854 (define-widget 'editable-field 'default | 1854 (define-widget 'editable-field 'default |
1855 "An editable text field." | 1855 "An editable text field. |
1856 Note: In an `editable-field' widget, the `%v' escape must be preceded | |
1857 by some other text in the `:format' string (if specified)." | |
1856 :convert-widget 'widget-value-convert-widget | 1858 :convert-widget 'widget-value-convert-widget |
1857 :keymap widget-field-keymap | 1859 :keymap widget-field-keymap |
1858 :format "%v" | 1860 :format "%v" |
1859 :help-echo "M-TAB: complete field; RET: enter value" | 1861 :help-echo "M-TAB: complete field; RET: enter value" |
1860 :value "" | 1862 :value "" |