Commit graph

59 commits

Author SHA1 Message Date
Karl Heuer
808bcfd2c7 (widget-before-change): Signal text-read-only rather
than an ordinary error.
1999-03-30 18:09:57 +00:00
Richard M. Stallman
1468535ed1 (widget-choice-value-create): Use equal' instead of eq'. 1999-02-15 12:07:01 +00:00
Richard M. Stallman
31d5543d2c (widget-alist-convert-option): Delete spurious comma.
(widget-plist-convert-option): Delete spurious comma.
1999-01-20 07:11:00 +00:00
Richard M. Stallman
a7013a02d0 (alist): Use sexp as default key-type. 1999-01-19 18:45:08 +00:00
Markus Rost
4200b742d9 Fix typo. 1999-01-18 09:44:54 +00:00
Richard M. Stallman
fc56773e1f (plist, alist): New widget types.
(coding-system): Define this unconditionally.
1999-01-18 01:02:58 +00:00
Karl Heuer
703c3a110b (widget-menu-max-shortcuts): New variable.
(widget-choose): Don't use single-char shortcuts if # items
exceeds that many.  Use minibuffer instead.
1998-09-13 03:36:27 +00:00
Richard M. Stallman
23c1c5525d (widget-beginning-of-line): Properly handle
multiline fields.  Don't use call-interactively.
(widget-end-of-line): Likewise.
1998-08-08 02:34:05 +00:00
Richard M. Stallman
416cd771be (widget-default-get): Doc fix.
(widget-editable-list-entry-create): Apply :value-to-external to
the value returned from wiget-default-get.
1998-06-15 22:07:42 +00:00
Richard M. Stallman
b720878d35 (other): Doc fix. 1998-06-13 05:04:42 +00:00
Richard M. Stallman
e9367b9c2a (widget-specify-secret): New function.
(widget-after-change): Use it.
(widget-specify-field): Use it.
1998-06-10 05:08:04 +00:00
Richard M. Stallman
cc0a25e146 (other): New widget type. 1998-06-10 04:19:36 +00:00
Richard M. Stallman
be96282a73 (widgets: sexp, variable, list, vector): Doc fixes. 1998-05-09 07:12:14 +00:00
Richard M. Stallman
783824f57e (default, widget-default-default-get): Define it.
(group, widget-group-default-get): Define it.
(menu-choice, widget-choice-default-get): Define it.
(widget-default-get): New function.
(widget-choice-action): Call it.
(widget-editable-list-entry-create): Call it.
1998-04-08 07:26:54 +00:00
Richard M. Stallman
1703018330 (widget-beginning-of-line): Don't set zmacs-region-stays.
(widget-end-of-line): Likewise.
(widget-glyph-click): Use read-event.
(widget-color-choice-list): Delete compatibility code.
(widget-color-sample-face-get): Likewise.
(widget-choose): Likewise.
(widget-event-point): Fix paren error.
1998-04-02 06:41:37 +00:00
Richard M. Stallman
4084d12891 Delete some compatibility code.
(widget-event-point, widget-read-event): Define unconditionally.

(widget-echo-help-mouse): Don't use window-end.

(widget-choice-value-create): If there is an :explicit-choice, respect it.
(widget-choice-action): Record an explicit choice in :explicit-choice.
1998-04-02 06:33:26 +00:00
Per Abrahamsen
af0f19d71b Use browse-url directly. 1998-03-04 10:48:19 +00:00
Karl Heuer
4d52438ece (widget-choose): Allow scrolling of large lists. 1997-12-19 14:46:20 +00:00
Karl Heuer
a59b702540 (variable-link): New widget.
(widget-variable-link-action): New function.
(function-link): New widget.
(widget-function-link-action): New function.
1997-10-16 18:22:36 +00:00
Karl Heuer
d6bc306b43 (widget-button-click): Move point to where clicked. 1997-10-15 23:57:19 +00:00
Karl Heuer
ba7fbe9273 (widget-plist-member): Move from here to src/fns.c;
translated into C for efficiency.
(widget-put, widget-get, widget-apply): Likewise.
1997-09-30 07:20:58 +00:00
Richard M. Stallman
540a8bd25e (widget-before-change): Obey `inhibit-read-only'. 1997-08-15 19:26:07 +00:00
Richard M. Stallman
33eae9c01b (widget-single-line-display-table): Variable
commented out; don't use it either.
1997-08-09 19:11:15 +00:00
Per Abrahamsen
4ee1cf9f78 Synched with 1.9951. 1997-07-28 15:46:57 +00:00
Richard M. Stallman
cfc198e540 (widget-field-use-before-change): Reenable for Emacs 20.
(widget-choose): Using keyboard, if all choices are
diabled, just report an error.
1997-07-06 23:12:14 +00:00
Per Abrahamsen
0f648ca2b9 Synched with 1.9945. 1997-07-04 12:52:14 +00:00
Per Abrahamsen
62f4466253 Synched with 1.9944. 1997-07-04 09:44:36 +00:00
Richard M. Stallman
2f47738170 (color-sample, editable-color): New widget types.
(widget-button-face): Default value widget-button-face.
(widget-default-button-face-get): Use variable widget-button-face.
1997-07-03 07:11:10 +00:00
Per Abrahamsen
c953515ea3 Synched with 1.9942. 1997-07-02 15:35:18 +00:00
Richard M. Stallman
d4b8422faf (widget-choice-action): Use widget-edit-functions.
(widget-toggle-action): Likewise.

(widget-choose): Use only digits, except for C-g.
Allocate digits to disabled commands too.
Don't use a keyboard menu; instead, display a buffer
listing all the alternatives.  Put cursor in echo area.
1997-06-27 06:04:19 +00:00
Per Abrahamsen
da5ec61785 Synched with 1.9936. 1997-06-25 15:30:27 +00:00
Richard M. Stallman
0b296daca5 (widget-menu-minibuffer-flag): New variable.
(widget-choose): Alternative method to read one character from the keyboard.

(widget-documentation-face): New variable.
(widget-specify-doc): Use the variable.

(widget-default-button-face-get): Try to get it from the parent.
(widget-default-create): Use :tag-face for tags.

(widget-edit-functions): Renamed from widget-edit-hook.
(widget-field-action): Pass the widget as an arg when running hook.

(character): Doc fix.
(restricted-sexp): New widget type.
(integer, number): Use restricted-sexp.
1997-06-24 22:44:30 +00:00
Richard M. Stallman
211c9fe920 (widget-edit-hook): New variable.
(widget-field-action, widget-choice-action): Run that hook
instead of displaying an echo area message.
(widget-toggle-action): Likewise.
(group-visibility, widget-group-visibility-create):
Moved to cus-edit.el and renamed.
1997-06-24 03:17:34 +00:00
Richard M. Stallman
d0acc4ea1e (widget-default-value-set): Preserve point here.
(widget-choice-action, widget-toggle-action): Not here.
(widget-choice-action, widget-toggle-action):
Display a message about [State].
(widget-field-action): Improve message.
1997-06-21 23:37:57 +00:00
Richard M. Stallman
f1231b8e0c (widget-file-complete): New function.
(file): Use widget-file-complete for :completion.  Delete :action.
(symbol): Use lisp-complete-symbol for :completion.
(widget-file-action): Function deleted.
(widget-field-action): Just move to next field.
(widget-choice-action, widget-toggle-action):
Preserve point usefully if it is within the widget.

(group-visibility): Inherit from visibility.
1997-06-21 21:25:16 +00:00
Richard M. Stallman
515c9d0d08 (group-visibility): New widget type.
(widget-group-visibility-create): New function.
1997-06-21 18:32:42 +00:00
Richard M. Stallman
f992349954 Comment change. 1997-06-21 17:31:29 +00:00
Richard M. Stallman
9dccd7efe5 (widget-documentation-link-action):
Use describe-function or describe-variable in simple cases.
1997-06-21 17:30:26 +00:00
Per Abrahamsen
944c91b6b3 Synched with 1.9930. 1997-06-21 12:48:00 +00:00
Richard M. Stallman
c6753d66ff (boolean): Capitalize "toggle".
(choice): Capitalize "value menu".
(visibility): Capitalize "hide" and "show".
(group-visibility): Likewise.
(widget-documentation-string-value-create): Capitalize "more".

(widget-specify-insert): Bind before-change-functions.
(widget-insert, widget-setup): Likewise.
(widget-editable-list-delete-at, widget-default-delete): Likewise.
(widget-editable-list-insert-before): Likewise.
(widget-setup): Set up before-change-functions.
(widget-after-change): Don't apply :notify here.
(widget-before-change): New function.  Apply :notify here.
(group-link): New widget type.
(widget-group-link-action): New function.
(widget-group-link-create): New function.

(group-visibility): New widget type.
1997-06-21 05:13:41 +00:00
Per Abrahamsen
208920be0d Don't delete nil overlays. 1997-06-19 15:31:34 +00:00
Per Abrahamsen
834279071a Change color. 1997-06-19 12:52:23 +00:00
Per Abrahamsen
a1a4fa22ce Synched with 1.9924. 1997-06-19 11:30:04 +00:00
Per Abrahamsen
8697863ab3 Synched with 1.9920. 1997-06-15 15:31:32 +00:00
Per Abrahamsen
6aaedd1230 Synched with 1.9914. 1997-06-14 10:21:01 +00:00
Per Abrahamsen
0ce5b5d5c4 Synached with 1.9908. 1997-06-04 11:40:44 +00:00
Per Abrahamsen
0a3a0b562f Synched with 1.9905 1997-06-01 18:03:25 +00:00
Per Abrahamsen
9097aeb790 Synched with 1.9904 1997-06-01 11:58:17 +00:00
Per Abrahamsen
d5c42d02a5 Synched with 1.9903 1997-06-01 08:04:57 +00:00
Per Abrahamsen
3acab5ef06 Synched with version 1.9901. 1997-05-31 06:34:12 +00:00