Mercurial > emacs
comparison lisp/wid-edit.el @ 111626:3655cc4062e4
Merge from emacs-23
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 17 Nov 2010 22:54:14 -0500 |
parents | 3b987881726e 78820f963309 |
children | 5dbf421ae0b5 |
comparison
equal
deleted
inserted
replaced
111625:586a15d21905 | 111626:3655cc4062e4 |
---|---|
314 If you don't add the space, it will become impossible to edit a zero | 314 If you don't add the space, it will become impossible to edit a zero |
315 size field.") | 315 size field.") |
316 | 316 |
317 (defvar widget-field-use-before-change t | 317 (defvar widget-field-use-before-change t |
318 "Non-nil means use `before-change-functions' to track editable fields. | 318 "Non-nil means use `before-change-functions' to track editable fields. |
319 This enables the use of undo, but doesn't work on Emacs 19.34 and earlier. | 319 This enables the use of undo. Using before hooks also means that |
320 Using before hooks also means that the :notify function can't know the | 320 the :notify function can't know the new value.") |
321 new value.") | |
322 | 321 |
323 (defun widget-specify-field (widget from to) | 322 (defun widget-specify-field (widget from to) |
324 "Specify editable button for WIDGET between FROM and TO." | 323 "Specify editable button for WIDGET between FROM and TO." |
325 ;; Terminating space is not part of the field, but necessary in | 324 ;; Terminating space is not part of the field, but necessary in |
326 ;; order for local-map to work. Remove next sexp if local-map works | 325 ;; order for local-map to work. Remove next sexp if local-map works |
1051 widget) | 1050 widget) |
1052 widget))))) | 1051 widget))))) |
1053 | 1052 |
1054 (defvar widget-use-overlay-change t | 1053 (defvar widget-use-overlay-change t |
1055 "If non-nil, use overlay change functions to tab around in the buffer. | 1054 "If non-nil, use overlay change functions to tab around in the buffer. |
1056 This is much faster, but doesn't work reliably on Emacs 19.34.") | 1055 This is much faster.") |
1057 | 1056 |
1058 (defun widget-move (arg) | 1057 (defun widget-move (arg) |
1059 "Move point to the ARG next field or button. | 1058 "Move point to the ARG next field or button. |
1060 ARG may be negative to move backward." | 1059 ARG may be negative to move backward." |
1061 (or (bobp) (> arg 0) (backward-char)) | 1060 (or (bobp) (> arg 0) (backward-char)) |
3780 | 3779 |
3781 ;;; The End: | 3780 ;;; The End: |
3782 | 3781 |
3783 (provide 'wid-edit) | 3782 (provide 'wid-edit) |
3784 | 3783 |
3785 ;; arch-tag: a076e75e-18a1-4b46-8be5-3f317bcbc707 | |
3786 ;;; wid-edit.el ends here | 3784 ;;; wid-edit.el ends here |