# HG changeset patch # User Juanma Barranquero # Date 1034873188 0 # Node ID d69da0fafe03c607d8446e6fb2143103f3e4576e # Parent 839ee0b81fe09628484eb6a4921930df4700a237 (widget-choose): Fix typo. diff -r 839ee0b81fe0 -r d69da0fafe03 lisp/wid-edit.el --- a/lisp/wid-edit.el Thu Oct 17 16:44:45 2002 +0000 +++ b/lisp/wid-edit.el Thu Oct 17 16:46:28 2002 +0000 @@ -202,7 +202,7 @@ "Choose an item from a list. First argument TITLE is the name of the list. -Second argument ITEMS is an list whose members are either +Second argument ITEMS is a list whose members are either (NAME . VALUE), to indicate selectable items, or just strings to indicate unselectable items. Optional third argument EVENT is an input event. @@ -301,7 +301,7 @@ (nreverse result))) ;;; Widget text specifications. -;; +;; ;; These functions are for specifying text properties. (defvar widget-field-add-space t @@ -333,7 +333,7 @@ (rear-sticky (or (not widget-field-add-space) (widget-get widget :size)))) (if (functionp help-echo) - (setq help-echo 'widget-mouse-help)) + (setq help-echo 'widget-mouse-help)) (when (= (char-before to) ?\n) ;; When the last character in the field is a newline, we want to ;; give it a `field' char-property of `boundary', which helps the @@ -509,7 +509,7 @@ (defun widget-default-get (widget) "Extract the default external value of WIDGET." - (widget-apply widget :value-to-external + (widget-apply widget :value-to-external (or (widget-get widget :value) (widget-apply widget :default-get)))) @@ -892,7 +892,7 @@ (if (widget-event-point event) (let* ((pos (widget-event-point event)) (start (event-start event)) - (button (get-char-property + (button (get-char-property pos 'button (and (windowp (posn-window start)) (window-buffer (posn-window start)))))) (if button @@ -1315,8 +1315,8 @@ :indent nil :offset 0 :format-handler 'widget-default-format-handler - :button-face-get 'widget-default-button-face-get - :sample-face-get 'widget-default-sample-face-get + :button-face-get 'widget-default-button-face-get + :sample-face-get 'widget-default-sample-face-get :delete 'widget-default-delete :copy 'identity :value-set 'widget-default-value-set @@ -1532,7 +1532,7 @@ (or (widget-get widget :always-active) (and (not (widget-get widget :inactive)) (let ((parent (widget-get widget :parent))) - (or (null parent) + (or (null parent) (widget-apply parent :active)))))) (defun widget-default-deactivate (widget) @@ -1726,11 +1726,11 @@ (find-file (locate-library (widget-value widget)))) ;;; The `emacs-commentary-link' Widget. - + (define-widget 'emacs-commentary-link 'link "A link to Commentary in an Emacs Lisp library file." :action 'widget-emacs-commentary-link-action) - + (defun widget-emacs-commentary-link-action (widget &optional event) "Find the Commentary section of the Emacs file specified by WIDGET." (finder-commentary (widget-value widget))) @@ -3057,7 +3057,7 @@ (defvar widget-coding-system-prompt-value-history nil "History of input to `widget-coding-system-prompt-value'.") - + (define-widget 'coding-system 'symbol "A MULE coding-system." :format "%{%t%}: %v" @@ -3422,7 +3422,7 @@ ;;; The `color' Widget. -;; Fixme: match +;; Fixme: match (define-widget 'color 'editable-field "Choose a color name (with sample)." :format "%t: %v (%{sample%})\n"