(assistant-render-text): Run `widget-setup' and don't
authorTeodor Zlatanov <tzz@lifelogs.com>
Mon, 22 Mar 2010 04:47:54 +0000 (04:47 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Mon, 22 Mar 2010 04:47:54 +0000 (04:47 +0000)
delete the extra newline.  Otherwise editing of :string and :number
types don't work.

lisp/ChangeLog
lisp/assistant.el

index 38e04aa..be01202 100644 (file)
@@ -1,3 +1,9 @@
+2010-03-22  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * assistant.el (assistant-render-text): Run `widget-setup' and don't
+       delete the extra newline.  Otherwise editing of :string and :number
+       types don't work.
+
 2010-03-20  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * auth-source.el: Set up autoloads.  Bump to 23.2 because of the
index 25ff173..a933384 100644 (file)
            :assistant-variable variable
            (assistant-get-variable node variable))
           assistant-widgets)
-         ;; The editable-field widget apparently inserts a newline;
-         ;; remove it.
-         (delete-char -1)
          (add-text-properties start (point)
-                              (list
-                               'bold t
-                               'face 'assistant-field
-                               'not-read-only t))))))))
+                              (list
+                               'bold t
+                               'face 'assistant-field
+                               'not-read-only t)))))))
+  (widget-setup))
 
 (defun assistant-render-node (node-name)
   (let ((node (assistant-find-node node-name))